sponsor Vim development Vim logo Vim Book Ad

ctags.exe : Windows version of ctags for 4GL/4Js programs

 script karma  Rating 64/42, Downloaded by 9991  Comments, bugs, improvements  Vim wiki

created by
Tim Kim
 
script type
utility
 
description
I compiled original Windows ctags source(http://ctags.sourceforge.net/) with a 4GL language extension to generate tags for functions(include report function), cursor IDs, prepared statement IDs, and global/module level variables. It works in XP and Vista according to my test.

It's even better when you use it with taglist.vim. It generate tags on the fly when you open 4gl programs in gvim/vim. For this add the following lines in taglist.vim. (Scroll down the plugin to a section where tag types are defined for different languages:)
------------------------------------------------------------------------------------------------------------------
" fgl language
let s:tlist_def_fgl_settings = 'fgl;f:function;c:cursor;s:prepared;v:variable'
------------------------------------------------------------------------------------------------------------------

If you want to compile yourself, here is how I compiled:
1. Download and extract, if necessary, BCC55(free Boland compiler) and ctags source for Windows from the web and 4GL extentionfrom
2. Create both bcc32.cfg and ilink.cfg in bin directory of BCC55 using Notepad. The contents of two files are the same as follows(of course, change the path if you have installed it in a different directory). Each file contains two lines.
   -I"C:\Borland\BCC55\Include"
   -L"C:\Borland\BCC55\Lib;C:\Borland\BCC55\Lib\PSDK"
3. You will probably have to add a bin path to your system
4. Download 4GL extenion from http://www.vim.org/scripts/script.php?script_id=587,and extract files(fgl.c ...) to your ctags source directory
5. In ctags source directory, type "make -f mk_bc5.mak" to build ctags.exe
 
install details
Put ctags.exe in a directory, whose execution path is recognized in Windows.
For more information, type 'ctags.exe --help'

If you are editing files in UNIX thru samba, map a drive and set tag variable in _vimrc or .vimrc in windows
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ctags.exe 1.5 2009-04-11 6.0 Tim Kim Recognize REPORT function name as a tag
ctags.zip 1.4 2008-12-05 6.0 Tim Kim A bug fix related to curly bracket for comment
fgl.zip 1.3 2008-07-19 6.0 Tim Kim a bug fix when comment finishes with a curly bracket
fgl.zip 1.2 2008-07-13 6.0 Tim Kim Now it picks up any global/module vairables to create tag. Reaonably works well.
The Zip file includs ctags executable, and fgl extention source to ctags.

I used BC5 compiler to compile the ctags source with this fgl extension both in XP and Vista.
ctags.exe 1.1 2008-07-11 6.0 Tim Kim fixed a bug
ctags.exe 1.0 2008-07-09 6.0 Tim Kim Initial upload
ip used for rating: 54.226.36.60

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN.net Logo