Hi Christian,
I've tried the following syntax
syn region cMarkerFold start="{{{" skip=/\\"/ end="}}}" transparent
fold extend containedin=cCommentL,cComment
Although the fold defined by {{{ and }}} in the comment is recognized,
the content of this region can not be highlighted.
Any suggestion?
Thanks
James
On Sep 28, 2:36 pm, Christian Brabandt <[email protected]> wrote:
> Hijameslan!
>
> On So, 27 Sep 2009,jameslanwrote:
>
> > With fdm set to syntax, functions or smaller code blocks can be nested
> > folded perfectly. But I am wondering if I could add some marker at
> > this time manually to have higher level fold, for example, to group
> > functions.
>
> > There are some plugins using foldexpression to simulate both marker
> > and syntax but somewhat slow.
>
> > Is there any better solution?
>
> Couldn't you enhance the syntax file to take care of marker folding?
>
> regards,
> Christian
> --
> Excerpt from a conversation with a friend, early in my unix odyssey:
> "So now I've got all these floppy-sized archive pieces, and I haven't
> been able to figure out what program I'm supposed to use to concat--
> er, never mind."
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---