[Bug] Formatter breaks `repeat until` pattern
scambier opened this issue · comments
Simon Cambier commented
To reproduce:
repeat
local foo = "bar"
until true
Format the code, it's now transformed into
repeat
local foo = "bar"until true
And it's more buggy with a comment:
repeat
local foo = "bar"
-- comment
until true
formats into
repeat
local foo = "bar"until
-- comment
true
Jan Bergeson commented
Thanks for the example! Should be a relatively straightforward fix
Jan Bergeson commented
Fixed with 0.5.1