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
pull/9959/head
Michael Davis 1 year ago committed by Blaž Hrastnik
parent fdcd461e65
commit 9ceeea5a83

@ -1795,7 +1795,7 @@ auto-format = true
[[grammar]] [[grammar]]
name = "gleam" name = "gleam"
source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "b2afa4fd6bb41a7bf912b034c653c90af7ae5122" } source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "bcf9c45b56cbe46e9dac5eee0aee75df270000ac" }
[[language]] [[language]]
name = "ron" name = "ron"

@ -61,10 +61,17 @@
; Literals ; Literals
(string) @string (string) @string
((escape_sequence) @warning
(#eq? @warning "\\e")) ; deprecated escape sequence
(escape_sequence) @constant.character.escape
(bit_string_segment_option) @function.builtin (bit_string_segment_option) @function.builtin
(integer) @constant.numeric.integer (integer) @constant.numeric.integer
(float) @constant.numeric.float (float) @constant.numeric.float
; Reserved identifiers
((identifier) @error
(#any-of? @error "auto" "delegate" "derive" "else" "implement" "macro" "test" "echo"))
; Variables ; Variables
(identifier) @variable (identifier) @variable
(discard) @comment.unused (discard) @comment.unused

Loading…
Cancel
Save