mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20: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,5 +1,4 @@
|
|||
; Scopes
|
||||
|
||||
[
|
||||
(block)
|
||||
(defined_resource_type)
|
||||
|
|
@ -16,31 +15,50 @@
|
|||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
[
|
||||
(identifier)
|
||||
(class_identifier)
|
||||
(variable)
|
||||
(variable)
|
||||
] @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(attribute [(identifier) (variable)] @local.definition.field)
|
||||
(attribute
|
||||
[
|
||||
(identifier)
|
||||
(variable)
|
||||
] @local.definition.field)
|
||||
|
||||
(function_declaration
|
||||
[(identifier) (class_identifier)] @local.definition.function)
|
||||
[
|
||||
(identifier)
|
||||
(class_identifier)
|
||||
] @local.definition.function)
|
||||
|
||||
(include_statement [(identifier) (class_identifier)] @local.definition.import)
|
||||
(include_statement
|
||||
[
|
||||
(identifier)
|
||||
(class_identifier)
|
||||
] @local.definition.import)
|
||||
|
||||
(parameter (variable) @local.definition.parameter)
|
||||
(parameter
|
||||
(variable) @local.definition.parameter)
|
||||
|
||||
(class_definition
|
||||
[(identifier) (class_identifier)] @local.definition.type)
|
||||
[
|
||||
(identifier)
|
||||
(class_identifier)
|
||||
] @local.definition.type)
|
||||
|
||||
(node_definition
|
||||
(node_name (identifier) @local.definition.type))
|
||||
(node_name
|
||||
(identifier) @local.definition.type))
|
||||
|
||||
(resource_declaration
|
||||
[(identifier) (class_identifier)] @local.definition.type)
|
||||
[
|
||||
(identifier)
|
||||
(class_identifier)
|
||||
] @local.definition.type)
|
||||
|
||||
(assignment . (variable) @local.definition.var)
|
||||
(assignment
|
||||
.
|
||||
(variable) @local.definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue