mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,27 +1,31 @@
|
|||
; Scopes
|
||||
[
|
||||
(function_call)
|
||||
(code_block)
|
||||
(function_block)
|
||||
(control_structure)
|
||||
(function_call)
|
||||
(code_block)
|
||||
(function_block)
|
||||
(control_structure)
|
||||
] @local.scope
|
||||
|
||||
; Definitions
|
||||
(argument
|
||||
name: (identifier) @local.definition.parameter
|
||||
(#set! "definition.var.scope" "local")
|
||||
)
|
||||
(argument
|
||||
name: (identifier) @local.definition.parameter
|
||||
(#set! "definition.var.scope" "local"))
|
||||
|
||||
(variable_definition
|
||||
name: (variable (local_var (identifier) @local.definition.var
|
||||
)))
|
||||
(variable_definition
|
||||
name:
|
||||
(variable
|
||||
(local_var
|
||||
(identifier) @local.definition.var)))
|
||||
|
||||
(variable_definition
|
||||
name: (variable (environment_var (identifier) @local.definition.var))
|
||||
(#set! "definition.var.scope" "global"))
|
||||
(variable_definition
|
||||
name:
|
||||
(variable
|
||||
(environment_var
|
||||
(identifier) @local.definition.var))
|
||||
(#set! "definition.var.scope" "global"))
|
||||
|
||||
(function_definition name: (variable) @local.definition.var
|
||||
(#set! "definition.var.scope" "parent")
|
||||
)
|
||||
(function_definition
|
||||
name: (variable) @local.definition.var
|
||||
(#set! "definition.var.scope" "parent"))
|
||||
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue