mirror of https://github.com/helix-editor/helix
parent
13e5eddd0a
commit
db3e4e8cb1
@ -1,17 +1,18 @@
|
||||
; Credits to nvim-treesitter/nvim-treesitter-context
|
||||
|
||||
(function_declaration
|
||||
result: (_) @context.end
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
(method_declaration
|
||||
result: (_) @context.end
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
[
|
||||
([
|
||||
(const_declaration)
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(if_statement)
|
||||
(import_declaration)
|
||||
(type_declaration)
|
||||
(var_declaration)
|
||||
] @context
|
||||
] @context)
|
||||
|
Loading…
Reference in New Issue