X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e80fc305f55c7737b331e151b470df9065b7c3dd..26cfc8ef05385a8b5f526c4d461d982a82b119b2:/syntax/mkd.vim?ds=inline diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 7f2f1df..20b1d3a 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -45,7 +45,7 @@ syn region htmlBoldItalic start="\S\@<=___\|___\S\@=" end="\S\@<=___\|___\S\@=" " [link](URL) | [link][id] | [link][] syn region mkdFootnotes matchgroup=mkdDelimiter start="\[^" end="\]" -syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" oneline +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="" syn region mkdCode start="]*>" end="" +syn region mkdFootnote start="\[^" end="\]" syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ syn match mkdListItem "^\s*[-*+]\s\+" syn match mkdListItem "^\s*\d\+\.\s\+" @@ -91,6 +92,7 @@ syn match htmlH2 /^.\+\n-\+$/ contains=@Spell "highlighting for Markdown groups HtmlHiLink mkdString String HtmlHiLink mkdCode String +HtmlHiLink mkdFootnote Comment HtmlHiLink mkdBlockquote Comment HtmlHiLink mkdLineContinue Comment HtmlHiLink mkdListItem Identifier