~vcs-imports/exuberant-ctags/trunk

Viewing all changes in revision 764.

  • Committer: dfishburn
  • Date: 2012-06-20 14:43:02 UTC
  • Revision ID: dfishburn-20120620144302-z44zta1whcmktxj0
Most Vim files have a .vim extension.
A new deployment archive format was created with a .vba extension.
These are Vimball Archives and must be parsed differently from
regular Vim files.

They follow this format:
    " Vimball Archiver comment
    UseVimball
    finish
    filename
    line count (n) for filename
    (n) lines
    filename
    line count (n) for filename
    (n) lines
    ...

Parsing is easy, look for UseVimBall as the first line of uncommented code.
Grab the filename, followed by the # of lines, skip those lines and 
look for the next filename.

Added a new Kind for these files:
        { TRUE,  'n', "filename", "vimball filename" },

So the full list is:
    Vim
        a  autocommand groups
        c  user-defined commands
        f  function definitions
        m  maps
        v  variable definitions
        n  vimball filename

David Fishburn

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: