diff options
Diffstat (limited to 'spec/inputs/syntax.yue')
-rw-r--r-- | spec/inputs/syntax.yue | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue index cb947e1..67d3a27 100644 --- a/spec/inputs/syntax.yue +++ b/spec/inputs/syntax.yue | |||
@@ -184,10 +184,21 @@ a["hello#{tostring ff}"] += 10 | |||
184 | a[four].x += 10 | 184 | a[four].x += 10 |
185 | 185 | ||
186 | a.b += 1 | 186 | a.b += 1 |
187 | a.b[1].c[2+3] += 1 | 187 | 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 | ||
192 | a.b.c #= 1 | ||
193 | x #= if v | ||
194 | 1 | ||
195 | else | ||
196 | 2 | ||
197 | with tb | ||
198 | .b.c #= with vec | ||
199 | .x = 1 | ||
200 | .y = 2 | ||
201 | |||
191 | x = 0 | 202 | x = 0 |
192 | _ = (if ntype(v) == "fndef" then x += 1) for v in *values | 203 | _ = (if ntype(v) == "fndef" then x += 1) for v in *values |
193 | 204 | ||