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=sidebyside;hp=--cc Another take on strong and emphasis that tries to implement Github flavored markdown ignoring of multiple underscores in a word. --- 157b835b53c82ad7d52cc5083683eb3129429128 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="\\\@