mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Fixed missing whitespace in some continue code generation
Also made Candran returns slightly more usefull error messages
This commit is contained in:
parent
4517ee110f
commit
debf0bc464
3 changed files with 110 additions and 89 deletions
|
|
@ -232,7 +232,7 @@ return function(code, ast, options)
|
|||
end
|
||||
r ..= lua(t[5])
|
||||
if hasContinue then
|
||||
r ..= "until true" .. unindent()
|
||||
r ..= unindent() .. "until true"
|
||||
end
|
||||
return r .. unindent() .. "end"
|
||||
else
|
||||
|
|
@ -257,7 +257,7 @@ return function(code, ast, options)
|
|||
end
|
||||
r ..= lua(t[3])
|
||||
if hasContinue then
|
||||
r ..= "until true" .. unindent()
|
||||
r ..= unindent() .. "until true"
|
||||
end
|
||||
return r .. unindent() .. "end"
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue