mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
Highlights: define string.special (#1551)
* Highlights: define string.special This was in our CONTRIBUTING.md file, but wasn't defined. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405 * Use string.escape
This commit is contained in:
parent
4571d57251
commit
647268183f
4 changed files with 7 additions and 1 deletions
|
|
@ -602,6 +602,10 @@ For regexes.
|
|||
`TSStringEscape`
|
||||
For escape characters within a string.
|
||||
|
||||
*hl-TSStringSpecial*
|
||||
`TSStringSpecial`
|
||||
For strings with special meaning that don't fit into the above categories.
|
||||
|
||||
*hl-TSSymbol*
|
||||
`TSSymbol`
|
||||
For identifiers referring to symbols or atoms.
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ hlmap["repeat"] = "TSRepeat"
|
|||
hlmap["string"] = "TSString"
|
||||
hlmap["string.regex"] = "TSStringRegex"
|
||||
hlmap["string.escape"] = "TSStringEscape"
|
||||
hlmap["string.special"] = "TSStringSpecial"
|
||||
|
||||
hlmap["symbol"] = "TSSymbol"
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ highlight default link TSConstMacro Define
|
|||
highlight default link TSString String
|
||||
highlight default link TSStringRegex String
|
||||
highlight default link TSStringEscape SpecialChar
|
||||
highlight default link TSStringSpecial SpecialChar
|
||||
highlight default link TSCharacter Character
|
||||
highlight default link TSNumber Number
|
||||
highlight default link TSBoolean Boolean
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@
|
|||
; control structure
|
||||
(control_structure) @conditional
|
||||
|
||||
(escape_sequence) @string.special
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
; SinOsc.ar()!2
|
||||
(duplicated_statement) @repeat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue