diff options
author | Li Jin <dragon-fly@qq.com> | 2020-09-17 08:47:29 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-09-17 08:47:29 +0800 |
commit | 5440c952f2c73da6fa6a752d8628eaf25015c070 (patch) | |
tree | c57173a695bba128c4bccef78dea581ba4a87bc3 /spec/inputs | |
parent | e958b59c9635f0a01e29e3f30c34adecd327cc1f (diff) | |
download | yuescript-5440c952f2c73da6fa6a752d8628eaf25015c070.tar.gz yuescript-5440c952f2c73da6fa6a752d8628eaf25015c070.tar.bz2 yuescript-5440c952f2c73da6fa6a752d8628eaf25015c070.zip |
make simple table and table block appear in the end of function arguments merged.
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/syntax.moon | 4 | ||||
-rw-r--r-- | spec/inputs/tables.moon | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index 99daac5..32d480e 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
@@ -240,7 +240,7 @@ hello "comma", | |||
240 | something: hello_world | 240 | something: hello_world |
241 | frick: you | 241 | frick: you |
242 | 242 | ||
243 | -- creates two tables | 243 | -- creates one table |
244 | another hello, one, | 244 | another hello, one, |
245 | two, three, four, yeah: man | 245 | two, three, four, yeah: man |
246 | okay: yeah | 246 | okay: yeah |
@@ -252,7 +252,7 @@ another hello, one, two, three, four, | |||
252 | 252 | ||
253 | another hello, one, two, three, four, yeah: man | 253 | another hello, one, two, three, four, yeah: man |
254 | okay: yeah | 254 | okay: yeah |
255 | 255 | ||
256 | -- | 256 | -- |
257 | a += 3 - 5 | 257 | a += 3 - 5 |
258 | a *= 3 + 5 | 258 | a *= 3 + 5 |
diff --git a/spec/inputs/tables.moon b/spec/inputs/tables.moon index 079be35..6375660 100644 --- a/spec/inputs/tables.moon +++ b/spec/inputs/tables.moon | |||
@@ -125,7 +125,7 @@ kam = { | |||
125 | one_thing => | 125 | one_thing => |
126 | } | 126 | } |
127 | 127 | ||
128 | -- TODO: both of these have undesirable output | 128 | -- both of these have desirable output |
129 | keepit going: true, | 129 | keepit going: true, |
130 | okay: "yeah", | 130 | okay: "yeah", |
131 | workd: "okay" | 131 | workd: "okay" |