On Tue, Aug 10, 2010 at 4:25 PM, Benjamin R. Haskell <vim@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 =====
===== ~/.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*\/\/\)\@!" contains=@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
No comments:
Post a Comment