diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-11-23 09:34:46 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-11-23 09:34:57 +0800 |
| commit | 65050db97932197ce990f36fc0efed8d0c1298a2 (patch) | |
| tree | c3b8d0d941438cb6bd308b0d4ce08ecf389da821 /spec/outputs/macro.lua | |
| parent | 825b5d96f8a0d146615f0c6a76feab46da9baa60 (diff) | |
| download | yuescript-65050db97932197ce990f36fc0efed8d0c1298a2.tar.gz yuescript-65050db97932197ce990f36fc0efed8d0c1298a2.tar.bz2 yuescript-65050db97932197ce990f36fc0efed8d0c1298a2.zip | |
fix an indent issue. add more macro specs. fixing issue #69.
Diffstat (limited to 'spec/outputs/macro.lua')
| -rw-r--r-- | spec/outputs/macro.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/outputs/macro.lua b/spec/outputs/macro.lua index 9f04216..b3085bb 100644 --- a/spec/outputs/macro.lua +++ b/spec/outputs/macro.lua | |||
| @@ -260,5 +260,18 @@ print((setmetatable({ | |||
| 260 | })) | 260 | })) |
| 261 | print("current line: " .. tostring(261)); | 261 | print("current line: " .. tostring(261)); |
| 262 | -- TODO | 262 | -- TODO |
| 263 | do | ||
| 264 | print(1) | ||
| 265 | end | ||
| 266 | _ = function() | ||
| 267 | print(1) | ||
| 268 | local _accum_0 = { } | ||
| 269 | local _len_0 = 1 | ||
| 270 | while false do | ||
| 271 | break | ||
| 272 | _len_0 = _len_0 + 1 | ||
| 273 | end | ||
| 274 | return _accum_0 | ||
| 275 | end | ||
| 263 | print('abc') | 276 | print('abc') |
| 264 | return 123 | 277 | return 123 |
