kaarmu / typst.vim

Vim plugin for Typst
MIT License
281 stars 24 forks source link

Only 2 colors in a for loop if iterated array written on multiple lines #55

Closed Andrew15-5 closed 11 months ago

Andrew15-5 commented 11 months ago
#for name in (
  "",
  "",
  "",
  "",
  "",
  "",
  "",
) {
  let var = 3
}

image

How it looks when the iterated array is written on a single line:

image

kaarmu commented 11 months ago

Thank you for reporting this. This could be related to #46, though I'm quite busy the next 2 weeks or so which leaves me little time to fix this until then.

kaarmu commented 11 months ago

This was in fact introduced by #47. I allowed parens to continue the control flow match however, this might cause other problems later. Haven't thought through if it will be a problem, should be fine though. We will see...