1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Fixes #811, #799: Add language specific regex support for custom tag kinds (#812)

* Add language specific regex support for custom tag kinds

* Fix typo in example
This commit is contained in:
David Hegland
2022-03-28 08:56:27 -05:00
committed by GitHub
parent 69659cfc9d
commit 2137c14370
2 changed files with 47 additions and 0 deletions

View File

@@ -1427,6 +1427,12 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort
if has_key(a:typeinfo, 'deffile') && filereadable(expand(a:typeinfo.deffile))
let ctags_args += ['--options=' . expand(a:typeinfo.deffile)]
endif
if has_key(a:typeinfo, 'regex')
for regex in a:typeinfo.regex
let ctags_args += ['--regex-' . ctags_type . '=' . regex]
endfor
endif
endif
if has_key(a:typeinfo, 'ctagsbin')