28
28
----------------------------------------------------
29
29
30
30
[
31
- ["tag", [
32
- ["ld", [["punctuation", "{%"], ["keyword", "set"]]],
33
- ["property", "a"], ["operator", "="], ["number", "4"],
34
- ["rd", [["punctuation", "%}"]]]
35
- ]],
36
- ["tag", [
37
- ["ld", [["punctuation", "{{"]]],
38
- ["property", "a"], ["operator", "=="], ["number", "4"],
39
- ["rd", [["punctuation", "}}"]]]
40
- ]],
41
- ["tag", [
42
- ["ld", [["punctuation", "{{"]]],
43
- ["property", "b"], ["operator", "!="], ["property", "c"],
44
- ["rd", [["punctuation", "}}"]]]
45
- ]],
46
- ["tag", [
47
- ["ld", [["punctuation", "{{"]]],
48
- ["property", "c"], ["operator", "<"], ["property", "d"],
49
- ["rd", [["punctuation", "}}"]]]
50
- ]],
51
- ["tag", [
52
- ["ld", [["punctuation", "{{"]]],
53
- ["property", "d"], ["operator", "<="], ["property", "e"],
54
- ["rd", [["punctuation", "}}"]]]
55
- ]],
56
- ["tag", [
57
- ["ld", [["punctuation", "{{"]]],
58
- ["property", "e"], ["operator", ">"], ["property", "f"],
59
- ["rd", [["punctuation", "}}"]]]
60
- ]],
61
- ["tag", [
62
- ["ld", [["punctuation", "{{"]]],
63
- ["property", "f"], ["operator", ">="], ["property", "g"],
64
- ["rd", [["punctuation", "}}"]]]
65
- ]],
66
- ["tag", [
67
- ["ld", [["punctuation", "{{"]]],
68
- ["property", "g"], ["operator", "+"], ["property", "h"],
69
- ["rd", [["punctuation", "}}"]]]
70
- ]],
71
- ["tag", [
72
- ["ld", [["punctuation", "{{"]]],
73
- ["property", "h"], ["operator", "-"], ["property", "i"],
74
- ["rd", [["punctuation", "}}"]]]
75
- ]],
76
- ["tag", [
77
- ["ld", [["punctuation", "{{"]]],
78
- ["property", "i"], ["operator", "~"], ["property", "j"],
79
- ["rd", [["punctuation", "}}"]]]
80
- ]],
81
- ["tag", [
82
- ["ld", [["punctuation", "{{"]]],
83
- ["property", "j"], ["operator", "*"], ["property", "k"],
84
- ["rd", [["punctuation", "}}"]]]
85
- ]],
86
- ["tag", [
87
- ["ld", [["punctuation", "{{"]]],
88
- ["property", "k"], ["operator", "**"], ["property", "l"],
89
- ["rd", [["punctuation", "}}"]]]
90
- ]],
91
- ["tag", [
92
- ["ld", [["punctuation", "{{"]]],
93
- ["property", "l"], ["operator", "/"], ["property", "m"],
94
- ["rd", [["punctuation", "}}"]]]
95
- ]],
96
- ["tag", [
97
- ["ld", [["punctuation", "{{"]]],
98
- ["property", "m"], ["operator", "//"], ["property", "n"],
99
- ["rd", [["punctuation", "}}"]]]
100
- ]],
101
- ["tag", [
102
- ["ld", [["punctuation", "{{"]]],
103
- ["property", "n"], ["operator", "%"], ["property", "o"],
104
- ["rd", [["punctuation", "}}"]]]
105
- ]],
106
- ["tag", [
107
- ["ld", [["punctuation", "{{"]]],
108
- ["property", "o"],
31
+ ["twig", [
32
+ ["delimiter", "{%"],
33
+ ["tag-name", "set"],
34
+ " a ",
35
+ ["operator", "="],
36
+ ["number", "4"],
37
+ ["delimiter", "%}"]
38
+ ]],
39
+ ["twig", [
40
+ ["delimiter", "{{"],
41
+ " a ",
42
+ ["operator", "=="],
43
+ ["number", "4"],
44
+ ["delimiter", "}}"]
45
+ ]],
46
+ ["twig", [
47
+ ["delimiter", "{{"],
48
+ " b ",
49
+ ["operator", "!="],
50
+ " c ",
51
+ ["delimiter", "}}"]
52
+ ]],
53
+ ["twig", [
54
+ ["delimiter", "{{"],
55
+ " c ",
56
+ ["operator", "<"],
57
+ " d ",
58
+ ["delimiter", "}}"]
59
+ ]],
60
+ ["twig", [
61
+ ["delimiter", "{{"],
62
+ " d ",
63
+ ["operator", "<="],
64
+ " e ",
65
+ ["delimiter", "}}"]
66
+ ]],
67
+ ["twig", [
68
+ ["delimiter", "{{"],
69
+ " e ",
70
+ ["operator", ">"],
71
+ " f ",
72
+ ["delimiter", "}}"]
73
+ ]],
74
+ ["twig", [
75
+ ["delimiter", "{{"],
76
+ " f ",
77
+ ["operator", ">="],
78
+ " g ",
79
+ ["delimiter", "}}"]
80
+ ]],
81
+ ["twig", [
82
+ ["delimiter", "{{"],
83
+ " g ",
84
+ ["operator", "+"],
85
+ " h ",
86
+ ["delimiter", "}}"]
87
+ ]],
88
+ ["twig", [
89
+ ["delimiter", "{{"],
90
+ " h ",
91
+ ["operator", "-"],
92
+ " i ",
93
+ ["delimiter", "}}"]
94
+ ]],
95
+ ["twig", [
96
+ ["delimiter", "{{"],
97
+ " i ",
98
+ ["operator", "~"],
99
+ " j ",
100
+ ["delimiter", "}}"]
101
+ ]],
102
+ ["twig", [
103
+ ["delimiter", "{{"],
104
+ " j ",
105
+ ["operator", "*"],
106
+ " k ",
107
+ ["delimiter", "}}"]
108
+ ]],
109
+ ["twig", [
110
+ ["delimiter", "{{"],
111
+ " k ",
112
+ ["operator", "**"],
113
+ " l ",
114
+ ["delimiter", "}}"]
115
+ ]],
116
+ ["twig", [
117
+ ["delimiter", "{{"],
118
+ " l ",
119
+ ["operator", "/"],
120
+ " m ",
121
+ ["delimiter", "}}"]
122
+ ]],
123
+ ["twig", [
124
+ ["delimiter", "{{"],
125
+ " m ",
126
+ ["operator", "//"],
127
+ " n ",
128
+ ["delimiter", "}}"]
129
+ ]],
130
+ ["twig", [
131
+ ["delimiter", "{{"],
132
+ " n ",
133
+ ["operator", "%"],
134
+ " o ",
135
+ ["delimiter", "}}"]
136
+ ]],
137
+ ["twig", [
138
+ ["delimiter", "{{"],
139
+ " o",
109
140
["operator", "|"],
110
- ["property", " default"] ,
141
+ " default",
111
142
["punctuation", "("],
112
- ["string", [["punctuation", "'"], "foo", ["punctuation", "'"]]],
143
+ ["string", [
144
+ ["punctuation", "'"],
145
+ "foo",
146
+ ["punctuation", "'"]
147
+ ]],
113
148
["punctuation", ")"],
114
- ["rd", [["punctuation", "}}"]]]
115
- ]],
116
- ["tag", [
117
- ["ld", [["punctuation", "{{"]]],
118
- ["property", "p"], ["operator", "?"],
119
- ["property", "q"], ["punctuation", ":"],
120
- ["property", "r"],
121
- ["rd", [["punctuation", "}}"]]]
122
- ]],
123
- ["tag", [
124
- ["ld", [["punctuation", "{{"]]],
125
- ["property", "s"], ["operator", "?:"], ["property", "t"],
126
- ["rd", [["punctuation", "}}"]]]
127
- ]],
128
- ["tag", [
129
- ["ld", [["punctuation", "{%"], ["keyword", "if"]]],
130
- ["property", "a"], ["operator", "and"], ["property", "b"],
131
- ["operator", "or"], ["operator", "not"], ["property", "c"],
132
- ["rd", [["punctuation", "%}"]]]
133
- ]],
134
- ["tag", [
135
- ["ld", [["punctuation", "{%"], ["keyword", "for"]]],
136
- ["property", "p"], ["operator", "in"], ["property", "foo"],
137
- ["rd", [["punctuation", "%}"]]]
138
- ]],
139
- ["tag", [
140
- ["ld", [["punctuation", "{%"], ["keyword", "if"]]],
141
- ["property", "d"], ["operator", "b-and"],
142
- ["property", "e"], ["operator", "and"],
143
- ["property", "f"], ["operator", "b-xor"],
144
- ["property", "g"], ["operator", "or"],
145
- ["property", "h"], ["operator", "b-or"],
146
- ["property", "i"],
147
- ["rd", [["punctuation", "%}"]]]
148
- ]],
149
- ["tag", [
150
- ["ld", [["punctuation", "{%"], ["keyword", "if"]]],
151
- ["property", "j"],
152
- ["operator", "starts with"],
153
- ["string", [["punctuation", "'"], "h", ["punctuation", "'"]]],
154
- ["rd", [["punctuation", "%}"]]]
149
+ ["delimiter", "}}"]
150
+ ]],
151
+ ["twig", [
152
+ ["delimiter", "{{"],
153
+ " p ",
154
+ ["operator", "?"],
155
+ " q ",
156
+ ["punctuation", ":"],
157
+ " r ",
158
+ ["delimiter", "}}"]
159
+ ]],
160
+ ["twig", [
161
+ ["delimiter", "{{"],
162
+ " s ",
163
+ ["operator", "?:"],
164
+ " t ",
165
+ ["delimiter", "}}"]
155
166
]],
156
- ["tag", [
157
- ["ld", [["punctuation", "{%"], ["keyword", "if"]]],
158
- ["property", "i"],
167
+
168
+ ["twig", [
169
+ ["delimiter", "{%"],
170
+ ["tag-name", "if"],
171
+ " a ",
172
+ ["operator", "and"],
173
+ " b ",
174
+ ["operator", "or"],
175
+ ["operator", "not"],
176
+ " c ",
177
+ ["delimiter", "%}"]
178
+ ]],
179
+ ["twig", [
180
+ ["delimiter", "{%"],
181
+ ["tag-name", "for"],
182
+ " p ",
183
+ ["operator", "in"],
184
+ " foo ",
185
+ ["delimiter", "%}"]
186
+ ]],
187
+ ["twig", [
188
+ ["delimiter", "{%"],
189
+ ["tag-name", "if"],
190
+ " d ",
191
+ ["operator", "b-and"],
192
+ " e ",
193
+ ["operator", "and"],
194
+ " f ",
195
+ ["operator", "b-xor"],
196
+ " g ",
197
+ ["operator", "or"],
198
+ " h ",
199
+ ["operator", "b-or"],
200
+ " i ",
201
+ ["delimiter", "%}"]
202
+ ]],
203
+ ["twig", [
204
+ ["delimiter", "{%"],
205
+ ["tag-name", "if"],
206
+ " j ",
207
+ ["operator", "starts with"],
208
+ ["string", [
209
+ ["punctuation", "'"],
210
+ "h",
211
+ ["punctuation", "'"]
212
+ ]],
213
+ ["delimiter", "%}"]
214
+ ]],
215
+ ["twig", [
216
+ ["delimiter", "{%"],
217
+ ["tag-name", "if"],
218
+ " i ",
159
219
["operator", "ends with"],
160
- ["string", [["punctuation", "'"], "j", ["punctuation", "'"]]],
161
- ["rd", [["punctuation", "%}"]]]
162
- ]],
163
- ["tag", [
164
- ["ld", [["punctuation", "{%"], ["keyword", "if"]]],
165
- ["property", "k"], ["operator", "is"],
166
- ["operator", "same as"], ["boolean", "false"],
167
- ["rd", [["punctuation", "%}"]]]
168
- ]],
169
- ["tag", [
170
- ["ld", [["punctuation", "{%"], ["keyword", "if"]]],
171
- ["property", "l"], ["operator", "matches"],
172
- ["string", [["punctuation", "'"], "/f[o]{2,}(?:bar)?", ["punctuation", "'"]]],
173
- ["rd", [["punctuation", "%}"]]]
220
+ ["string", [
221
+ ["punctuation", "'"],
222
+ "j",
223
+ ["punctuation", "'"]
224
+ ]],
225
+ ["delimiter", "%}"]
226
+ ]],
227
+ ["twig", [
228
+ ["delimiter", "{%"],
229
+ ["tag-name", "if"],
230
+ " k ",
231
+ ["operator", "is"],
232
+ ["operator", "same as"],
233
+ ["boolean", "false"],
234
+ ["delimiter", "%}"]
235
+ ]],
236
+ ["twig", [
237
+ ["delimiter", "{%"],
238
+ ["tag-name", "if"],
239
+ " l ",
240
+ ["operator", "matches"],
241
+ ["string", [
242
+ ["punctuation", "'"],
243
+ "/f[o]{2,}(?:bar)?",
244
+ ["punctuation", "'"]
245
+ ]],
246
+ ["delimiter", "%}"]
174
247
]]
175
248
]
176
249
177
250
----------------------------------------------------
178
251
179
- Checks for operators.
252
+ Checks for operators.
0 commit comments