mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-07 18:05:16 +08:00
Setup syntax highlighting group for tag line numbers
This commit is contained in:
parent
55b8ffa85c
commit
bd0c32242d
|
@ -1101,6 +1101,9 @@ TagbarScope
|
|||
TagbarType
|
||||
The type of a tag or scope if available.
|
||||
|
||||
TagbarTagLineN
|
||||
The source line number displayed to the right of each tag entry.
|
||||
|
||||
TagbarSignature
|
||||
Function signatures.
|
||||
|
||||
|
|
|
@ -36,7 +36,8 @@ syntax match TagbarHelpKey '" \zs.*\ze:' contained
|
|||
syntax match TagbarHelpTitle '" \zs-\+ \w\+ -\+' contained
|
||||
|
||||
syntax match TagbarNestedKind '^\s\+\[[^]]\+\]$'
|
||||
syntax match TagbarType ' : \zs.*'
|
||||
syntax match TagbarType ' : \zs.*' contains=TagbarTagLineN
|
||||
syntax match TagbarTagLineN '\s\+\[[0-9]\+\]\(\s\+\|$\)'
|
||||
syntax match TagbarSignature '(.*)'
|
||||
syntax match TagbarPseudoID '\*\ze :'
|
||||
|
||||
|
@ -47,6 +48,7 @@ highlight default link TagbarKind Identifier
|
|||
highlight default link TagbarNestedKind TagbarKind
|
||||
highlight default link TagbarScope Title
|
||||
highlight default link TagbarType Type
|
||||
highlight default link TagbarTagLineN Comment
|
||||
highlight default link TagbarSignature SpecialKey
|
||||
highlight default link TagbarPseudoID NonText
|
||||
highlight default link TagbarFoldIcon Statement
|
||||
|
|
Loading…
Reference in New Issue
Block a user