diff options
| author | Li Jin <dragon-fly@qq.com> | 2023-12-11 09:40:29 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2023-12-11 09:40:29 +0800 |
| commit | a6dc9009035113858acac32cd083983c42bc9de6 (patch) | |
| tree | eeaeac744046a3e07c0ff0d6bb6f6ffc79374f36 /spec/outputs | |
| parent | 514b9f97febe8920a78d6078b092fe84b859a963 (diff) | |
| download | yuescript-a6dc9009035113858acac32cd083983c42bc9de6.tar.gz yuescript-a6dc9009035113858acac32cd083983c42bc9de6.tar.bz2 yuescript-a6dc9009035113858acac32cd083983c42bc9de6.zip | |
fix empty block ends with eof issue.
Diffstat (limited to 'spec/outputs')
| -rw-r--r-- | spec/outputs/syntax.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/outputs/syntax.lua b/spec/outputs/syntax.lua index 2afadbb..20b8469 100644 --- a/spec/outputs/syntax.lua +++ b/spec/outputs/syntax.lua | |||
| @@ -412,4 +412,20 @@ do | |||
| 412 | f(a, b) | 412 | f(a, b) |
| 413 | f() | 413 | f() |
| 414 | end | 414 | end |
| 415 | do | ||
| 416 | if cond then | ||
| 417 | else | ||
| 418 | end | ||
| 419 | do | ||
| 420 | local _exp_0 = cond | ||
| 421 | if 1 == _exp_0 then | ||
| 422 | elseif 2 == _exp_0 then | ||
| 423 | else | ||
| 424 | end | ||
| 425 | end | ||
| 426 | local f1 | ||
| 427 | f1 = function() end | ||
| 428 | local f2 | ||
| 429 | f2 = function() end | ||
| 430 | end | ||
| 415 | return nil | 431 | return nil |
