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,51 +1,70 @@
|
|||
; Scopes
|
||||
|
||||
[
|
||||
(document)
|
||||
(definition)
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(annotation_identifier) @local.definition
|
||||
|
||||
(const_definition (identifier) @local.definition.constant)
|
||||
(const_definition
|
||||
(identifier) @local.definition.constant)
|
||||
|
||||
(enum_definition "enum"
|
||||
. (identifier) @local.definition.enum
|
||||
"{" (identifier) @local.definition.constant "}")
|
||||
(enum_definition
|
||||
"enum"
|
||||
.
|
||||
(identifier) @local.definition.enum
|
||||
"{"
|
||||
(identifier) @local.definition.constant
|
||||
"}")
|
||||
|
||||
(senum_definition "senum"
|
||||
. (identifier) @local.definition.enum)
|
||||
(senum_definition
|
||||
"senum"
|
||||
.
|
||||
(identifier) @local.definition.enum)
|
||||
|
||||
(field (identifier) @local.definition.field)
|
||||
(field
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
(function_definition (identifier) @local.definition.function)
|
||||
(function_definition
|
||||
(identifier) @local.definition.function)
|
||||
|
||||
(namespace_declaration
|
||||
"namespace" (namespace_scope)
|
||||
. (_) @local.definition.namespace
|
||||
"namespace"
|
||||
(namespace_scope)
|
||||
.
|
||||
(_) @local.definition.namespace
|
||||
(namespace_uri)?)
|
||||
|
||||
(parameter (identifier) @local.definition.parameter)
|
||||
(parameter
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(struct_definition
|
||||
"struct" . (identifier) @local.definition.type)
|
||||
"struct"
|
||||
.
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(union_definition
|
||||
"union" . (identifier) @local.definition.type)
|
||||
"union"
|
||||
.
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(exception_definition
|
||||
"exception" . (identifier) @local.definition.type)
|
||||
"exception"
|
||||
.
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(service_definition
|
||||
"service" . (identifier) @local.definition.type)
|
||||
"service"
|
||||
.
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(interaction_definition
|
||||
"interaction" . (identifier) @local.definition.type)
|
||||
"interaction"
|
||||
.
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(typedef_identifier) @local.definition.type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue