Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Forked from anonymous/snippet.txt
Created March 6, 2010 21:00
Show Gist options
  • Save lmarburger/323937 to your computer and use it in GitHub Desktop.
Save lmarburger/323937 to your computer and use it in GitHub Desktop.
foldingStartMarker = '/\*(\*|\s+\w)(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
foldingStopMarker = '(?<!\*)\*\*/|/\*\s+-+\s+\*/|^\s*\}';
Update these expressions so they also recongize:
foldingStartMarker:
/* section: something variable
---------------------------------------------- */
foldingStopMarker:
/* ------------------------------------------- */
If it helps they number of dashes is always the same:
foldingStarMark = 47
foldingStopMarker = 44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment