From: Jens Hoepken Date: Tue, 19 Mar 2013 12:48:51 +0000 (+0100) Subject: Add footnote support X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a87c86a61b583e803e8c0237ed569fa4b3119e20?hp=--cc Add footnote support --- a87c86a61b583e803e8c0237ed569fa4b3119e20 diff --git a/syntax/mkd.vim b/syntax/mkd.vim index c6ea381..eda1acf 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -68,6 +68,7 @@ syn match mkdListItem "^\s*[-*+]\s\+" syn match mkdListItem "^\s*\d\+\.\s\+" syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ syn match mkdLineBreak / \+$/ +syn region mkdFootnote start="\[^" end="\]" syn region mkdCode start=/\\\@/ end=/$/ contains=mkdLineBreak,mkdLineContinue,@Spell @@ -108,6 +109,7 @@ setlocal foldmethod=syntax "highlighting for Markdown groups HtmlHiLink mkdString String HtmlHiLink mkdCode String +HtmlHiLink mkdFootnote Comment HtmlHiLink mkdBlockquote Comment HtmlHiLink mkdLineContinue Comment HtmlHiLink mkdListItem Identifier