From 0a49b11120ac47f7164f361355aa267e1e90e8c7 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 19 Mar 2011 02:28:23 +0100 Subject: 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: , http://ctags.sourceforge.net Optional compiled features: +win32, +regex, +internal-sort --- plugin/easytags.vim | 10 +++++++--- 1 file 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 -- cgit v1.2.3