mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 17:59:30 +00:00
Fixed using return at the end of a loop that use continue
This commit is contained in:
parent
91948109ca
commit
7df95abc6d
3 changed files with 26 additions and 13 deletions
|
|
@ -123,10 +123,10 @@ return function(code, ast, options)
|
|||
return "do" .. indent() .. "local a = table.pack(" .. toAppend .. ")" .. newline() .. "table.move(a, 1, a.n, #" .. t .. "+1, " .. t .. ")" .. unindent() .. "end"
|
||||
end
|
||||
local CONTINUE_START = () -- at the start of loops using continue
|
||||
return ""
|
||||
return "do" .. indent()
|
||||
end
|
||||
local CONTINUE_STOP = () -- at the start of loops using continue
|
||||
return newline() .. "::" .. var("continue") .. "::"
|
||||
return unindent() .. "end" .. newline() .. "::" .. var("continue") .. "::"
|
||||
end
|
||||
|
||||
--- Tag constructors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue