On Tue, Aug 10, 2010 at 4:25 PM, Benjamin R. Haskell <v...@benizi.com> wrote:
I do something similar for PHP with this file:

===== ~/.vim/after/syntax/php.vim =====
syn region phpComment start=+/\*+ end=+\*/+ contained extend
contains=phpTodo fold
=======================================


For this, you'd want to create the file (and directories, if they don't
exist):

===== ~/.vim/after/syntax/cpp.vim =====

hi there,
I got another method to fold cpp style comment, it worked more stable on
some cpp file:
syn region cCommentL start="\v(^\s*//)" end="$\n\(\s*\/\/\)\...@!"
contai...@ccommentgroup fold

B.R.
Wayne

-- 
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

Reply via email to