|
|
@ -1,45 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
(user_type_identifier) @type
|
|
|
|
(identifier) @variable
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
(type_identifier)
|
|
|
|
|
|
|
|
(units)
|
|
|
|
|
|
|
|
]@type
|
|
|
|
|
|
|
|
|
|
|
|
(var_identifier) @variable
|
|
|
|
(array_literal
|
|
|
|
|
|
|
|
(identifier) @type)
|
|
|
|
|
|
|
|
|
|
|
|
(state_identifier) @variable.other.member
|
|
|
|
(function_identifier) @function
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
(image_macro)
|
|
|
|
|
|
|
|
(children_macro)
|
|
|
|
|
|
|
|
(radial_grad_macro)
|
|
|
|
|
|
|
|
(linear_grad_macro)
|
|
|
|
|
|
|
|
] @function.macro
|
|
|
|
|
|
|
|
|
|
|
|
(var_identifier
|
|
|
|
(call_expression
|
|
|
|
(post_identifier) @variable)
|
|
|
|
function: (identifier) @function)
|
|
|
|
|
|
|
|
(call_expression
|
|
|
|
|
|
|
|
function: (field_expression
|
|
|
|
|
|
|
|
field: (identifier) @function))
|
|
|
|
|
|
|
|
|
|
|
|
(function_identifier) @function
|
|
|
|
(vis) @keyword.control.import
|
|
|
|
|
|
|
|
|
|
|
|
(reference_identifier) @keyword.storage.modifier.ref
|
|
|
|
(transition_statement state: (identifier) @variable.other.member)
|
|
|
|
(visibility_modifier) @keyword.storage.modifier
|
|
|
|
(state_expression state: (identifier) @variable.other.member)
|
|
|
|
|
|
|
|
(struct_block_definition field: (identifier) @variable.other.member)
|
|
|
|
|
|
|
|
(assign_property (identifier) @attribute)
|
|
|
|
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
|
|
|
|
(string) @string
|
|
|
|
(string_literal) @string
|
|
|
|
(int_number) @constant.numeric
|
|
|
|
(int_literal) @constant.numeric.integer
|
|
|
|
(unit_type) @type.builtin
|
|
|
|
(float_literal) @constant.numeric.float
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"in"
|
|
|
|
|
|
|
|
"in-out"
|
|
|
|
|
|
|
|
"for"
|
|
|
|
|
|
|
|
] @keyword.control.repeat
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"struct"
|
|
|
|
|
|
|
|
"property"
|
|
|
|
|
|
|
|
"callback"
|
|
|
|
|
|
|
|
"import"
|
|
|
|
"import"
|
|
|
|
|
|
|
|
"export"
|
|
|
|
"from"
|
|
|
|
"from"
|
|
|
|
"root"
|
|
|
|
] @keyword.control.import
|
|
|
|
"parent"
|
|
|
|
|
|
|
|
"this"
|
|
|
|
[
|
|
|
|
"for"
|
|
|
|
|
|
|
|
"in"
|
|
|
|
|
|
|
|
"if"
|
|
|
|
"if"
|
|
|
|
"else if"
|
|
|
|
|
|
|
|
"else"
|
|
|
|
"else"
|
|
|
|
|
|
|
|
"when"
|
|
|
|
|
|
|
|
] @keyword.control.conditional
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"struct"
|
|
|
|
|
|
|
|
"property"
|
|
|
|
|
|
|
|
] @keyword.storage.type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"global"
|
|
|
|
|
|
|
|
] @keyword.storage.modifier
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"root"
|
|
|
|
|
|
|
|
"parent"
|
|
|
|
|
|
|
|
"duration"
|
|
|
|
|
|
|
|
"easing"
|
|
|
|
|
|
|
|
] @variable.builtin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"callback"
|
|
|
|
"animate"
|
|
|
|
"animate"
|
|
|
|
"states"
|
|
|
|
"states"
|
|
|
|
"when"
|
|
|
|
|
|
|
|
"in"
|
|
|
|
|
|
|
|
"out"
|
|
|
|
"out"
|
|
|
|
"transitions"
|
|
|
|
"transitions"
|
|
|
|
"global"
|
|
|
|
"component"
|
|
|
|
|
|
|
|
"inherits"
|
|
|
|
] @keyword
|
|
|
|
] @keyword
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
@ -56,12 +95,16 @@
|
|
|
|
"end"
|
|
|
|
"end"
|
|
|
|
"green"
|
|
|
|
"green"
|
|
|
|
"red"
|
|
|
|
"red"
|
|
|
|
"red"
|
|
|
|
|
|
|
|
"start"
|
|
|
|
"start"
|
|
|
|
"yellow"
|
|
|
|
"yellow"
|
|
|
|
|
|
|
|
"white"
|
|
|
|
|
|
|
|
"gray"
|
|
|
|
|
|
|
|
] @constant.builtin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
"true"
|
|
|
|
"true"
|
|
|
|
"false"
|
|
|
|
"false"
|
|
|
|
] @constant.builtin
|
|
|
|
] @constant.builtin.boolean
|
|
|
|
|
|
|
|
|
|
|
|
"@" @keyword
|
|
|
|
"@" @keyword
|
|
|
|
|
|
|
|
|
|
|
@ -69,6 +112,8 @@
|
|
|
|
[
|
|
|
|
[
|
|
|
|
","
|
|
|
|
","
|
|
|
|
"."
|
|
|
|
"."
|
|
|
|
|
|
|
|
";"
|
|
|
|
|
|
|
|
":"
|
|
|
|
] @punctuation.delimiter
|
|
|
|
] @punctuation.delimiter
|
|
|
|
|
|
|
|
|
|
|
|
; ; Brackets
|
|
|
|
; ; Brackets
|
|
|
@ -81,11 +126,13 @@
|
|
|
|
"}"
|
|
|
|
"}"
|
|
|
|
] @punctuation.bracket
|
|
|
|
] @punctuation.bracket
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define_property ["<" ">"] @punctuation.bracket)
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"angle"
|
|
|
|
"angle"
|
|
|
|
"bool"
|
|
|
|
"bool"
|
|
|
|
"brush"
|
|
|
|
"brush"
|
|
|
|
; "color" // This causes problems
|
|
|
|
"color"
|
|
|
|
"duration"
|
|
|
|
"duration"
|
|
|
|
"easing"
|
|
|
|
"easing"
|
|
|
|
"float"
|
|
|
|
"float"
|
|
|
@ -100,6 +147,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
":="
|
|
|
|
":="
|
|
|
|
|
|
|
|
"<=>"
|
|
|
|
"!"
|
|
|
|
"!"
|
|
|
|
"-"
|
|
|
|
"-"
|
|
|
|
"+"
|
|
|
|
"+"
|
|
|
@ -118,8 +166,6 @@
|
|
|
|
"*="
|
|
|
|
"*="
|
|
|
|
"/="
|
|
|
|
"/="
|
|
|
|
"?"
|
|
|
|
"?"
|
|
|
|
|
|
|
|
"=>" ] @operator
|
|
|
|
"=>"
|
|
|
|
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(ternary_expression [":" "?"] @keyword.control.conditional)
|
|
|
|
(ternary_expression [":" "?"] @keyword.control.conditional)
|