diff options
Diffstat (limited to 'spec/inputs/syntax.yue')
-rw-r--r-- | spec/inputs/syntax.yue | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue index 67d3a27..e7f0a8d 100644 --- a/spec/inputs/syntax.yue +++ b/spec/inputs/syntax.yue | |||
@@ -188,16 +188,25 @@ a.b[1].c[2 + 3] += 1 | |||
188 | with tb | 188 | with tb |
189 | .a.c += 1 | 189 | .a.c += 1 |
190 | 190 | ||
191 | tb #= 10 | 191 | tb[] = 10 |
192 | a.b.c #= 1 | 192 | a.b.c[] = 1 |
193 | x #= if v | 193 | x[] = if v |
194 | 1 | 194 | 1 |
195 | else | 195 | else |
196 | 2 | 196 | 2 |
197 | with tb | 197 | with tb |
198 | .b.c #= with vec | 198 | .b.c[] = with vec |
199 | .x = 1 | 199 | .x = 1 |
200 | .y = 2 | 200 | .y = 2 |
201 | a | ||
202 | .b.c | ||
203 | .d\f! | ||
204 | .g[] = 1 | ||
205 | |||
206 | tb = {} | ||
207 | tb[] = 1 | ||
208 | tb[] = 2 | ||
209 | tb[] = 3 | ||
201 | 210 | ||
202 | x = 0 | 211 | x = 0 |
203 | _ = (if ntype(v) == "fndef" then x += 1) for v in *values | 212 | _ = (if ntype(v) == "fndef" then x += 1) for v in *values |