aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/syntax.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-24 22:13:08 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-24 22:13:08 +0800
commit303834e1b1e6cd9cae64b66c2ae44dcd7185238f (patch)
tree519f6a1debcc5791d35e06dc5cbb1ce22f9cfd31 /spec/inputs/syntax.yue
parenteb367126bf3a4f5b0e51ccef93b7c7136bea170e (diff)
downloadyuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.gz
yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.bz2
yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.zip
add option --target=5.1 to generate Lua 5.1 compatible codes. add const destructure. make import item const by default.
Diffstat (limited to 'spec/inputs/syntax.yue')
-rw-r--r--spec/inputs/syntax.yue10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue
index f212bec..d18bd0e 100644
--- a/spec/inputs/syntax.yue
+++ b/spec/inputs/syntax.yue
@@ -71,10 +71,10 @@ _ = something[======[hey]======] * 2
71_ = something[ [======[hey]======] ] * 2 71_ = something[ [======[hey]======] ] * 2
72 72
73 73
74_ = something'else', 2 74_, _ = something'else', 2
75_ = something"else", 2 75_, _ = something"else", 2
76_ = something[[else]], 2 76_, _ = something[[else]], 2
77_ = something[ [[else]] ], 2 77_, _ = something[ [[else]] ], 2
78 78
79something 'else', 2 79something 'else', 2
80something "else", 2 80something "else", 2
@@ -157,7 +157,7 @@ y = #"hello"
157 157
158x = #{#{},#{1},#{1,2}} 158x = #{#{},#{1},#{1,2}}
159 159
160_ = hello, world 160_, _ = hello, world
161 161
162something\hello(what) a,b 162something\hello(what) a,b
163something\hello what 163something\hello what