From 67ccef9f3e32d56b9d63e2ac55527af760a4e109 Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Tue, 8 Jul 2014 10:16:39 +0100 Subject: [PATCH 1/1] Prevent sub-words overriding E.g. ```vi was overriding ```vim --- plugin/mkd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/mkd.vim b/plugin/mkd.vim index 4542ced..2eb1aff 100644 --- a/plugin/mkd.vim +++ b/plugin/mkd.vim @@ -22,7 +22,7 @@ function! s:Markdown_highlight_sources() let group = 'mkdSnippet' . toupper(ft) let include = s:syntax_include(ft) - let command = 'syntax region %s matchgroup=%s start="```%s" matchgroup=%s end="```" keepend contains=%s%s' + let command = 'syntax region %s matchgroup=%s start="```%s$" matchgroup=%s end="```" keepend contains=%s%s' execute printf(command, group, startgroup, ft, endgroup, include, has('conceal') ? ' concealends' : '') execute printf('syntax cluster mkdNonListItem add=%s', group) -- 2.39.2