mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-06 21:50:36 +02:00
Add syntax highlighting
This commit is contained in:
1 parent
19dee23d8d
commit
ebf1d4b2e1
1 file changed
+7
@@ -181,6 +181,13 @@ function! s:OpenWindow()
|
||||
setlocal foldcolumn=1
|
||||
setlocal foldtext=v:folddashes.getline(v:foldstart)
|
||||
|
||||
syntax match Comment '^" .*' " Comments
|
||||
syntax match Identifier '^[^: ]\+$' " Non-scoped kinds
|
||||
syntax match Title '[^:(* ]\+\ze\*\? :' " Scope names
|
||||
syntax match Type ': \zs.*' " Scope types
|
||||
syntax match SpecialKey '(.*)' " Signatures
|
||||
syntax match NonText '\*\ze :' " Pseudo-tag identifiers
|
||||
|
||||
let cpoptions_save = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
|
||||
Reference in new issue
Block a user