aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/gleam/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/gleam/highlights.scm')
-rw-r--r--runtime/queries/gleam/highlights.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/gleam/highlights.scm b/runtime/queries/gleam/highlights.scm
index 95a08141..b40574b0 100644
--- a/runtime/queries/gleam/highlights.scm
+++ b/runtime/queries/gleam/highlights.scm
@@ -61,10 +61,17 @@
; Literals
(string) @string
+((escape_sequence) @warning
+ (#eq? @warning "\\e")) ; deprecated escape sequence
+(escape_sequence) @constant.character.escape
(bit_string_segment_option) @function.builtin
(integer) @constant.numeric.integer
(float) @constant.numeric.float
+; Reserved identifiers
+((identifier) @error
+ (#any-of? @error "auto" "delegate" "derive" "else" "implement" "macro" "test" "echo"))
+
; Variables
(identifier) @variable
(discard) @comment.unused