Autoformatting breaks highlights
mrdgo opened this issue · 2 comments
mrdgo commented
I use jdtls
and autocmds to format on save. When I save a file like this:
after saving and formatting, the highlights look like this:
As you can see, the third @
is highlighted just as the closing }
was. In this example, it is not a huge problem, but in larger files, it tends to mess up a lot more.
Do I need to manually hook something to the formatting? This bugs me a bit tbh
p00f commented
Status: No idea how to fix this, help wanted