octol / vim-cpp-enhanced-highlight

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

Function name pattern consumes opening parenthesis #15

Open trisk opened 9 years ago

trisk commented 9 years ago

This breaks parentheses highlighting. I suggest modifying the match with pattern offsets: /me=e-1,he=e-1 See also: https://hamberg.no/erlend/posts/2011-08-25-vim-tip-highlighting-function-names-in-c-code.html

octol commented 9 years ago

Can you please post an example of where this is happening? Thanks.

robchrob commented 8 years ago

I have same issue. Example picture: img-2016-06-17-181536 The problem is different color of starting and ending parenthesis.

octol commented 7 years ago

Sorry I'm not able to reproduce this on my machine.

robchrob commented 7 years ago

Thank you for answer, @octol. Your response made me double check my config, and turns out (at least for me, not the OP) it's not a bug. There is another plugin 'justinmk/vim-syntax-extra' that collide with this plugin, creating this weird bug.

Maybe that can help another person seeking help with this glitch.

octol commented 7 years ago

Thanks for the update. Yes let's keep this issue open in case other people run into this.