Fix error when parsing empty file for generating TAGS file

Fix-for: exuberant-bugs#355
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
gitignore: Ignore *.od file generated by make test

make test generates object files suffixed with .od.
They should be ignored.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
gitignore: ignore files generated by autotools

Files and directories generated by autotools should
be ignored.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
gitignore: ignore backup files generated by emacs

*~ files are backup files generated by emacs.
These should be ignored.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Remove configure

configure file is automatically generated from configure.ac by
autoconf. This should not be in git tree.

However, configure must be re-generated when releasing
new version.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Fixed problem detecting function definitions using circumflexes used for managed classes under MS.NET.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@780 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit adb179fc1197118077ec7ecb59372dc7083b1009)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Fixed problem detecting function definitions using circumflexes used for managed classes under MS.NET.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@781 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 1dcf7cda2720054483cbb2052adb353b65365b6d)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Replaced calls to strcpy() with memmove() where the strings overlapped, for
which case the behavior of strcpy() is undefined.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@782 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 2408c5bbc174375575d7aa41a8176edc85393245)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Replaced calls to strcpy() with memmove() where the strings overlapped, for which case the behavior of strcpy() is undefined.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@783 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit bf1ac3d51d4d3594a93f0ae2687ac10c1be96599)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Jan Larres enabled function signatures for the Python parser.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@784 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 8b604a6e016e1b2b22bd629bbd80ae2a3430d2af)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
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

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@786 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 1a1177ad084452761e02a737d979d8a725783f6d)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Fixed up compiler warnings

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@787 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 2e190f6d91c8e8f07c88771c49befd5be90bc51a)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Applied a patch (with minor modification) by Jan Larres to not include tab characters in the signature of Python functions.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@789 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 3571ede2c9787a8bb33e18fda421d9526858d9f3)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Added 3548393.vim which was the source file for the trunk crash which I
could not reproduce and I do not have valgrind.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@790 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 3203800233bc7051cce8e36f9c2b0dbc3ddc466f)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Changed the javascript parser to set the tag's scope rather than including it in the tag name.

Patch from Colomban.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@791 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit da900178c0b49a878c7e4bc7203cce319f3e92a3)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
There is no need to set the token position information in the loop
searching for the initial token character, simply do that when we
finally found the token start.

Just an optimization actually -- but less calls means less room for
the values to be improperly cached.

Patch from Colomban.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@792 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 8af472c2e4acfa174821025ce7fd01a7e219335c)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Changed the javascript parser to set the tag's scope rather than including it in the tag name.

Patch from Colomban.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@793 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit b6e342eb7457fa5c0584cdf07f0830885f94427c)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Removed following warning.

jscript.c: In function ‘parseStatement’:
jscript.c:1053:10: warning: variable ‘is_prototype’ set but not used [-Wunused-but-set-variable]

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@794 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 1b4fdd92cfe0d1f62b5934167748179ac8e4f94c)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Handling let rec .. = ... and ... declarations at top level.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@795 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit 0d2453939c5b807ea5564ac59cfb79e24fe271f4)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Missed a call to vStringDelete in makeJsTag.

git-svn-id: http://svn.code.sf.net/p/ctags/code/trunk@796 c5d04d22-be80-434c-894e-aa346cc9e8e8
(cherry picked from commit cb02c5d0b18962d2dced5ed024481078115f2ebe)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>