From 25f6bf8b795da94eca4ccf6c13ec1bfc9566a64a Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sun, 2 Feb 2025 12:23:01 -0500 Subject: [PATCH] Update highlights.scm --- runtime/queries/tera/highlights.scm | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/runtime/queries/tera/highlights.scm b/runtime/queries/tera/highlights.scm index d26e3ed054ae..c01a9480e92f 100644 --- a/runtime/queries/tera/highlights.scm +++ b/runtime/queries/tera/highlights.scm @@ -1,9 +1,9 @@ -; Syntax highlighting scopes for Helix: https://docs.helix-editor.com/themes.html. +; Namespaces (import_statement scope: (identifier) @namespace) -; Namespaces +; Functions (filter_expression filter: (identifier) @function.builtin @@ -103,7 +103,7 @@ (optional_parameter name: (identifier) @variable.parameter))) -; Functions +; Keywords [ "set" @@ -150,13 +150,11 @@ "endif" ] @keyword.control.conditional -; Keywords -;----------- +; Tags (comment_tag) @comment -; Tags -;----------- +; Tokens [ "(" @@ -196,8 +194,8 @@ "," ] @punctuation.delimiter -; Tokens -;----------- + +; Literals (number) @constant.numeric @@ -205,14 +203,12 @@ (string) @string -; Literals -;----------- +; Properties (member_expression property: (identifier)? @variable.other.member) -; Properties -;----------- +; Variables ((identifier) @variable.builtin (#any-of? @variable.builtin @@ -220,6 +216,3 @@ "__tera_context")) (identifier) @variable - -; Variables -;---------- \ No newline at end of file