japhib/pico8-ls

[Bug] Formatter breaks `repeat until` pattern

scambier opened this issue · 2 comments

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

Thanks for the example! Should be a relatively straightforward fix

japhib commented

Fixed with 0.5.1