From 5461adc53421e26256aee855091633b35d96e957 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 12 Dec 2011 19:47:59 +1300 Subject: [PATCH] Skip comments in ctags output --- autoload/tagbar.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 50f1b04..2d0fe2e 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1601,6 +1601,11 @@ function! s:ProcessFile(fname, ftype) call s:LogDebugMessage('Parsing ctags output') let rawtaglist = split(ctags_output, '\n\+') for line in rawtaglist + " skip comments + if line =~# '^!_TAG_' + continue + endif + let parts = split(line, ';"') if len(parts) == 2 " Is a valid tag line let taginfo = s:ParseTagline(parts[0], parts[1], typeinfo, fileinfo)