aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/literals.yue5
-rw-r--r--spec/inputs/syntax.yue4
-rw-r--r--spec/outputs/literals.lua4
-rw-r--r--spec/outputs/syntax.lua6
4 files changed, 19 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 = (...) ->
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 ...