aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-12-28 18:20:11 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2021-01-03 19:05:38 +0100
commit43381c1321a16686259de8631f4f3e71bb7939a6 (patch)
treeeb920ac82e10cf1d415c0110b8fd879376b8b08f /queries
parentRegex highlights: no escape highlighting for escaped special characters (diff)
downloadnvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.tar
nvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.tar.gz
nvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.tar.bz2
nvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.tar.lz
nvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.tar.xz
nvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.tar.zst
nvim-treesitter-43381c1321a16686259de8631f4f3e71bb7939a6.zip
Regex highlights: Add constant highlight for class_character
Diffstat (limited to 'queries')
-rw-r--r--queries/regex/highlights.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/queries/regex/highlights.scm b/queries/regex/highlights.scm
index 7f765f0e9..3f5ee8515 100644
--- a/queries/regex/highlights.scm
+++ b/queries/regex/highlights.scm
@@ -17,10 +17,11 @@
;; These are escaped special characters that lost their special meaning
;; -> no special highlighting
-; (identity_escape)
+(identity_escape) @string.regex
+
+(class_character) @constant
[
- (identity_escape)
(control_letter_escape)
(character_class_escape)
(control_escape)