X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/937a27a0655b71eb3429867f14fb2caba691fbbc..e07c336bca7861790e8bbc496bb7a47f489e0907:/syntax/markdown.vim?ds=sidebyside diff --git a/syntax/markdown.vim b/syntax/markdown.vim index becb12e..d27145c 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -36,7 +36,7 @@ syn sync linebreaks=1 let s:conceal = '' let s:concealends = '' -if has('conceal') +if has('conceal') && get(g:, 'vim_markdown_conceal', 1) let s:conceal = ' conceal' let s:concealends = ' concealends' endif @@ -47,7 +47,7 @@ if get(g:, 'vim_markdown_emphasis_multiline', 1) else let s:oneline = ' oneline' endif -execute 'syn region htmlItalic start="\%(^\|\s\)\zs\*\ze[^\\\*\t ]" end="[^\\\*\t ]\zs\*\ze\_W" keepend' . s:oneline +execute 'syn region htmlItalic start="\%(^\|\s\)\zs\*\ze[^\\\*\t ]\%(\%([^*]\|\\\*\|\n\)*[^\\\*\t ]\)\?\*\_W" end="[^\\\*\t ]\zs\*\ze\_W" keepend' . s:oneline execute 'syn region htmlItalic start="\%(^\|\s\)\zs_\ze[^\\_\t ]" end="[^\\_\t ]\zs_\ze\_W" keepend' . s:oneline execute 'syn region htmlBold start="\*\*\ze\S" end="\S\zs\*\*" keepend' . s:oneline execute 'syn region htmlBold start="__\ze\S" end="\S\zs__" keepend' . s:oneline @@ -155,7 +155,7 @@ HtmlHiLink mkdFootnote Comment HtmlHiLink mkdBlockquote Comment HtmlHiLink mkdListItem Identifier HtmlHiLink mkdRule Identifier -HtmlHiLink mkdLineBreak Todo +HtmlHiLink mkdLineBreak Visual HtmlHiLink mkdFootnotes htmlLink HtmlHiLink mkdLink htmlLink HtmlHiLink mkdURL htmlString