Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Accept 'Development' as valid version

'Development' is being used when ctags is getting built from its source
repository. This is what it looks like:

    % ctags --version
    Exuberant Ctags Development, Copyright (C) 1996-2009 Darren Hiebert
      Compiled: Mar  8 2011, 17:57:10
      Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
      Optional compiled features: +win32, +regex, +internal-sort
  • Loading branch information...
commit 0a49b11120ac47f7164f361355aa267e1e90e8c7 1 parent 6e279a3
Daniel Hahler blueyed authored committed
Showing with 7 additions and 3 deletions.
  1. +7 −3 plugin/easytags.vim
10 plugin/easytags.vim
View
@@ -4,7 +4,7 @@
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.2.1
+" Version: 2.2.2
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -84,9 +84,13 @@ function! s:CheckCtags(name, version)
" to throw an error when the first one doesn't!
return
endtry
- let pattern = 'Exuberant Ctags \zs\d\+\(\.\d\+\)*'
+ let pattern = 'Exuberant Ctags \zs\(\d\+\(\.\d\+\)*\|Development\)'
let g:easytags_ctags_version = matchstr(listing, pattern)
- return s:VersionToNumber(g:easytags_ctags_version) >= a:version
+ if g:easytags_ctags_version == 'Development'
+ return 1
+ else
+ return s:VersionToNumber(g:easytags_ctags_version) >= a:version
+ endif
endif
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.