octol / vim-cpp-enhanced-highlight

Additional Vim syntax highlighting for C++ (including C++11/14/17)
MIT License
1.07k stars 150 forks source link

Underscore Highlighting Issue. #40

Closed pepi55 closed 7 years ago

pepi55 commented 7 years ago

Hello,

There is an issue with the highlighting when using underscores in variable/function names: screenshot from 2017-01-14 04-08-58 The weird thing is that it works fine in the color.cpp file used to test the highlighting, but in any other .cpp file it does not work.

This issue happens with g:cpp_experimental_simple_template_highlight and with g:cpp_experimental_template_highlight and even without setting either.

pepi55 commented 7 years ago

I had set keyword-=_ which makes it a separate word and highlights it. After disabling it though, it didn't go back to normal because I had a saved view which was loading when I open certain files.