japhib / pico8-ls

PICO-8 Language Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Formatter breaks `repeat until` pattern

scambier opened this issue · 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

Fixed with 0.5.1