Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/cgraeser/vim-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
plasticboy committed Feb 21, 2011
2 parents ac8bc01 + d049d36 commit 3c2de66
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mkd.vim
Expand Up @@ -84,6 +84,27 @@ syn region htmlH6 start="^\s*######" end="\($\|#\+\)" contain
syn match htmlH1 /^.\+\n=\+$/ contains=@Spell
syn match htmlH2 /^.\+\n-\+$/ contains=@Spell



" fold region for headings
syn region mkdHeaderFold
\ start="^\s*\z(#\+\)"
\ skip="^\s*\z1#\+"
\ end="^\(\s*#\)\@="
\ fold contains=TOP

" fold region for lists
syn region mkdListFold
\ start="^\z(\s*\)\*\z(\s*\)"
\ skip="^\z1 \z2\s*[^#]"
\ end="^\(.\)\@="
\ fold contains=TOP

syn sync fromstart
setlocal foldmethod=syntax



"highlighting for Markdown groups
HtmlHiLink mkdString String
HtmlHiLink mkdCode String
Expand Down

0 comments on commit 3c2de66

Please sign in to comment.