121345Re: Proper handling of C style // comments?
- Mar 4, 2011On 03/03/2011 23:18, Ben Fritz wrote:
>I would guess it is my extended C syntax highlighter:
> On Mar 2, 4:32 pm, kuru<maymunbe...@...> wrote:
>> Hugh thanks for your time, but that one did not help me ;)
>> Christian, that was a great solution. It did do the trick. My c.vim is
>> from 2006, I am not using the latest one(from nov 2010 by Bram)
>> because the older one is more extended in a way and I already created
>> my color file.
> And where did you get this older file?
To allow // comments just add the following to your .vimrc file:
let c_cpp_comments = 1
There is a help file included in the download that explains all the
>> It was called CCommentError, so I diverted it to comment as you have--
> It sure seems like it's intentionally using error highlight then. You
> should figure out why it is matching there. Perhaps your extended
> syntax file matches '//' style comments as errors since they are not
> technically part of standard C (they're called "c++ style" where I
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic