diff options
author | Li Jin <dragon-fly@qq.com> | 2022-04-01 17:47:27 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-04-01 17:47:27 +0800 |
commit | ca1ed557769352c0ac0ca7804dd25e18c1fdf2e1 (patch) | |
tree | bf86d3990b90054f8d82aaf87cb9efae444a08ce /spec/inputs/syntax.yue | |
parent | 7be6c300256bfe411942a7ccc66f6bc3afa7390d (diff) | |
download | yuescript-ca1ed557769352c0ac0ca7804dd25e18c1fdf2e1.tar.gz yuescript-ca1ed557769352c0ac0ca7804dd25e18c1fdf2e1.tar.bz2 yuescript-ca1ed557769352c0ac0ca7804dd25e18c1fdf2e1.zip |
fix some ambiguous syntax caused by arg table block.
Diffstat (limited to 'spec/inputs/syntax.yue')
-rw-r--r-- | spec/inputs/syntax.yue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue index e7f0a8d..84c6578 100644 --- a/spec/inputs/syntax.yue +++ b/spec/inputs/syntax.yue | |||
@@ -267,11 +267,12 @@ z = x and b | |||
267 | z = x andb | 267 | z = x andb |
268 | 268 | ||
269 | 269 | ||
270 | -- undelimited tables | 270 | while 10 > something( |
271 | something: "world" | ||
272 | ) | ||
273 | print "yeah" | ||
271 | 274 | ||
272 | while 10 > something | 275 | -- undelimited tables |
273 | something: "world" | ||
274 | print "yeah" | ||
275 | 276 | ||
276 | x = | 277 | x = |
277 | okay: sure | 278 | okay: sure |