mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,18 +1,15 @@
|
|||
; Scopes
|
||||
|
||||
[
|
||||
(use_statement)
|
||||
(use_statement)
|
||||
(actor_definition)
|
||||
(class_definition)
|
||||
(primitive_definition)
|
||||
(interface_definition)
|
||||
(trait_definition)
|
||||
(struct_definition)
|
||||
|
||||
(constructor)
|
||||
(method)
|
||||
(behavior)
|
||||
|
||||
(if_statement)
|
||||
(iftype_statement)
|
||||
(elseif_block)
|
||||
|
|
@ -28,17 +25,14 @@
|
|||
(case_statement)
|
||||
(parenthesized_expression)
|
||||
(tuple_expression)
|
||||
|
||||
(array_literal)
|
||||
(object_literal)
|
||||
(object_literal)
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(field
|
||||
name: (identifier) @local.definition.field)
|
||||
|
||||
|
|
@ -84,8 +78,9 @@
|
|||
(for_statement
|
||||
[
|
||||
(identifier) @local.definition.var
|
||||
(tuple_expression (identifier) @local.definition.var)
|
||||
(tuple_expression
|
||||
(identifier) @local.definition.var)
|
||||
])
|
||||
|
||||
(with_elem
|
||||
(with_elem
|
||||
(identifier) @local.definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue