mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -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)
|
||||
(declaration)
|
||||
|
|
@ -7,33 +6,54 @@
|
|||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
(package_declaration
|
||||
(identifier) @local.definition.namespace)
|
||||
|
||||
(package_declaration (identifier) @local.definition.namespace)
|
||||
(import_declaration
|
||||
alias: (identifier) @local.definition.namespace)
|
||||
|
||||
(import_declaration alias: (identifier) @local.definition.namespace)
|
||||
(procedure_declaration
|
||||
(identifier) @local.definition.function)
|
||||
|
||||
(procedure_declaration (identifier) @local.definition.function)
|
||||
(struct_declaration
|
||||
(identifier) @local.definition.type
|
||||
"::")
|
||||
|
||||
(struct_declaration (identifier) @local.definition.type "::")
|
||||
(enum_declaration
|
||||
(identifier) @local.definition.enum
|
||||
"::")
|
||||
|
||||
(enum_declaration (identifier) @local.definition.enum "::")
|
||||
(union_declaration
|
||||
(identifier) @local.definition.type
|
||||
"::")
|
||||
|
||||
(union_declaration (identifier) @local.definition.type "::")
|
||||
(variable_declaration
|
||||
(identifier) @local.definition.var
|
||||
":=")
|
||||
|
||||
(variable_declaration (identifier) @local.definition.var ":=")
|
||||
(const_declaration
|
||||
(identifier) @local.definition.constant
|
||||
"::")
|
||||
|
||||
(const_declaration (identifier) @local.definition.constant "::")
|
||||
(const_type_declaration
|
||||
(identifier) @local.definition.type
|
||||
":")
|
||||
|
||||
(const_type_declaration (identifier) @local.definition.type ":")
|
||||
(parameter
|
||||
(identifier) @local.definition.parameter
|
||||
":"?)
|
||||
|
||||
(parameter (identifier) @local.definition.parameter ":"?)
|
||||
(default_parameter
|
||||
(identifier) @local.definition.parameter
|
||||
":=")
|
||||
|
||||
(default_parameter (identifier) @local.definition.parameter ":=")
|
||||
(field
|
||||
(identifier) @local.definition.field
|
||||
":")
|
||||
|
||||
(field (identifier) @local.definition.field ":")
|
||||
|
||||
(label_statement (identifier) @local.definition ":")
|
||||
(label_statement
|
||||
(identifier) @local.definition
|
||||
":")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue