mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Regex highlights: Add constant highlight for class_character
This commit is contained in:
parent
e8fa1c2c84
commit
43381c1321
2 changed files with 4 additions and 2 deletions
|
|
@ -114,6 +114,7 @@ are optional and will not have any effect for now.
|
||||||
@constant.macro
|
@constant.macro
|
||||||
@string
|
@string
|
||||||
@string.regex
|
@string.regex
|
||||||
|
@string.regex-classchar
|
||||||
@string.escape
|
@string.escape
|
||||||
@string.special
|
@string.special
|
||||||
@character
|
@character
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,11 @@
|
||||||
|
|
||||||
;; These are escaped special characters that lost their special meaning
|
;; These are escaped special characters that lost their special meaning
|
||||||
;; -> no special highlighting
|
;; -> no special highlighting
|
||||||
; (identity_escape)
|
(identity_escape) @string.regex
|
||||||
|
|
||||||
|
(class_character) @constant
|
||||||
|
|
||||||
[
|
[
|
||||||
(identity_escape)
|
|
||||||
(control_letter_escape)
|
(control_letter_escape)
|
||||||
(character_class_escape)
|
(character_class_escape)
|
||||||
(control_escape)
|
(control_escape)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue