aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs
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/outputs
parent3dd607c8887d2fe0186668aabca31bb84a41e2da (diff)
downloadyuescript-417ec1a37922c6178900adfec70628cad46731ff.tar.gz
yuescript-417ec1a37922c6178900adfec70628cad46731ff.tar.bz2
yuescript-417ec1a37922c6178900adfec70628cad46731ff.zip
fix issue #112 and issue #113.
Diffstat (limited to 'spec/outputs')
-rw-r--r--spec/outputs/literals.lua4
-rw-r--r--spec/outputs/syntax.lua6
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/outputs/literals.lua b/spec/outputs/literals.lua
index 1ffadc8..4495725 100644
--- a/spec/outputs/literals.lua
+++ b/spec/outputs/literals.lua
@@ -17,6 +17,10 @@ local _ = {
17 9332, 17 9332,
18 0x2aLL, 18 0x2aLL,
19 0x2aULL, 19 0x2aULL,
20 1000000.0000001,
21 1234e5678,
22 1234E-5678,
23 0xDEADBEEF,
20 [[ hello world ]], 24 [[ hello world ]],
21 [=[ hello world ]=], 25 [=[ hello world ]=],
22 [====[ hello world ]====], 26 [====[ hello world ]====],
diff --git a/spec/outputs/syntax.lua b/spec/outputs/syntax.lua
index 22b6b80..8d41f7d 100644
--- a/spec/outputs/syntax.lua
+++ b/spec/outputs/syntax.lua
@@ -142,6 +142,12 @@ end
142if cool then 142if cool then
143 print("what") 143 print("what")
144end 144end
145while not reader:eof() do
146 reader:parse_line()
147end
148while not reader:eof() do
149 reader:parse_line()
150end
145(function(...) 151(function(...)
146 local arg = { 152 local arg = {
147 ... 153 ...