|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"import"
|
|
|
|
|
|
|
|
"export"
|
|
|
|
|
|
|
|
"from"
|
|
|
|
|
|
|
|
] @keyword.control.import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"if"
|
|
|
|
|
|
|
|
"else"
|
|
|
|
|
|
|
|
"when"
|
|
|
|
|
|
|
|
] @keyword.control.conditional
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"struct"
|
|
|
|
|
|
|
|
"property"
|
|
|
|
|
|
|
|
] @keyword.storage.type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"global"
|
|
|
|
|
|
|
|
] @keyword.storage.modifier
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"struct"
|
|
|
|
"root"
|
|
|
|
"property"
|
|
|
|
"parent"
|
|
|
|
"callback"
|
|
|
|
"duration"
|
|
|
|
"import"
|
|
|
|
"easing"
|
|
|
|
"from"
|
|
|
|
] @variable.builtin
|
|
|
|
"root"
|
|
|
|
|
|
|
|
"parent"
|
|
|
|
|
|
|
|
"this"
|
|
|
|
[
|
|
|
|
"for"
|
|
|
|
"callback"
|
|
|
|
"in"
|
|
|
|
"animate"
|
|
|
|
"if"
|
|
|
|
"states"
|
|
|
|
"else if"
|
|
|
|
"out"
|
|
|
|
"else"
|
|
|
|
"transitions"
|
|
|
|
"animate"
|
|
|
|
"component"
|
|
|
|
"states"
|
|
|
|
"inherits"
|
|
|
|
"when"
|
|
|
|
|
|
|
|
"in"
|
|
|
|
|
|
|
|
"out"
|
|
|
|
|
|
|
|
"transitions"
|
|
|
|
|
|
|
|
"global"
|
|
|
|
|
|
|
|
] @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,37 +112,42 @@
|
|
|
|
[
|
|
|
|
[
|
|
|
|
","
|
|
|
|
","
|
|
|
|
"."
|
|
|
|
"."
|
|
|
|
|
|
|
|
";"
|
|
|
|
|
|
|
|
":"
|
|
|
|
] @punctuation.delimiter
|
|
|
|
] @punctuation.delimiter
|
|
|
|
|
|
|
|
|
|
|
|
; ; Brackets
|
|
|
|
; ; Brackets
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"("
|
|
|
|
"("
|
|
|
|
")"
|
|
|
|
")"
|
|
|
|
"["
|
|
|
|
"["
|
|
|
|
"]"
|
|
|
|
"]"
|
|
|
|
"{"
|
|
|
|
"{"
|
|
|
|
"}"
|
|
|
|
"}"
|
|
|
|
] @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"
|
|
|
|
"image"
|
|
|
|
"image"
|
|
|
|
"int"
|
|
|
|
"int"
|
|
|
|
"length"
|
|
|
|
"length"
|
|
|
|
"percent"
|
|
|
|
"percent"
|
|
|
|
"physical-length"
|
|
|
|
"physical-length"
|
|
|
|
"physical_length"
|
|
|
|
"physical_length"
|
|
|
|
"string"
|
|
|
|
"string"
|
|
|
|
] @type.builtin
|
|
|
|
] @type.builtin
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
":="
|
|
|
|
":="
|
|
|
|
|
|
|
|
"<=>"
|
|
|
|
"!"
|
|
|
|
"!"
|
|
|
|
"-"
|
|
|
|
"-"
|
|
|
|
"+"
|
|
|
|
"+"
|
|
|
@ -118,8 +166,6 @@
|
|
|
|
"*="
|
|
|
|
"*="
|
|
|
|
"/="
|
|
|
|
"/="
|
|
|
|
"?"
|
|
|
|
"?"
|
|
|
|
|
|
|
|
"=>" ] @operator
|
|
|
|
"=>"
|
|
|
|
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(ternary_expression [":" "?"] @keyword.control.conditional)
|
|
|
|
(ternary_expression [":" "?"] @keyword.control.conditional)
|