summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCezary Drożak <czarek@drozak.net>2021-10-17 13:25:18 +0200
committerStephan Seitz <stephan.seitz@fau.de>2021-10-20 09:16:20 +0200
commit6cefdf3babec509807b07b543d28ec5db647dab9 (patch)
tree2f691b71fa3e6aa6767ad64818a376acdcdfba4d
parent272666ab95a5dd252735e2852d14e0ece919410d (diff)
fix(d): don't use string_literals
string_literals is not used in single argument template instances. The nodes are from [1]. [1]: https://github.com/CyberShadow/tree-sitter-d/blob/c2fbf21bd3aa45495fe13247e040ad5815250032/grammar.js#L536
-rw-r--r--queries/d/highlights.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/queries/d/highlights.scm b/queries/d/highlights.scm
index 3dffa182..de98cff7 100644
--- a/queries/d/highlights.scm
+++ b/queries/d/highlights.scm
@@ -34,10 +34,14 @@
"__PRETTY_FUNCTION__"
] @constant.macro
-(string_literals) @string
-
-; Don't highlight token strings as strings
-(token_string_tokens) @none
+[
+ (wysiwyg_string)
+ (alternate_wysiwyg_string)
+ (double_quoted_string)
+ (hex_string)
+ (delimited_string)
+ (token_string)
+] @string
(character_literal) @character