X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/157b835b53c82ad7d52cc5083683eb3129429128..291fa48a67c77ced79a33db8fe9d71dfe04004ac:/syntax/mkd.vim diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 56f219a..20b1d3a 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -45,9 +45,9 @@ syn region htmlBoldItalic start="\S\@<=___\|___\S\@=" end="\S\@<=___\|___\S\@=" " [link](URL) | [link][id] | [link][] syn region mkdFootnotes matchgroup=mkdDelimiter start="\[^" end="\]" -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