forked from PrismJS/prism
/
choice-style_feature.test
105 lines (101 loc) · 2.16 KB
/
choice-style_feature.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
The disk {1} contains {0,choice,0#no files|1#one file|1<{0,number,integer} files}
{3, choice, -1#is negative| 0#is zero or fraction | 1#is one |1.0<is 1+ |2#is two |2<is more than 2.}
----------------------------------------------------
[
"The disk ",
["argument", [
["argument-delimiter", "{"],
["content", [
["argument-name", "1"]
]],
["argument-delimiter", "}"]
]],
" contains ",
["argument", [
["argument-delimiter", "{"],
["content", [
["argument-name", "0"],
["punctuation", ","],
["keyword", "choice"],
["punctuation", ","],
["choice-style", [
["range", [
["number", "0"],
["operator", "#"]
]],
"no files",
["punctuation", "|"],
["range", [
["number", "1"],
["operator", "#"]
]],
"one file",
["punctuation", "|"],
["range", [
["number", "1"],
["operator", "<"]
]],
["argument", [
["argument-delimiter", "{"],
["content", [
["argument-name", "0"],
["punctuation", ","],
["arg-type", "number"],
["punctuation", ","],
["arg-style", "integer"]
]],
["argument-delimiter", "}"]
]],
" files"
]]
]],
["argument-delimiter", "}"]
]],
["argument", [
["argument-delimiter", "{"],
["content", [
["argument-name", "3"],
["punctuation", ","],
["keyword", "choice"],
["punctuation", ","],
["choice-style", [
["range", [
["number", "-1"],
["operator", "#"]
]],
"is negative",
["punctuation", "|"],
["range", [
["number", "0"],
["operator", "#"]
]],
"is zero or fraction ",
["punctuation", "|"],
["range", [
["number", "1"],
["operator", "#"]
]],
"is one ",
["punctuation", "|"],
["range", [
["number", "1.0"],
["operator", "<"]
]],
"is 1+ ",
["punctuation", "|"],
["range", [
["number", "2"],
["operator", "#"]
]],
"is two ",
["punctuation", "|"],
["range", [
["number", "2"],
["operator", "<"]
]],
"is more than 2."
]]
]],
["argument-delimiter", "}"]
]]
]