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:
Santos Gallegos 2021-07-11 15:59:53 -05:00 committed by GitHub
parent 4571d57251
commit 647268183f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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

View file

@ -93,7 +93,7 @@
; control structure
(control_structure) @conditional
(escape_sequence) @string.special
(escape_sequence) @string.escape
; SinOsc.ar()!2
(duplicated_statement) @repeat