Skip to content

Commit

Permalink
Update highlights.scm
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Feb 2, 2025
1 parent c3f370e commit 25f6bf8
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions runtime/queries/tera/highlights.scm
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -103,7 +103,7 @@
(optional_parameter
name: (identifier) @variable.parameter)))

; Functions
; Keywords

[
"set"
Expand Down Expand Up @@ -150,13 +150,11 @@
"endif"
] @keyword.control.conditional

; Keywords
;-----------
; Tags

(comment_tag) @comment

; Tags
;-----------
; Tokens

[
"("
Expand Down Expand Up @@ -196,30 +194,25 @@
","
] @punctuation.delimiter

; Tokens
;-----------

; Literals

(number) @constant.numeric

(bool) @constant.builtin

(string) @string

; Literals
;-----------
; Properties

(member_expression
property: (identifier)? @variable.other.member)

; Properties
;-----------
; Variables

((identifier) @variable.builtin
(#any-of? @variable.builtin
"loop"
"__tera_context"))

(identifier) @variable

; Variables
;----------

0 comments on commit 25f6bf8

Please sign in to comment.