octol / vim-cpp-enhanced-highlight

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

Experimental template highlighting #25

Closed dncnmcdougall closed 8 years ago

dncnmcdougall commented 8 years ago

I have improved the regex for the experimental template highlighting.

It now uses simpler regex, and does recursion on templates. This means it is faster than my previous commit and more complete. I have added additional tests. They are rather difficult tests.

Note: this is not yet correct. It fails some of the test cases.

octol commented 8 years ago

Thanks!

octol commented 8 years ago

You mention in you description that the regex is not yet correct. I've noticed that there is a regression for g:cpp_experimental_template_highlight = 1 where inside the angled brackets things doesn't get highlighted at all. See the last function in test/color2.cpp.

Have you noticed this and do you have any ideas on how to solve this?

octol commented 8 years ago

Also see #30