Thread: [Ctags] seeking for help to set ctags to work with old FORTRAN
Brought to you by:
dhiebert
From: <jl...@ne...> - 2002-09-24 16:20:30
|
Hi I'm trying to set ctags to work with some old FORTRAN 77 programs. I'm in Windows 2000, vim 6.1 and exuberant ctags 5.3.1. The programs are for VAX FORTRAN 77 as of 1988. Writen with tabs and 132 columns line length. I imagined that after creating the ctags file I could <ctrol>] on a variable name and zap!: appear looking at it's definition. Even if that definition is located in a different file, one of my .DES record DEScription files. But it works only for the variables defined inside the programs, not for those defined in include files. The ctags program is processing the .DES files but no tags are generated for them. I studied all the available ctags options and finally got this command where I specify all the options: C:\vim\ctags531\ctags -f c:\p\tags -h ".des.DES.rec.REC.reg.REG" --sort=foldcase --totals=yes --verbose=yes --langmap=fortran:.for.des.rec.reg.FOR.DES.REC.REG --languages=fortran --fortran-types=+bcefiklLmnpstv *.for *.des *.reg *.rec *.DES > runCtagsLog.txt The command output (pruned) is this: Option: --langmap=fortran:.for.des.rec.reg.FOR.DES.REC.REG Setting Fortran language map: .for .des .rec .reg .FOR .DES .REC .REG Option: --languages=fortran Enabled languages: fortran Option: --fortran-types=+bcefiklLmnpstv Reading command line arguments OPENING abmctas.for as Fortran language file OPENING abmpreglo.for as Fortran language file OPENING abmsuc014.for as Fortran language file OPENING abmtrans.for as Fortran language file OPENING actpercon.for as Fortran language file actpercon.for: unterminated character string at line 42 actpercon.for: not fixed source form; retry as free source form OPENING actpercon.for as Fortran language file actpercon.for: unterminated character string at line 42 actpercon.for: unterminated character string at line 43 OPENING per3i020.for as Fortran language file OPENING aleman.for as Fortran language file OPENING altapedpc.for as Fortran language file ... snip ... OPENING pergenptxpcia.for as Fortran language file OPENING menu_perme.for as Fortran language file OPENING afacturar.des as Fortran language include file OPENING mysmgdef.des as Fortran language include file OPENING asoc009.des as Fortran language include file OPENING atributos.des as Fortran language include file OPENING strPERFAC008.des as Fortran language include file OPENING datos_aurus.des as Fortran language include file OPENING lastnrofac.des as Fortran language include file OPENING p_contable.des as Fortran language include file OPENING perpar005.des as Fortran language include file sorting tag file 302 files, 145520 lines (4700 kB) scanned in 8.5 seconds (555 kB/s) 14035 tags added to tag file 14035 tags sorted in 0.43 seconds The I open a program and <ctrol>] a name and, if it was defined in an include file I get a "tag not found" message in vim. What am I doing wrong? This is my first contact with tags files of any sort and I'm vexed. A sample .DES file is included at the bottom. TIA Juan Lanus TECNOSOL Argentina **************** ********************************************************************* * * * Sistema Personalizado - descripcion de registros - CGA - 1/12/89 * * * * De tablas generales PERTAB012 - tabla 010 * * * ********************************************************************* character*6 FEC010 !Fecha de Proceso aa/mm/dd character*5 URE010 !Ultimo Numero de Pedido character*5 REM010 !Ultimo Numero de Remito character*5 FAC010 !Ultimo Numero de Factura character*40 PER010 !Registro de Fecha equivalence (PER010(1:1) ,FEC010(1:1)) equivalence (PER010(7:7) ,URE010(1:1)) equivalence (PER010(12:12),REM010(1:1)) equivalence (PER010(17:17),FAC010(1:1)) ****************** Fin Registro de Fecha *********************************** __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ |