Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 15, 2023
1 parent 03bec8d commit 98ebe2c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions runtime/queries/templ/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(variadic_parameter_declaration (identifier) @variable.parameter)

(function_declaration
name: (identifier) @function)
name: (identifier) @definition.function)

(type_spec name: (type_identifier) @type.definition)
(type_identifier) @type
Expand All @@ -20,7 +20,7 @@
; Function calls

(call_expression
function: (identifier) @function.call)
function: (identifier) @definition.function.call)

(call_expression
function: (selector_expression
Expand All @@ -31,7 +31,7 @@
;

(component_declaration
name: (component_identifier) @function)
name: (component_identifier) @definition.function)

(tag_start) @tag
(tag_end) @tag
Expand All @@ -49,13 +49,13 @@
(css_property
name: (css_property_name) @attribute)

(expression) @function.method
(dynamic_class_attribute_value) @function.method
(expression) @definition.function.method
(dynamic_class_attribute_value) @definition.function.method

(component_import
name: (component_identifier) @function)
name: (component_identifier) @definition.function)

(component_render) @function.call
(component_render) @definition.function.call

[
"@"
Expand Down Expand Up @@ -85,9 +85,9 @@
"switch"
"if"
"default"
] @variable.conditional
] @keyword.control.conditional

"for" @repeat
"for" @keyword.control.repeat

[
(interpreted_string_literal)
Expand Down

0 comments on commit 98ebe2c

Please sign in to comment.