From: Ben Williams Date: Tue, 12 May 2009 16:42:02 +0000 (-0400) Subject: Improved code block matching from James Vega. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/fd3418394f486198db31b5a07596e6fd2bf09479?ds=inline Improved code block matching from James Vega. --- diff --git a/mkd.vim b/mkd.vim index 35dfea9..f5a1cfe 100644 --- a/mkd.vim +++ b/mkd.vim @@ -54,7 +54,7 @@ syn match mkdRule /^\s*-\{3,}$/ syn match mkdRule /^\s*\*\{3,5}$/ syn match mkdListItem "^\s*[-*+]\s\+" syn match mkdListItem "^\s*\d\+\.\s\+" -syn match mkdCode /^\s*\n\(\(\s\{4,}\|[\t]\+\)[^*-+ ].*\n\)\+/ +syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ syn region mkdCode start=/`/ end=/`/ syn region mkdCode start=/\s*``[^`]*/ end=/[^`]*``\s*/ syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineContinue,@Spell