aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/gleam
diff options
context:
space:
mode:
authorMichael Davis2023-06-05 13:40:48 +0000
committerBlaž Hrastnik2024-03-21 15:20:29 +0000
commit9ceeea5a83270284b42813a128962ca5102b07f6 (patch)
treecd87d79188d3025642605340cb5d4ec1aaeea3b5 /runtime/queries/gleam
parentfdcd461e65aebc8432e4fbfd51b10856fcb65605 (diff)
Update tree-sitter-gleam and highlights
This contains a few syntax fixes. The highlights have been updated as well for reserved identifiers and escape sequences
Diffstat (limited to 'runtime/queries/gleam')
-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