X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d6a3b09139a715bc39e0a16ad1924ac3d9fcc216..8f2eaa4169d8e15d69c30ce01b7065fc8259ae9d:/syntax/mkd.vim diff --git a/syntax/mkd.vim b/syntax/mkd.vim index fe88773..011f95e 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -3,8 +3,6 @@ " Maintainer: Ben Williams " URL: http://plasticboy.com/markdown-vim-mode/ " Remark: Uses HTML syntax file -" Remark: I don't do anything with angle brackets (<>) because that would too easily -" easily conflict with HTML syntax " TODO: Handle stuff contained within stuff (e.g. headings within blockquotes) @@ -49,12 +47,16 @@ syn region mkdFootnotes matchgroup=mkdDelimiter start="\[^" end="\]" syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" contained oneline syn region mkdURL matchgroup=mkdDelimiter start="(" end=")" contained oneline syn region mkdLink matchgroup=mkdDelimiter start="\\\@ ]*>\)\@=" end=">" + " Link definitions: [id]: URL (Optional Title) -" TODO handle automatic links without colliding with htmlTag () syn region mkdLinkDef matchgroup=mkdDelimiter start="^ \{,3}\zs\[" end="]:" oneline nextgroup=mkdLinkDefTarget skipwhite syn region mkdLinkDefTarget start="<\?\zs\S" excludenl end="\ze[>[:space:]\n]" contained nextgroup=mkdLinkTitle,mkdLinkDef skipwhite skipnl oneline syn region mkdLinkTitle matchgroup=mkdDelimiter start=+"+ end=+"+ contained @@ -97,7 +99,13 @@ if get(g:, 'vim_markdown_math', 0) syn region mkdMath matchgroup=mkdDelimiter start="\\\@