1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 17:59:30 +00:00

Fixed missing whitespace in some continue code generation

Also made Candran returns slightly more usefull error messages
This commit is contained in:
Étienne Fildadut 2018-08-02 17:11:46 +02:00
parent 4517ee110f
commit debf0bc464
3 changed files with 110 additions and 89 deletions

View file

@ -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,