aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md1
-rw-r--r--queries/regex/highlights.scm5
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)