Unnamed repository; edit this file 'description' to name the repository.
fix: Highlight `'x'` as a character in Go
Nik Revenco 8 months ago
parent 0d79923 · commit b036fa0
-rw-r--r--runtime/queries/go/highlights.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/queries/go/highlights.scm b/runtime/queries/go/highlights.scm
index 485b5cb8..0d65eb16 100644
--- a/runtime/queries/go/highlights.scm
+++ b/runtime/queries/go/highlights.scm
@@ -180,9 +180,10 @@
[
(interpreted_string_literal)
(raw_string_literal)
- (rune_literal)
] @string
+(rune_literal) @constant.character
+
(escape_sequence) @constant.character.escape
[