highlights.scm

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