aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-10-31 11:32:33 +0800
committerLi Jin <dragon-fly@qq.com>2022-11-09 11:29:32 +0800
commit417ec1a37922c6178900adfec70628cad46731ff (patch)
treea5a2d74927ad2c41b5a16264a78409e1c0334b72 /spec/inputs
parent3dd607c8887d2fe0186668aabca31bb84a41e2da (diff)
downloadyuescript-417ec1a37922c6178900adfec70628cad46731ff.tar.gz
yuescript-417ec1a37922c6178900adfec70628cad46731ff.tar.bz2
yuescript-417ec1a37922c6178900adfec70628cad46731ff.zip
fix issue #112 and issue #113.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/literals.yue5
-rw-r--r--spec/inputs/syntax.yue4
2 files changed, 9 insertions, 0 deletions
diff --git a/spec/inputs/literals.yue b/spec/inputs/literals.yue
index d4b0326..8b81fde 100644
--- a/spec/inputs/literals.yue
+++ b/spec/inputs/literals.yue
@@ -23,6 +23,11 @@ _ = {
23 0x2aLL 23 0x2aLL
24 0x2aULL 24 0x2aULL
25 25
26 1_000_000.000_000_1
27 1_234e567_8
28 1_234E-567_8
29 0xDE_AD_BE_EF
30
26 [[ hello world ]] 31 [[ hello world ]]
27 32
28 [=[ hello world ]=] 33 [=[ hello world ]=]
diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue
index e274f1a..1e01a26 100644
--- a/spec/inputs/syntax.yue
+++ b/spec/inputs/syntax.yue
@@ -142,6 +142,10 @@ if hello then _ = 343
142 142
143print "what" if cool 143print "what" if cool
144 144
145reader\parse_line! until reader\eof!
146
147reader\parse_line! while not reader\eof!
148
145((...)-> arg = {...})! 149((...)-> arg = {...})!
146 150
147x = (...) -> 151x = (...) ->