1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Skip comments in ctags output

This commit is contained in:
Jan Larres
2011-12-12 19:47:59 +13:00
parent 32d266a430
commit 5461adc534

View File

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