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,28 +1,41 @@
|
|||
((function_declaration
|
||||
name: (identifier) @local.definition.function)) ;@function
|
||||
name: (identifier) @local.definition.function)) ;@function
|
||||
|
||||
(var_declaration
|
||||
var_list: (expression_list
|
||||
(reference_expression
|
||||
(identifier) @local.definition.var)))
|
||||
var_list:
|
||||
(expression_list
|
||||
(reference_expression
|
||||
(identifier) @local.definition.var)))
|
||||
|
||||
((function_declaration
|
||||
name: (identifier) @local.definition.function))
|
||||
|
||||
(const_declaration (const_definition name: (identifier) @local.definition.var))
|
||||
(const_declaration
|
||||
(const_definition
|
||||
name: (identifier) @local.definition.var))
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
((call_expression name: (reference_expression (identifier)) @local.reference)
|
||||
(#set! reference.kind "call"))
|
||||
((call_expression
|
||||
name:
|
||||
(reference_expression
|
||||
(identifier)) @local.reference)
|
||||
(#set! reference.kind "call"))
|
||||
|
||||
((call_expression
|
||||
name: (selector_expression
|
||||
field: (reference_expression (identifier) @local.definition.function)))
|
||||
(#set! reference.kind "call"))
|
||||
name:
|
||||
(selector_expression
|
||||
field:
|
||||
(reference_expression
|
||||
(identifier) @local.definition.function)))
|
||||
(#set! reference.kind "call"))
|
||||
|
||||
(source_file) @local.scope
|
||||
|
||||
(function_declaration) @local.scope
|
||||
|
||||
(if_expression) @local.scope
|
||||
|
||||
(block) @local.scope
|
||||
|
||||
(for_statement) @local.scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue