You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/runtime/queries/c/context.scm

17 lines
283 B
Scheme

; Credits to nvim-treesitter/nvim-treesitter-context
(function_definition
(_ parameters: (_) @context.params)
) @context
[
(preproc_if)
(preproc_ifdef)
(for_statement)
(if_statement)
(while_statement)
(do_statement)
(struct_specifier)
(enum_specifier)
] @context