vim-cpp-enhanced-highlight icon indicating copy to clipboard operation
vim-cpp-enhanced-highlight copied to clipboard

Function name pattern consumes opening parenthesis

Open trisk opened this issue 10 years ago • 5 comments

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

trisk avatar Aug 21 '15 05:08 trisk

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

octol avatar Sep 02 '15 19:09 octol

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

robchrob avatar Jun 17 '16 16:06 robchrob

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

octol avatar Oct 19 '16 21:10 octol

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.

robchrob avatar Oct 19 '16 21:10 robchrob

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

octol avatar Oct 19 '16 21:10 octol