mirror of https://github.com/helix-editor/helix
Add C/C++ Queries
parent
7aeb3bf864
commit
c99fd6c102
@ -0,0 +1,27 @@
|
||||
; 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
|
@ -0,0 +1,4 @@
|
||||
; Credits to nvim-treesitter-context
|
||||
|
||||
; inherits c
|
||||
(class_specifier) @context
|
Loading…
Reference in New Issue