summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-11-03 14:21:17 +0800
committerLi Jin <dragon-fly@qq.com>2020-11-03 14:21:17 +0800
commite07a2eb9c389f27103872a3b5a5bfe500d0c2d62 (patch)
treee73abc495faa92bab2d9eee9b89afc89f57d1390 /spec
parentc421550a006c6c01ac176a879593a20d51d77c5d (diff)
downloadyuescript-e07a2eb9c389f27103872a3b5a5bfe500d0c2d62.tar.gz
yuescript-e07a2eb9c389f27103872a3b5a5bfe500d0c2d62.tar.bz2
yuescript-e07a2eb9c389f27103872a3b5a5bfe500d0c2d62.zip
fix issue #29
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/loops.mp6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/inputs/loops.mp b/spec/inputs/loops.mp
index 24d960f..8946a2f 100644
--- a/spec/inputs/loops.mp
+++ b/spec/inputs/loops.mp
@@ -91,6 +91,12 @@ while true
91 break if true 91 break if true
92 print "no" 92 print "no"
93 93
94for i = 1, 10
95 while true
96 if not true
97 continue
98 break
99
94a = 1 100a = 1
95repeat 101repeat
96 a += 1 102 a += 1