diff options
author | Li Jin <dragon-fly@qq.com> | 2022-07-24 22:13:08 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-07-24 22:13:08 +0800 |
commit | 303834e1b1e6cd9cae64b66c2ae44dcd7185238f (patch) | |
tree | 519f6a1debcc5791d35e06dc5cbb1ce22f9cfd31 /spec/inputs/tables.yue | |
parent | eb367126bf3a4f5b0e51ccef93b7c7136bea170e (diff) | |
download | yuescript-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/tables.yue')
-rw-r--r-- | spec/inputs/tables.yue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue index e1b9e1d..0b5af46 100644 --- a/spec/inputs/tables.yue +++ b/spec/inputs/tables.yue | |||
@@ -152,12 +152,12 @@ k = { "hello": 'world', "hat": "zat" } | |||
152 | please "hello": "world" | 152 | please "hello": "world" |
153 | k = "hello": "world", "one": "zone" | 153 | k = "hello": "world", "one": "zone" |
154 | 154 | ||
155 | f = "one", "two": three, "four" | 155 | f1, f2, f3 = "one", "two": three, "four" |
156 | f = "two": three, "four" | 156 | f1, f2 = "two": three, "four" |
157 | f = { "one", "two": three, "four" } | 157 | f1 = { "one", "two": three, "four" } |
158 | 158 | ||
159 | 159 | ||
160 | j = "one", "two": three, "four": five, 6, 7 | 160 | j1, j2, j3, j4 = "one", "two": three, "four": five, 6, 7 |
161 | 161 | ||
162 | heroine = | 162 | heroine = |
163 | name: "Christina" | 163 | name: "Christina" |