On Wed, Dec 10, 2008 at 03:01:06PM -0500, Ben Williams wrote:
> Excellent, thanks. I will test this out and include it in the next release.

Attached is an updated patch that better matches the whitespace check
from your initial script.  My previous patch was a bit too aggressive
when removing the collection after the leading whitespace.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
diff -urNad vim-scripts~/syntax/mkd.vim vim-scripts/syntax/mkd.vim
--- vim-scripts~/syntax/mkd.vim	2008-12-06 19:25:15.000000000 -0500
+++ vim-scripts/syntax/mkd.vim	2008-12-06 19:27:00.000000000 -0500
@@ -54,7 +54,7 @@
 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

Attachment: signature.asc
Description: Digital signature

Reply via email to