highlights.scm

 1[
 2  "("
 3  ")"
 4  "(?"
 5  "(?:"
 6  "(?<"
 7  "(?P="
 8  "<"
 9  ">"
10  "["
11  "]"
12  "{"
13  "}"
14] @punctuation.bracket.regex
15
16(group_name) @label.regex
17
18[
19  (identity_escape)
20  (control_letter_escape)
21  (character_class_escape)
22  (control_escape)
23] @string.escape
24
25[
26  "*"
27  "+"
28  "?"
29  "|"
30  "="
31  "!"
32  (start_assertion)
33  (end_assertion)
34  (any_character)
35] @operator.regex
36
37[
38  (boundary_assertion)
39  (non_boundary_assertion)
40  (backreference_escape)
41] @keyword.operator.regex
42
43(count_quantifier
44  [
45    (decimal_digits) @number
46    "," @punctuation.delimiter.regex
47  ])
48
49(character_class
50  [
51    "^" @operator.regex
52    (class_range "-" @operator.regex)
53  ])