aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/syntax.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/syntax.yue')
-rw-r--r--spec/inputs/syntax.yue17
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
188with tb 188with tb
189 .a.c += 1 189 .a.c += 1
190 190
191tb #= 10 191tb[] = 10
192a.b.c #= 1 192a.b.c[] = 1
193x #= if v 193x[] = if v
194 1 194 1
195else 195else
196 2 196 2
197with tb 197with tb
198 .b.c #= with vec 198 .b.c[] = with vec
199 .x = 1 199 .x = 1
200 .y = 2 200 .y = 2
201a
202 .b.c
203 .d\f!
204 .g[] = 1
205
206tb = {}
207tb[] = 1
208tb[] = 2
209tb[] = 3
201 210
202x = 0 211x = 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