PIV icon indicating copy to clipboard operation
PIV copied to clipboard

Synax highlighting is wrong under 7.4

Open bpearson opened this issue 11 years ago • 3 comments
trafficstars

I just updated to vim 7.4, and found the syntax highlighting is screwed up. The most obvious is the highlighting throughout a comment, the * are purple, the first line is yellow, the second line is green (expected) and @return and @param are highlighted a different colour to the rest of the line. Previously it was all just the green colour.

screenie

  • Edit: Text was screwing up, so uploaded an image in its place.

bpearson avatar Aug 15 '14 02:08 bpearson

I should also mention by just using vim by itself (no plugins etc) only the @param/@return are highlighted.

bpearson avatar Aug 15 '14 03:08 bpearson

The different highlighting in the comment is a feature, not a bug. It's attempting to highlight sections of a DocBlock. See https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md

moorereason avatar Sep 14 '14 01:09 moorereason

Is there a setting to turn it off then?

bpearson avatar Sep 14 '14 08:09 bpearson