Skip to content
This repository
Browse code

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 authored March 19, 2011 xolox committed March 19, 2011

Showing 1 changed file with 7 additions and 3 deletions. Show diff stats Hide diff stats

  1. 10  plugin/easytags.vim
10  plugin/easytags.vim
@@ -4,7 +4,7 @@
4 4
 " URL: http://peterodding.com/code/vim/easytags/
5 5
 " Requires: Exuberant Ctags (http://ctags.sf.net)
6 6
 " License: MIT
7  
-" Version: 2.2.1
  7
+" Version: 2.2.2
8 8
 
9 9
 " Support for automatic update using the GLVS plug-in.
10 10
 " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -84,9 +84,13 @@ function! s:CheckCtags(name, version)
84 84
       " to throw an error when the first one doesn't!
85 85
       return
86 86
     endtry
87  
-    let pattern = 'Exuberant Ctags \zs\d\+\(\.\d\+\)*'
  87
+    let pattern = 'Exuberant Ctags \zs\(\d\+\(\.\d\+\)*\|Development\)'
88 88
     let g:easytags_ctags_version = matchstr(listing, pattern)
89  
-    return s:VersionToNumber(g:easytags_ctags_version) >= a:version
  89
+    if g:easytags_ctags_version == 'Development'
  90
+      return 1
  91
+    else
  92
+      return s:VersionToNumber(g:easytags_ctags_version) >= a:version
  93
+    endif
90 94
   endif
91 95
 endfunction
92 96
 

0 notes on commit 0a49b11

Please sign in to comment.
Something went wrong with that request. Please try again.