mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
fix(d): don't use string_literals
string_literals is not used in single argument template instances. The
nodes are from [1].
[1]: c2fbf21bd3/grammar.js (L536)
This commit is contained in:
parent
272666ab95
commit
6cefdf3bab
1 changed files with 8 additions and 4 deletions
|
|
@ -34,10 +34,14 @@
|
||||||
"__PRETTY_FUNCTION__"
|
"__PRETTY_FUNCTION__"
|
||||||
] @constant.macro
|
] @constant.macro
|
||||||
|
|
||||||
(string_literals) @string
|
[
|
||||||
|
(wysiwyg_string)
|
||||||
; Don't highlight token strings as strings
|
(alternate_wysiwyg_string)
|
||||||
(token_string_tokens) @none
|
(double_quoted_string)
|
||||||
|
(hex_string)
|
||||||
|
(delimited_string)
|
||||||
|
(token_string)
|
||||||
|
] @string
|
||||||
|
|
||||||
(character_literal) @character
|
(character_literal) @character
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue