Skip to content

Commit

Permalink
capture interesting nodes in character-ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Dec 29, 2021
1 parent 7f474ba commit 827d110
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runtime/queries/regex/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@
] @constant.character.escape

(group_name) @property

(count_quantifier (decimal_digits) @constant.numeric)
(count_quantifier "," @punctuation.delimiter)

(character_class
(class_range [
(class_character) @constant.character
"-" @operator
]))

(class_character) @string

0 comments on commit 827d110

Please sign in to comment.