X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/156e0bfe4e68b01e28aee884bf4e69a34d3e7b1a..1bdd9c799b74a6443c0c3875dedcd5f33d25772c:/syntax/markdown.vim diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 52369c3..a8f93bc 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -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