Debian Codegraph @

runtime/queries/templ/highlights.scm

raw symbols SCIP
1 ; inherits: go
2
3 (css_declaration
4 name: (css_identifier) @function)
5 (script_declaration
6 name: (script_identifier) @function)
7
8 (component_declaration
9 name: (component_identifier) @function)
10
11 (tag_start) @tag
12 (tag_end) @tag
13 (self_closing_tag) @tag
14 (style_element) @tag
15
16 (attribute
17 name: (attribute_name) @attribute)
18 (attribute
19 value: (quoted_attribute_value) @string)
20
21 (element_text) @string.special
22 (style_element_text) @string.special
23
24 (css_property
25 name: (css_property_name) @attribute)
26 (css_property
27 value: (css_property_value) @constant)
28
29 (expression) @function.method
30 (dynamic_class_attribute_value) @function.method
31
32 (component_import
33 name: (component_identifier) @function)
34
35 (component_render) @function
36
37 [
38 "@"
39 ] @operator
40
41 [
42 "templ"
43 "css"
44 "type"
45 "script"
46 ] @keyword.storage.type
47
48 [
49 (interpreted_string_literal)
50 (raw_string_literal)
51 (rune_literal)
52 ] @string
53
54 ; Comments
55
56 (comment) @comment
57
58 (element_comment) @comment