diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 3b7790f..1eb0dfc 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -982,7 +982,7 @@ function! s:HighlightTag(fname) " Make sure the tag is visible in the window call winline() - let pattern = '/^\%' . tagline . 'l\s*\zs[^( ]\+\ze/' + let pattern = '/^\%' . tagline . 'l\s*[-+#]\?\zs[^( ]\+\ze/' execute 'match Search ' . pattern execute 'wincmd p'