mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -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,23 +1,23 @@
|
|||
(var_declaration
|
||||
declarators: (var_declarators
|
||||
(var (identifier)) @definition.var))
|
||||
(var (identifier)) @local.definition.var))
|
||||
|
||||
(var_assignment
|
||||
variables: (assignment_variables
|
||||
(var (identifier) @definition.var) @definition.associated))
|
||||
(var (identifier) @local.definition.var) @local.definition.associated))
|
||||
|
||||
(arg name: (identifier) @definition.parameter)
|
||||
(arg name: (identifier) @local.definition.parameter)
|
||||
|
||||
(anon_function) @scope
|
||||
(anon_function) @local.scope
|
||||
((function_statement
|
||||
(function_name) @definition.function) @scope)
|
||||
(function_name) @local.definition.function) @local.scope)
|
||||
|
||||
(program) @scope
|
||||
(if_statement) @scope
|
||||
(generic_for_statement (for_body) @scope)
|
||||
(numeric_for_statement (for_body) @scope)
|
||||
(repeat_statement) @scope
|
||||
(while_statement (while_body) @scope)
|
||||
(do_statement) @scope
|
||||
(program) @local.scope
|
||||
(if_statement) @local.scope
|
||||
(generic_for_statement (for_body) @local.scope)
|
||||
(numeric_for_statement (for_body) @local.scope)
|
||||
(repeat_statement) @local.scope
|
||||
(while_statement (while_body) @local.scope)
|
||||
(do_statement) @local.scope
|
||||
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue