From 6fe5c1b400654b81b604347689a4b8742de58c06 Mon Sep 17 00:00:00 2001 From: Far McKon Date: Mon, 12 Nov 2012 11:35:00 -0500 Subject: [PATCH] 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 --- syntax/mkd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\+" -- 2.39.5