mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Improve tag highlighting and signature matching (#735)
1. Correctly highlight tags that contain spaces. 2. Match function signature on special case: operator()(...).
This commit is contained in:
@@ -38,7 +38,7 @@ syntax match TagbarHelpTitle '" \zs-\+ \w\+ -\+' contained
|
||||
syntax match TagbarNestedKind '^\s\+\[[^]]\+\]$'
|
||||
syntax match TagbarType ' : \zs.*' contains=TagbarTagLineN
|
||||
syntax match TagbarTagLineN '\s\+\[[0-9]\+\]\(\s\+\|$\)'
|
||||
syntax match TagbarSignature '(.*)'
|
||||
syntax match TagbarSignature '\(\<operator *( *) *\)\?\zs(.*)\ze'
|
||||
syntax match TagbarPseudoID '\*\ze :'
|
||||
|
||||
highlight default link TagbarHelp Comment
|
||||
|
||||
Reference in New Issue
Block a user