chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,39 +1,49 @@
(identifier) @variable
(reference_identifier) @variable
(member_identifier) @property
; Classes
(custom_type) @type
(class_field
(class_field
name: (identifier) @variable.member)
(class_definition
(class_definition
name: (identifier) @type)
(method_definition
name: (identifier) @function.method)
; Functions
(keyword_argument_key) @variable.parameter
(call
caller: (reference
(nested_identifier
property: (member_identifier) @function.method.call)))
(call
caller: (reference
(reference_identifier) @function.method.call))
(call
caller:
(reference
(nested_identifier
property: (member_identifier) @function.method.call)))
(call
caller:
(reference
(reference_identifier) @function.method.call))
; Primitives
(number) @number
(duration) @constant
(string) @string
(bool) @boolean
(builtin_type) @type.builtin
(json_container_type) @type.builtin
; Special
(comment) @comment @spell
[
@ -41,7 +51,7 @@
")"
"{"
"}"
] @punctuation.bracket
] @punctuation.bracket
[
"-"

View file

@ -1,4 +1,5 @@
(block) @local.scope
(variable_definition_statement
name: (identifier) @local.definition)