From 43381c1321a16686259de8631f4f3e71bb7939a6 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Mon, 28 Dec 2020 18:20:11 +0100 Subject: [PATCH] Regex highlights: Add constant highlight for class_character --- CONTRIBUTING.md | 1 + queries/regex/highlights.scm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 08d4237e5..a406ec85d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -114,6 +114,7 @@ are optional and will not have any effect for now. @constant.macro @string @string.regex +@string.regex-classchar @string.escape @string.special @character 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)