aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-05-16 01:03:05 +0800
committerLi Jin <dragon-fly@qq.com>2022-05-16 01:03:05 +0800
commitc4935826eea8df7a161b2b4ba9262dce66d9d366 (patch)
tree12f7fe952a777b98244253c5ecd3e0d0a73e8de8 /spec/inputs
parente9926f70a53639c09a5605f71a34ec370395f5a9 (diff)
downloadyuescript-c4935826eea8df7a161b2b4ba9262dce66d9d366.tar.gz
yuescript-c4935826eea8df7a161b2b4ba9262dce66d9d366.tar.bz2
yuescript-c4935826eea8df7a161b2b4ba9262dce66d9d366.zip
fix issue #102. fix `continue` statement locating issue.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/loops.yue8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue
index 3191000..d03e661 100644
--- a/spec/inputs/loops.yue
+++ b/spec/inputs/loops.yue
@@ -109,6 +109,14 @@ repeat
109 print a 109 print a
110until a == 10 110until a == 10
111 111
112x = 0
113repeat
114 x += 1
115 y = x
116 continue if x < 5
117 print y
118until y == 10
119
112a = 3 120a = 3
113until a == 0 121until a == 0
114 a -= 1 122 a -= 1