diff options
author | Li Jin <dragon-fly@qq.com> | 2023-10-23 11:07:40 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-10-23 11:07:40 +0800 |
commit | 147eb556316c673859fd7da7b479c3f3f8f4bdaa (patch) | |
tree | 1dfc25d530daee35db75b48cc8c67ec5cf7818f3 /spec/inputs | |
parent | 08fef1c7698cff09689e9965d993931ca6081257 (diff) | |
download | yuescript-147eb556316c673859fd7da7b479c3f3f8f4bdaa.tar.gz yuescript-147eb556316c673859fd7da7b479c3f3f8f4bdaa.tar.bz2 yuescript-147eb556316c673859fd7da7b479c3f3f8f4bdaa.zip |
remove unnecessary multiline declaration for list table assignment.
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/tables.yue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue index 53a53ae..0de8a8c 100644 --- a/spec/inputs/tables.yue +++ b/spec/inputs/tables.yue | |||
@@ -40,7 +40,7 @@ ya = { 1,2,3, key: 100, 343, "hello", umm: 232 } | |||
40 | x = { 1,2, | 40 | x = { 1,2, |
41 | 4343, 343 ,343 } | 41 | 4343, 343 ,343 } |
42 | 42 | ||
43 | x = [ 1,2, | 43 | x1 = [ 1,2, |
44 | 4343, 343 ,343 ] | 44 | 4343, 343 ,343 ] |
45 | 45 | ||
46 | g, p = { | 46 | g, p = { |
@@ -258,24 +258,24 @@ tbMix = { | |||
258 | ... -- perform the Lua table behavior here | 258 | ... -- perform the Lua table behavior here |
259 | } | 259 | } |
260 | 260 | ||
261 | tbMixA = { | 261 | do tbMixA = { |
262 | ...[i for i = 1, 10] | 262 | ...[i for i = 1, 10] |
263 | 11 | 263 | 11 |
264 | } | 264 | } |
265 | 265 | ||
266 | tbMixA = [ | 266 | do tbMixA = [ |
267 | ...[i for i = 1, 10] | 267 | ...[i for i = 1, 10] |
268 | 11 | 268 | 11 |
269 | ] | 269 | ] |
270 | 270 | ||
271 | tbMixB = { | 271 | do tbMixB = { |
272 | ... ... -- only the first item in vararg been accessed here | 272 | ... ... -- only the first item in vararg been accessed here |
273 | ... {...} | 273 | ... {...} |
274 | ... {......} | 274 | ... {......} |
275 | 1, 2, 3 | 275 | 1, 2, 3 |
276 | } | 276 | } |
277 | 277 | ||
278 | tbMixB = [ | 278 | do tbMixB = [ |
279 | ... ... -- only the first item in vararg been accessed here | 279 | ... ... -- only the first item in vararg been accessed here |
280 | ... {...} | 280 | ... {...} |
281 | ... {......} | 281 | ... {......} |