From 98ebe2cea16f0633f7e6a262aa8322af20ac4109 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 15 Oct 2023 13:20:36 +0200 Subject: [PATCH] tmp --- runtime/queries/templ/highlights.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/runtime/queries/templ/highlights.scm b/runtime/queries/templ/highlights.scm index 78b6594a0cd81..02c0a6c8ce515 100644 --- a/runtime/queries/templ/highlights.scm +++ b/runtime/queries/templ/highlights.scm @@ -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 @@ -20,7 +20,7 @@ ; Function calls (call_expression - function: (identifier) @function.call) + function: (identifier) @definition.function.call) (call_expression function: (selector_expression @@ -31,7 +31,7 @@ ; (component_declaration - name: (component_identifier) @function) + name: (component_identifier) @definition.function) (tag_start) @tag (tag_end) @tag @@ -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 [ "@" @@ -85,9 +85,9 @@ "switch" "if" "default" -] @variable.conditional +] @keyword.control.conditional -"for" @repeat +"for" @keyword.control.repeat [ (interpreted_string_literal)