Debian Codegraph @

tests/languages/antlr4/character-class_feature.test

raw
1 [abc]
2 [\r\n\\\]]
3 [a-z]
4 [+-] [-+]
5 [\uFFFF\u{10FFFF}\p{Block=Latin_1_Supplement}]
6
7 ----------------------------------------------------
8
9 [
10 ["character-class", [
11 ["punctuation", "["],
12 "abc",
13 ["punctuation", "]"]
14 ]],
15 ["character-class", [
16 ["punctuation", "["],
17 ["escape", "\\r"],
18 ["escape", "\\n"],
19 ["escape", "\\\\"],
20 ["escape", "\\]"],
21 ["punctuation", "]"]
22 ]],
23 ["character-class", [
24 ["punctuation", "["],
25 "a",
26 ["range", "-"],
27 "z",
28 ["punctuation", "]"]
29 ]],
30 ["character-class", [
31 ["punctuation", "["],
32 "+-",
33 ["punctuation", "]"]
34 ]],
35 ["character-class", [
36 ["punctuation", "["],
37 "-+",
38 ["punctuation", "]"]
39 ]],
40 ["character-class", [
41 ["punctuation", "["],
42 ["escape", "\\uFFFF"],
43 ["escape", "\\u{10FFFF}"],
44 ["escape", "\\p{Block=Latin_1_Supplement}"],
45 ["punctuation", "]"]
46 ]]
47 ]
48
49 ----------------------------------------------------
50
51 Checks for character classes.