X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/6d2cb3c06cd546fd4bee4136679db3a3d5de97fa..f0cef30ad92ffea80c8feb4826d0005262dbb40f:/syntax/markdown.vim?ds=sidebyside
diff --git a/syntax/markdown.vim b/syntax/markdown.vim
index 008a6d8..fbf082e 100644
--- a/syntax/markdown.vim
+++ b/syntax/markdown.vim
@@ -94,13 +94,13 @@ syn match htmlH2 /^.\+\n-\+$/ contains=mkdLink,mkdInlineURL,@Spell
"define Markdown groups
syn match mkdLineBreak / \+$/
syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLink,mkdInlineURL,mkdLineBreak,@Spell
-syn region mkdCode start=/\(\([^\\]\|^\)\\\)\@]*\\\@" end=""
-syn region mkdCode start="]*\\\@" end="
"
+execute 'syn region mkdCode matchgroup=mkdCodeDelimiter start=/\(\([^\\]\|^\)\\\)\@]*\\\@" end=""' . s:concealends
+execute 'syn region mkdCode matchgroup=mkdCodeDelimiter start="]*\\\@" end="
"' . s:concealends
syn region mkdFootnote start="\[^" end="\]"
syn match mkdCode /^\s*\n\(\(\s\{8,}[^ ]\|\t\t\+[^\t]\).*\n\)\+/
syn match mkdCode /\%^\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/
@@ -150,6 +150,7 @@ syn cluster mkdNonListItem contains=@htmlTop,htmlItalic,htmlBold,htmlBoldItalic,
"highlighting for Markdown groups
HtmlHiLink mkdString String
HtmlHiLink mkdCode String
+HtmlHiLink mkdCodeDelimiter String
HtmlHiLink mkdCodeStart String
HtmlHiLink mkdCodeEnd String
HtmlHiLink mkdFootnote Comment