Marcin Szewczyk wrote:
> I have noticed a problem with syntax highlighting when using the
> following .vimrc (minimal to reproduce the thing):
> #v+
> syntax on
> set nocompatible
> set foldmethod=syntax
> set nofoldenable
> #v-
> 
> I am not sure if it is a bug or a feature because I rarely use folding
> but I suspect the former.
> 
> With foldmethod=syntax making a comment (in C in this example) has the
> following effect:
> - /* makes many lines below to be colored as a comment,
> - the comment body follows,
> - after closing the comment with */ only the next line regains proper
>   colors but other lines below remain being colored like a comment.
> 
> Without setting foldmethod=syntax highlighting works properly.
> 
> I have made some screenshots to visualize the problem:
> http://wodny.org/download/vim-bug/
> 
> Should I fix something in my mindset or should I file a bug? Write on
> vim_dev?
I can reproduce the problem.  With "set foldenable" and opening the
folds it doesn't happen.  Not sure if I have time to look into fixing
this.
-- 
Q: How do you tell the difference between a female cat and a male cat?
A: You ask it a question and if HE answers, it's a male but, if SHE
   answers, it's a female.
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment