From 32b5b15b525d5c0d6047f8d118c860217bbd4177 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 12 Apr 2013 21:14:23 +0200 Subject: [PATCH] FIX: Avoid that the sigils used for highlighting match inside a tag. When there's a tag e.g. "foo-bar", the "-bar" part is matched as TagbarKind. Add a zero-width condition to all sigil patterns that allow only whitespace characters before the sigil. --- syntax/tagbar.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/syntax/tagbar.vim b/syntax/tagbar.vim index 34e2f69..58634b1 100644 --- a/syntax/tagbar.vim +++ b/syntax/tagbar.vim @@ -12,20 +12,20 @@ if exists("b:current_syntax") endif let s:ics= escape(join(g:tagbar_iconchars, ''), ']^\-') -let s:pattern = '\([' . s:ics . '] \?\)\@<=[^-+: ]\+[^:]\+$' +let s:pattern = '\(\S\@