diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-12-04 09:24:55 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-12-04 09:24:55 +0800 |
| commit | b3aba7938aee0d4885d9243dc3f2f3d89d9812b6 (patch) | |
| tree | 1aae4362ba535e82d45d335c5f4ff88acd8e5f51 /spec/outputs | |
| parent | ec26010fd100bb014584653e0e1370dba816fd1f (diff) | |
| download | yuescript-b3aba7938aee0d4885d9243dc3f2f3d89d9812b6.tar.gz yuescript-b3aba7938aee0d4885d9243dc3f2f3d89d9812b6.tar.bz2 yuescript-b3aba7938aee0d4885d9243dc3f2f3d89d9812b6.zip | |
Fixed empty line as block issue.v0.30.2
Diffstat (limited to 'spec/outputs')
| -rw-r--r-- | spec/outputs/syntax.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/outputs/syntax.lua b/spec/outputs/syntax.lua index 040a325..2df3473 100644 --- a/spec/outputs/syntax.lua +++ b/spec/outputs/syntax.lua | |||
| @@ -430,4 +430,15 @@ do | |||
| 430 | local f2 | 430 | local f2 |
| 431 | f2 = function() end | 431 | f2 = function() end |
| 432 | end | 432 | end |
| 433 | do | ||
| 434 | if res ~= "" then | ||
| 435 | return res | ||
| 436 | end | ||
| 437 | end | ||
| 438 | do | ||
| 439 | return res((function() | ||
| 440 | if res ~= "" then | ||
| 441 | end | ||
| 442 | end)()) | ||
| 443 | end | ||
| 433 | return nil | 444 | return nil |
