From: Josh Holland Date: Thu, 20 Jun 2019 14:52:53 +0000 (+0100) Subject: Fix strikethrough X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/ab4cb4b45de51c02566c6ebdb8d6e56215239bee?ds=sidebyside;hp=--cc Fix strikethrough `mkdStrike` wasn't matching in places where it should, because `htmlStrike` was included in `mkdNonListItem`'s `contains` instead. Also allow strikethrough delimiters to be concealed. --- ab4cb4b45de51c02566c6ebdb8d6e56215239bee diff --git a/syntax/markdown.vim b/syntax/markdown.vim index d8d34ea..c1a2b2c 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -151,11 +151,11 @@ endif " Strike through if get(g:, 'vim_markdown_strikethrough', 0) - syn region mkdStrike matchgroup=mkdStrike start="\%(\~\~\)" end="\%(\~\~\)" + execute 'syn region mkdStrike matchgroup=htmlStrike start="\%(\~\~\)" end="\%(\~\~\)"' . s:concealends HtmlHiLink mkdStrike htmlStrike endif -syn cluster mkdNonListItem contains=@htmlTop,htmlItalic,htmlBold,htmlBoldItalic,mkdFootnotes,mkdInlineURL,mkdLink,mkdLinkDef,mkdLineBreak,mkdBlockquote,mkdCode,mkdRule,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6,mkdMath,htmlStrike +syn cluster mkdNonListItem contains=@htmlTop,htmlItalic,htmlBold,htmlBoldItalic,mkdFootnotes,mkdInlineURL,mkdLink,mkdLinkDef,mkdLineBreak,mkdBlockquote,mkdCode,mkdRule,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6,mkdMath,mkdStrike "highlighting for Markdown groups HtmlHiLink mkdString String