mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,154 +1,177 @@
|
|||
(identifier) @variable
|
||||
|
||||
(type_identifier) @type
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(int_literal) @number
|
||||
|
||||
(float_literal) @number.float
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(function_identifier) @function
|
||||
|
||||
[
|
||||
(image_macro)
|
||||
(children_macro)
|
||||
(radial_grad_macro)
|
||||
(linear_grad_macro)
|
||||
(image_macro)
|
||||
(children_macro)
|
||||
(radial_grad_macro)
|
||||
(linear_grad_macro)
|
||||
] @function.macro
|
||||
|
||||
(call_expression
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(call_expression
|
||||
function: (field_expression
|
||||
field: (identifier) @function.call))
|
||||
function:
|
||||
(field_expression
|
||||
field: (identifier) @function.call))
|
||||
|
||||
(vis) @keyword.import
|
||||
|
||||
(units) @type
|
||||
|
||||
(array_literal
|
||||
(identifier) @type)
|
||||
(transition_statement state: (identifier) @variable.member)
|
||||
(state_expression state: (identifier) @variable.member)
|
||||
|
||||
(transition_statement
|
||||
state: (identifier) @variable.member)
|
||||
|
||||
(state_expression
|
||||
state: (identifier) @variable.member)
|
||||
|
||||
(struct_block_definition
|
||||
(identifier) @variable.member)
|
||||
|
||||
; (state_identifier) @variable.member
|
||||
|
||||
[
|
||||
"in"
|
||||
"for"
|
||||
"in"
|
||||
"for"
|
||||
] @keyword.repeat
|
||||
|
||||
"@" @keyword
|
||||
|
||||
[
|
||||
"import"
|
||||
"from"
|
||||
"import"
|
||||
"from"
|
||||
] @keyword.import
|
||||
|
||||
[
|
||||
"if"
|
||||
"else"
|
||||
"if"
|
||||
"else"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"root"
|
||||
"parent"
|
||||
"duration"
|
||||
"easing"
|
||||
"root"
|
||||
"parent"
|
||||
"duration"
|
||||
"easing"
|
||||
] @variable.builtin
|
||||
|
||||
[
|
||||
"true"
|
||||
"false"
|
||||
"true"
|
||||
"false"
|
||||
] @boolean
|
||||
|
||||
|
||||
[
|
||||
"struct"
|
||||
"property"
|
||||
"callback"
|
||||
"in"
|
||||
"animate"
|
||||
"states"
|
||||
"when"
|
||||
"out"
|
||||
"transitions"
|
||||
"global"
|
||||
"struct"
|
||||
"property"
|
||||
"callback"
|
||||
"in"
|
||||
"animate"
|
||||
"states"
|
||||
"when"
|
||||
"out"
|
||||
"transitions"
|
||||
"global"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"black"
|
||||
"transparent"
|
||||
"blue"
|
||||
"ease"
|
||||
"ease_in"
|
||||
"ease-in"
|
||||
"ease_in_out"
|
||||
"ease-in-out"
|
||||
"ease_out"
|
||||
"ease-out"
|
||||
"end"
|
||||
"green"
|
||||
"red"
|
||||
"red"
|
||||
"start"
|
||||
"yellow"
|
||||
"white"
|
||||
"gray"
|
||||
"black"
|
||||
"transparent"
|
||||
"blue"
|
||||
"ease"
|
||||
"ease_in"
|
||||
"ease-in"
|
||||
"ease_in_out"
|
||||
"ease-in-out"
|
||||
"ease_out"
|
||||
"ease-out"
|
||||
"end"
|
||||
"green"
|
||||
"red"
|
||||
"red"
|
||||
"start"
|
||||
"yellow"
|
||||
"white"
|
||||
"gray"
|
||||
] @constant.builtin
|
||||
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
","
|
||||
"."
|
||||
";"
|
||||
":"
|
||||
","
|
||||
"."
|
||||
";"
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
; Brackets
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
(define_property ["<" ">"] @punctuation.bracket)
|
||||
(define_property
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket)
|
||||
|
||||
[
|
||||
"angle"
|
||||
"bool"
|
||||
"brush"
|
||||
"color"
|
||||
"float"
|
||||
"image"
|
||||
"int"
|
||||
"length"
|
||||
"percent"
|
||||
"physical-length"
|
||||
"physical_length"
|
||||
"string"
|
||||
"angle"
|
||||
"bool"
|
||||
"brush"
|
||||
"color"
|
||||
"float"
|
||||
"image"
|
||||
"int"
|
||||
"length"
|
||||
"percent"
|
||||
"physical-length"
|
||||
"physical_length"
|
||||
"string"
|
||||
] @type.builtin
|
||||
|
||||
[
|
||||
":="
|
||||
"<=>"
|
||||
"!"
|
||||
"-"
|
||||
"+"
|
||||
"*"
|
||||
"/"
|
||||
"&&"
|
||||
"||"
|
||||
">"
|
||||
"<"
|
||||
">="
|
||||
"<="
|
||||
"="
|
||||
":"
|
||||
"+="
|
||||
"-="
|
||||
"*="
|
||||
"/="
|
||||
"?"
|
||||
"=>"
|
||||
] @operator
|
||||
":="
|
||||
"<=>"
|
||||
"!"
|
||||
"-"
|
||||
"+"
|
||||
"*"
|
||||
"/"
|
||||
"&&"
|
||||
"||"
|
||||
">"
|
||||
"<"
|
||||
">="
|
||||
"<="
|
||||
"="
|
||||
":"
|
||||
"+="
|
||||
"-="
|
||||
"*="
|
||||
"/="
|
||||
"?"
|
||||
"=>"
|
||||
] @operator
|
||||
|
||||
(ternary_expression [":" "?"] @keyword.conditional.ternary)
|
||||
(ternary_expression
|
||||
[
|
||||
":"
|
||||
"?"
|
||||
] @keyword.conditional.ternary)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
[
|
||||
(comp_body)
|
||||
(state_statement)
|
||||
(transition_statement)
|
||||
(handler_body)
|
||||
(consequence_body)
|
||||
(global_single)
|
||||
(comp_body)
|
||||
(state_statement)
|
||||
(transition_statement)
|
||||
(handler_body)
|
||||
(consequence_body)
|
||||
(global_single)
|
||||
] @indent.begin
|
||||
|
||||
"}" @indent.end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue