mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
feat(locals)!: switch to upstream captures
This commit is contained in:
parent
306367a7f4
commit
8fb218dbfd
95 changed files with 1154 additions and 1154 deletions
|
|
@ -1,28 +1,28 @@
|
|||
((function_declaration
|
||||
name: (identifier) @definition.function)) ;@function
|
||||
name: (identifier) @local.definition.function)) ;@function
|
||||
|
||||
(var_declaration
|
||||
var_list: (expression_list
|
||||
(reference_expression
|
||||
(identifier) @definition.var)))
|
||||
(identifier) @local.definition.var)))
|
||||
|
||||
((function_declaration
|
||||
name: (identifier) @definition.function))
|
||||
name: (identifier) @local.definition.function))
|
||||
|
||||
(const_declaration (const_definition name: (identifier) @definition.var))
|
||||
(const_declaration (const_definition name: (identifier) @local.definition.var))
|
||||
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
||||
((call_expression name: (reference_expression (identifier)) @reference)
|
||||
((call_expression name: (reference_expression (identifier)) @local.reference)
|
||||
(#set! reference.kind "call"))
|
||||
|
||||
((call_expression
|
||||
name: (selector_expression
|
||||
field: (reference_expression (identifier) @definition.function)))
|
||||
field: (reference_expression (identifier) @local.definition.function)))
|
||||
(#set! reference.kind "call"))
|
||||
|
||||
(source_file) @scope
|
||||
(function_declaration) @scope
|
||||
(if_expression) @scope
|
||||
(block) @scope
|
||||
(for_statement) @scope
|
||||
(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