mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,23 +1,38 @@
|
|||
(var_declaration
|
||||
declarators: (var_declarators
|
||||
(var (identifier)) @local.definition.var))
|
||||
declarators:
|
||||
(var_declarators
|
||||
(var
|
||||
(identifier)) @local.definition.var))
|
||||
|
||||
(var_assignment
|
||||
variables: (assignment_variables
|
||||
(var (identifier) @local.definition.var) @local.definition.associated))
|
||||
variables:
|
||||
(assignment_variables
|
||||
(var
|
||||
(identifier) @local.definition.var) @local.definition.associated))
|
||||
|
||||
(arg name: (identifier) @local.definition.parameter)
|
||||
(arg
|
||||
name: (identifier) @local.definition.parameter)
|
||||
|
||||
(anon_function) @local.scope
|
||||
|
||||
((function_statement
|
||||
(function_name) @local.definition.function) @local.scope)
|
||||
|
||||
(program) @local.scope
|
||||
|
||||
(if_statement) @local.scope
|
||||
(generic_for_statement (for_body) @local.scope)
|
||||
(numeric_for_statement (for_body) @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)
|
||||
|
||||
(while_statement
|
||||
(while_body) @local.scope)
|
||||
|
||||
(do_statement) @local.scope
|
||||
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue