mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
fix(c): update queries from upstream (#309)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user