Skip to content

Commit

Permalink
fix(c): update queries from upstream (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq authored Jul 27, 2023
1 parent ca89717 commit 406812f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion after/queries/c/matchup.scm
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@
(case_statement "default" @mid.switch.2)?)) @scope.switch

; 'else' and 'else if'
(if_statement
(else_clause
"else" @_start (if_statement "if" @_end)?
(#make-range! "mid.if.1" @_start @_end))

; if
((if_statement
"if" @open.if) @scope.if
(#not-has-parent? @scope.if else_clause))


; if
(compound_statement
(if_statement
Expand Down

0 comments on commit 406812f

Please sign in to comment.