vim-cpp-modern icon indicating copy to clipboard operation
vim-cpp-modern copied to clipboard

Incorrect function highlighting

Open moshiur-raj opened this issue 5 years ago • 2 comments
trafficstars

var in #define var (int)1.0 is highlighted like a function.

moshiur-raj avatar Sep 04 '20 07:09 moshiur-raj

Thanks for reporting this. The regex for highlighting function names is very simple. Just highlight all words appearing before an opening parenthesis. I don't know if I want to make it too complex because that's a rather special case that doesn't occur very often. I need to think about this a little bit longer.

bfrg avatar Sep 04 '20 19:09 bfrg

No problem, I've been using your plugin for months and I just discovered this yesterday. So not a big problem for me too. Thanks for the plugin btw.

moshiur-raj avatar Sep 05 '20 04:09 moshiur-raj