kaarmu / typst.vim

Vim plugin for Typst
MIT License
294 stars 27 forks source link

Enum usage case where syntax highlighting is broken #46

Closed Andrew15-5 closed 1 year ago

Andrew15-5 commented 1 year ago

Broken:

#{ // Function body
  [ // Content block
  + text
  + text
  + #box()[text
    another text]
  + text
  + text
  ]
}

image

Not broken:

#{ // Function body
  [ // Content block
  + text
  + text
  + #box()[text another text]
  + text
  + text
  ]
}

image

kaarmu commented 1 year ago

Could be related to #43 but is not solved by #47.

Thanks for bringing this up!