You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
; inherits: go
|
|
|
|
|
|
|
|
(css_declaration
|
|
|
|
name: (css_identifier) @function)
|
|
|
|
(script_declaration
|
|
|
|
name: (script_identifier) @function)
|
|
|
|
|
|
|
|
(component_declaration
|
|
|
|
name: (component_identifier) @function)
|
|
|
|
|
|
|
|
(tag_start) @tag
|
|
|
|
(tag_end) @tag
|
|
|
|
(self_closing_tag) @tag
|
|
|
|
(style_element) @tag
|
|
|
|
|
|
|
|
(attribute
|
|
|
|
name: (attribute_name) @attribute)
|
|
|
|
(attribute
|
|
|
|
value: (quoted_attribute_value) @string)
|
|
|
|
|
|
|
|
(element_text) @string.special
|
|
|
|
(style_element_text) @string.special
|
|
|
|
|
|
|
|
(css_property
|
|
|
|
name: (css_property_name) @attribute)
|
|
|
|
(css_property
|
|
|
|
value: (css_property_value) @constant)
|
|
|
|
|
|
|
|
(expression) @function.method
|
|
|
|
(dynamic_class_attribute_value) @function.method
|
|
|
|
|
|
|
|
(component_import
|
|
|
|
name: (component_identifier) @function)
|
|
|
|
|
|
|
|
(component_render) @function
|
|
|
|
|
|
|
|
[
|
|
|
|
"@"
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"templ"
|
|
|
|
"css"
|
|
|
|
"type"
|
|
|
|
"script"
|
|
|
|
] @keyword.storage.type
|
|
|
|
|
|
|
|
[
|
|
|
|
(interpreted_string_literal)
|
|
|
|
(raw_string_literal)
|
|
|
|
(rune_literal)
|
|
|
|
] @string
|
|
|
|
|
|
|
|
; Comments
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
(element_comment) @comment
|