mirror of https://github.com/helix-editor/helix
Fix C/C++ Queries to include @context.end
parent
077b554121
commit
4fdac88d6c
@ -1,27 +1,17 @@
|
||||
; Credits to nvim-treesitter/nvim-treesitter-context
|
||||
(preproc_if
|
||||
) @context
|
||||
|
||||
(preproc_ifdef
|
||||
) @context
|
||||
|
||||
(function_definition
|
||||
) @context
|
||||
|
||||
(for_statement
|
||||
) @context
|
||||
|
||||
(if_statement
|
||||
) @context
|
||||
|
||||
(while_statement
|
||||
) @context
|
||||
|
||||
(do_statement
|
||||
) @context
|
||||
|
||||
(struct_specifier
|
||||
) @context
|
||||
|
||||
(enum_specifier
|
||||
) @context
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
[
|
||||
(preproc_if)
|
||||
(preproc_ifdef)
|
||||
(function_definition)
|
||||
(for_statement)
|
||||
(if_statement)
|
||||
(while_statement)
|
||||
(do_statement)
|
||||
(struct_specifier)
|
||||
(enum_specifier)
|
||||
] @context
|
||||
|
Loading…
Reference in New Issue