mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
37
runtime/queries/v/locals.scm
Normal file
37
runtime/queries/v/locals.scm
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
(function_declaration
|
||||
name: (identifier) @local.definition.function) ;@function
|
||||
|
||||
(var_declaration
|
||||
var_list: (expression_list
|
||||
(reference_expression
|
||||
(identifier) @local.definition.var)))
|
||||
|
||||
(function_declaration
|
||||
name: (identifier) @local.definition.function)
|
||||
|
||||
(const_declaration
|
||||
(const_definition
|
||||
name: (identifier) @local.definition.var))
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
((call_expression
|
||||
name: (reference_expression
|
||||
(identifier)) @local.reference)
|
||||
(#set! reference.kind "call"))
|
||||
|
||||
((call_expression
|
||||
name: (selector_expression
|
||||
field: (reference_expression
|
||||
(identifier) @local.definition.function)))
|
||||
(#set! reference.kind "call"))
|
||||
|
||||
(source_file) @local.scope
|
||||
|
||||
(function_declaration) @local.scope
|
||||
|
||||
(if_expression) @local.scope
|
||||
|
||||
(block) @local.scope
|
||||
|
||||
(for_statement) @local.scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue