From: Ben Williams Date: Fri, 16 Nov 2012 19:43:37 +0000 (-0500) Subject: Another take on strong and emphasis that tries to implement Github flavored markdown... X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/157b835b53c82ad7d52cc5083683eb3129429128?ds=inline;hp=4e3ac23f2b12fed22efd2221d6a44070d0b1a2df Another take on strong and emphasis that tries to implement Github flavored markdown ignoring of multiple underscores in a word. --- diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 4dfc0b4..56f219a 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -36,12 +36,12 @@ syn case ignore syn sync linebreaks=1 "additions to HTML groups -syn region htmlItalic start="\(^\|\s\)\@<=\*" end="\*\($\|\s\)\@=" keepend -syn region htmlItalic start="\(^\|\s\)\@<=_" end="_\($\|\s\)\@=" keepend -syn region htmlBold start="\(^\|\s\)\@<=\*\*" end="\*\*\($\|\s\)\@=" keepend -syn region htmlBold start="\(^\|\s\)\@<=__" end="__\($\|\s\)\@=" keepend -syn region htmlBoldItalic start="\(^\|\s\)\@<=\*\*\*" end="\*\*\*\($\|\s\)\@=" keepend -syn region htmlBoldItalic start="\(^\|\s\)\@<=___" end="___\($\|\s\)\@=" keepend +syn region htmlItalic start="\\\@