From ebf1d4b2e104a0226bbacc98412a523042b06e24 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Thu, 20 Jan 2011 16:51:50 +1300 Subject: [PATCH] Add syntax highlighting --- plugin/tagbar.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index fc6431a..c65ea5b 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -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