Skip to content

Commit

Permalink
Bug fix: Make sure tags include "language" field
Browse files Browse the repository at this point in the history
The dynamic syntax highlighting performed by `easytags.vim` depends on
the extra "language" field which Exuberant Ctags can be instructed to
add to tags files with the --fields=+l command-line argument, however
the `:UpdateTags` command didn't add the --fields argument! Now it does.
  • Loading branch information
xolox committed Jun 10, 2010
1 parent 43a704c commit d319117
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions autoload.vim
Expand Up @@ -41,11 +41,8 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{1
if (ft_supported && !ft_ignored) || a:filter_invalid_tags
let start = xolox#timer#start()
let tagsfile = easytags#get_tagsfile()
let filename = expand('%:p')
if g:easytags_resolve_links
let filename = resolve(filename)
endif
let command = [g:easytags_cmd, '-f', shellescape(tagsfile)]
let filename = s:resolve(expand('%:p'))
let command = [g:easytags_cmd, '-f', shellescape(tagsfile), '--fields=+l']
if filereadable(tagsfile)
call add(command, '-a')
let start_filter = xolox#timer#start()
Expand Down

0 comments on commit d319117

Please sign in to comment.