From 2665695f57f641c6e06cd4af7cf1661f3ea93cd3 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 12 Apr 2013 21:22:27 +0200 Subject: [PATCH] FIX: Avoid matching public / private methods as TagbarKind. When g:tagbar_iconchars = ['+', '-'] (default on Windows), and viewing a filetype (e.g. java) that has visibility information (i.e. the [-+#] sigils), the method is mistakenly highlighted as TagbarKind. Restrict its matches to when the sigil is at the beginning of the line to avoid the false matches at the indented method tags. --- syntax/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/tagbar.vim b/syntax/tagbar.vim index 58634b1..509453c 100644 --- a/syntax/tagbar.vim +++ b/syntax/tagbar.vim @@ -12,7 +12,7 @@ if exists("b:current_syntax") endif let s:ics= escape(join(g:tagbar_iconchars, ''), ']^\-') -let s:pattern = '\(\S\@