1
0
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:
沈育霖
2021-01-11 21:23:42 +08:00
committed by GitHub
parent 978e1fe761
commit 778d41f437
2 changed files with 4 additions and 3 deletions

View File

@@ -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