aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-06-29 10:58:56 +0800
committerLi Jin <dragon-fly@qq.com>2023-06-29 10:58:56 +0800
commitc98c6053635ddfca7aab15b268b0f2c1fcc0c6ef (patch)
treedcacf24e010346eb03e834d8081eb81e26f5c7ff /spec/inputs
parent51faef5288a64a84b8f8e5cea8631c7518b94411 (diff)
downloadyuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.tar.gz
yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.tar.bz2
yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.zip
fix issue #139.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/goto.yue8
-rw-r--r--spec/inputs/import.yue2
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/inputs/goto.yue b/spec/inputs/goto.yue
index 61584ca..3f3ae89 100644
--- a/spec/inputs/goto.yue
+++ b/spec/inputs/goto.yue
@@ -16,10 +16,10 @@ do
16do 16do
17 for z = 1, 10 17 for z = 1, 10
18 for y = 1, 10 do for x = 1, 10 18 for y = 1, 10 do for x = 1, 10
19 if x^2 + y^2 == z^2 19 if x^2 + y^2 == z^2
20 print 'found a Pythagorean triple:', x, y, z 20 print 'found a Pythagorean triple:', x, y, z
21 print 'now trying next z...' 21 print 'now trying next z...'
22 goto zcontinue 22 goto zcontinue
23 ::zcontinue:: 23 ::zcontinue::
24 24
25do 25do
diff --git a/spec/inputs/import.yue b/spec/inputs/import.yue
index fe5caf5..73e05d2 100644
--- a/spec/inputs/import.yue
+++ b/spec/inputs/import.yue
@@ -7,7 +7,7 @@ import x, \y, z from items
7 7
8import master, \ghost from find "mytable" 8import master, \ghost from find "mytable"
9 9
10_table_0 = 232 10_obj_0 = 232
11 11
12import something from a table 12import something from a table
13 13