mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,20 +1,33 @@
|
|||
; References
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(function_definition
|
||||
name: (identifier) @local.definition.function
|
||||
(function_arguments
|
||||
(identifier)* @local.definition.parameter
|
||||
("," (identifier) @local.definition.parameter)*)?) @local.scope
|
||||
(","
|
||||
(identifier) @local.definition.parameter)*)?) @local.scope
|
||||
|
||||
(assignment left: (identifier) @local.definition.var)
|
||||
(multioutput_variable (identifier) @local.definition.var)
|
||||
(assignment
|
||||
left: (identifier) @local.definition.var)
|
||||
|
||||
(iterator . (identifier) @local.definition.var)
|
||||
(lambda (arguments (identifier) @local.definition.parameter))
|
||||
(global_operator (identifier) @local.definition.var)
|
||||
(persistent_operator (identifier) @local.definition.var)
|
||||
(catch_clause (identifier) @local.definition)
|
||||
(multioutput_variable
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(iterator
|
||||
.
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(lambda
|
||||
(arguments
|
||||
(identifier) @local.definition.parameter))
|
||||
|
||||
(global_operator
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(persistent_operator
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(catch_clause
|
||||
(identifier) @local.definition)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue