X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1ef695f2602a2cd72fc12000e8a241eeaf9bf567..662822d81ab5320985be59e8368e60ad55d42137:/syntax/mkd.vim diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 4811898..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,14 +99,14 @@ if get(g:, 'vim_markdown_math', 0) syn region mkdMath matchgroup=mkdDelimiter start="\\\@