From: Far McKon Date: Mon, 12 Nov 2012 16:35:00 +0000 (-0500) Subject: changed _ syntax, to avoid mid-word underlines starting highlights. Fail case pre... X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/6fe5c1b400654b81b604347689a4b8742de58c06 changed _ syntax, to avoid mid-word underlines starting highlights. Fail case pre-commit would be the string ' - user_account: The default user account' having a highlight start at the _, and never end. Updated match only catches 1 or more whitespaces before underscore, instead of zero or more whitespaces before an underscore --- diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 4a7577f..ad41589 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -61,7 +61,7 @@ syn region mkdLinkTitle matchgroup=mkdDelimiter start=+(+ end=+)+ contained syn match mkdLineContinue ".$" contained syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*$/ syn match mkdRule /^\s*-\s\{0,1}-\s\{0,1}-$/ -syn match mkdRule /^\s*_\s\{0,1}_\s\{0,1}_$/ +syn match mkdRule /^\s+_\s\{0,1}_\s\{0,1}_$/ syn match mkdRule /^\s*-\{3,}$/ syn match mkdRule /^\s*\*\{3,5}$/ syn match mkdListItem "^\s*[-*+]\s\+"