aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hahler <git-commit@thequod.de>2011-03-19 02:28:23 +0100
committerPeter Odding <peter@peterodding.com>2011-03-19 02:28:33 +0100
commit0a49b11120ac47f7164f361355aa267e1e90e8c7 (patch)
tree286c95edf4a44aafa33a94d98402ed74e7ba1a96
parent6e279a38a9caa946251502f5d630d9c45b095689 (diff)
downloadvim-easytags-0a49b11120ac47f7164f361355aa267e1e90e8c7.tar.gz
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
-rw-r--r--plugin/easytags.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugin/easytags.vim b/plugin/easytags.vim
index a0ba269..1db37e6 100644
--- a/plugin/easytags.vim
+++ b/plugin/easytags.vim
@@ -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