Skip to content

Commit

Permalink
Allow addition of new language types (preservim#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhradilek committed Oct 2, 2021
1 parent b6669c7 commit 7d9ce35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,12 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort
let ctags_args += [ '-V' ]
endif

" Define a new language before adding --language-force to the list of
" arguments
if has_key(a:typeinfo, 'deflang')
let ctags_args += ['--langdef=' . expand(a:typeinfo.deflang)]
endif

" Third-party programs may not necessarily make use of this
if has_key(a:typeinfo, 'ctagstype')
let ctags_type = a:typeinfo.ctagstype
Expand Down

0 comments on commit 7d9ce35

Please sign in to comment.