From fd3418394f486198db31b5a07596e6fd2bf09479 Mon Sep 17 00:00:00 2001 From: Ben Williams Date: Tue, 12 May 2009 12:42:02 -0400 Subject: [PATCH 1/1] Improved code block matching from James Vega. --- mkd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5