aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-10-23 11:07:40 +0800
committerLi Jin <dragon-fly@qq.com>2023-10-23 11:07:40 +0800
commit147eb556316c673859fd7da7b479c3f3f8f4bdaa (patch)
tree1dfc25d530daee35db75b48cc8c67ec5cf7818f3 /spec/inputs
parent08fef1c7698cff09689e9965d993931ca6081257 (diff)
downloadyuescript-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.yue10
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 }
40x = { 1,2, 40x = { 1,2,
41 4343, 343 ,343 } 41 4343, 343 ,343 }
42 42
43x = [ 1,2, 43x1 = [ 1,2,
44 4343, 343 ,343 ] 44 4343, 343 ,343 ]
45 45
46g, p = { 46g, p = {
@@ -258,24 +258,24 @@ tbMix = {
258 ... -- perform the Lua table behavior here 258 ... -- perform the Lua table behavior here
259} 259}
260 260
261tbMixA = { 261do tbMixA = {
262 ...[i for i = 1, 10] 262 ...[i for i = 1, 10]
263 11 263 11
264} 264}
265 265
266tbMixA = [ 266do tbMixA = [
267 ...[i for i = 1, 10] 267 ...[i for i = 1, 10]
268 11 268 11
269] 269]
270 270
271tbMixB = { 271do 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
278tbMixB = [ 278do 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 ... {......}