I frequently use block comments to disable sections of terraform code using /*
to start disabling and */
to complete. As expected, the code will turn "grey" and lose syntax highlights.
However, when I move the cursor so that the opening /*
scrolls off the top of the screen, the previously "grey" code suddenly starts highlighting again. If I stop moving and CTRL-L to redraw the problem goes away and the code goes "grey" again - although in some unidentified cases redraw never fixes this - it's a little frustrating as I never am sure what code is live or not.
I'm on Windows, using VIM 9.0, the vim-terraform pack, gruvbox colorscheme
I believe I did not have this issue to such a great extent with Vim 8.0. I recall attempting Vim 8.2 and reverting to 8.0 after a few days and I'm only seeing this issue again since updating to 9.0 and it's pretty annoying.
I'm not sure if this is a problem with syntax file, colorscheme file or gvim itself - so any pointers on how to narrow it down?
Cheers Pete