aboutsummaryrefslogtreecommitdiffstats
path: root/queries/go/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/go/highlights.scm')
-rw-r--r--queries/go/highlights.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm
index 3d261f52a..d68284ede 100644
--- a/queries/go/highlights.scm
+++ b/queries/go/highlights.scm
@@ -186,6 +186,7 @@
(interpreted_string_literal) @string
(raw_string_literal) @string
+(raw_string_literal) @spell
(rune_literal) @string
(escape_sequence) @string.escape
@@ -202,5 +203,12 @@
(field_declaration name: (field_identifier) @field)
(comment) @comment
+(comment) @spell
(ERROR) @error
+
+((interpreted_string_literal) @spell
+ (#not-has-parent? @spell
+ import_spec
+ )
+)