X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1ef695f2602a2cd72fc12000e8a241eeaf9bf567..a0ef80e296de45f1a9ce5794bffb80fe79efc3ac:/syntax/mkd.vim?ds=inline diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 4811898..60a675d 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 @@ -68,6 +70,8 @@ syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdL syn region mkdCode start=/\(\([^\\]\|^\)\\\)\@]*>" end="" syn region mkdCode start="]*>" end="" syn region mkdFootnote start="\[^" end="\]" @@ -97,14 +101,14 @@ if get(g:, 'vim_markdown_math', 0) syn region mkdMath matchgroup=mkdDelimiter start="\\\@