c syntax folding with markers

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

c syntax folding with markers

Edward Ash
I am trying to use syntax folding in C, but I like markers too.
I thought could  create a region to include the markers.  If I don't
have the markers in a comment it works fine.  But once I put it in a
comment it quits working.  I am using the default syntax file, in
addition to the following 2 lines.
Can someone please help me figure out why I can't get this to work?
syn region cBlockFold start="{" end="}" transparent fold
syn region cMarkFold start=+{{{+ end=+}}}+  
containedin=ALL,@cCommentGroup,cCommentL,cCommentStart,cComment
transparent fold


Thank you,
Eddie