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 4d1009b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions runtime/queries/regex/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@
] @constant.character.escape

(group_name) @property

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

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

(class_character) @string

0 comments on commit 4d1009b

Please sign in to comment.