Debian Codegraph @

runtime/queries/regex/highlights.scm

raw symbols SCIP
1 ; upstream: https://github.com/tree-sitter/tree-sitter-regex/blob/b2ac15e27fce703d2f37a79ccd94a5c0cbe9720b/queries/highlights.scm
2
3 [
4 "("
5 ")"
6 "(?"
7 "(?:"
8 "(?<"
9 "(?P<"
10 "(?P="
11 ">"
12 "["
13 "]"
14 "[:"
15 ":]"
16 "{"
17 "}"
18 ] @punctuation.bracket
19
20 ; `<=`/`<!` lookbehind are now `<` + `=`/`!` (lookahead and lookbehind share
21 ; the unified lookaround_assertion); the bare `<` is left unhighlighted.
22 [
23 "*"
24 "+"
25 "|"
26 "="
27 "!"
28 "?"
29 ] @operator
30
31 [
32 (identity_escape)
33 (control_letter_escape)
34 (character_class_escape)
35 (control_escape)
36 (start_assertion)
37 (end_assertion)
38 (boundary_assertion)
39 (non_boundary_assertion)
40 ] @constant.character.escape
41
42 (group_name) @label
43
44 (count_quantifier
45 [
46 (decimal_digits) @constant.numeric
47 "," @punctuation.delimiter
48 ])
49
50 ; Inline flags: `(?i)` / `(?i-s:…)`.
51 (inline_flags_group
52 "-"? @operator
53 ":"? @punctuation.delimiter)
54 (flags) @constant.character
55
56 (character_class
57 [
58 "^" @operator
59 (class_range "-" @operator)
60 ])
61
62 ; POSIX class name (`alpha` in `[[:alpha:]]`) alongside literal class chars.
63 [
64 (class_character)
65 (posix_class_name)
66 ] @constant.character