help-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What suffixes are supported/for what languages


From: das
Subject: Re: What suffixes are supported/for what languages
Date: Tue, 8 May 2001 11:56:50 -0700 (PDT)

your suggestion works well. nice tool.

I wonder if you're taking feature requests?

wouldn't it be nice to read these extensions
and their associated parser from the config
file though don't you think? maybe a feature
request.

Another request would be to seperate the definition vs 
references for symbols....

thanks very much

das


--- Shigio Yamaguchi <address@hidden> wrote:
> Hi,
> > i have a .msg file that is basically a 'c' .h file
> > its naming is out of my control.
> > i appended the msg suffix in my .globalrc file like so
> 
> OK. You should setup two things:
> 
> 1. configuration file
>       add 'msg' to variable 'suffixes'.
> 2. parser
>       rewrite parser to parse '.msg' files.
> 
> > #
> > # [gctags]
> > #
> > # This command is distributed as part of GLOBAL.
> > #
> > gctags|tag command for GLOBAL:\
> >     :tc=common:\
> >     :suffixes=c,h,y,c++,cc,hh,cpp,cxx,hpp,hxx,C,H,a,sa,asm,s,S,msg:\
> >     ...snip...
> > 
> > global -vi builds all the G* files (or rebuilds them if already
> > present)
> > i do not see the .msg files in the verbose output as being parsed
> 
> It seems OK.
> You can see the active value of 'suffixes' by the following command.
> Can you see 'msg' in it?
> 
> % gtags --config suffixes
> c,h,y,c++,cc,cpp,cxx,hxx,C,H,s,S,java,msg
> % _
> 
> > i don't believe the .msg is being parsed though it has been
> introduced
> > as a valid suffix. perhaps a mapping is needed to tell global what
> > language to use to parse unrecoginized (non default) suffixed
> files.
> 
> You must make parser to parse '.msg' files.
> Please rewrite gctags/gctags.c like follows and rebuild GLOBAL.
> 
> [gctags/gctags.c]
> (choota:/tmp)% diff -c gctags.c.org gctags.c
> *** gctags.c.org        Thu Apr 26 08:26:15 2001
> --- gctags.c    Thu Apr 26 08:27:16 2001
> ***************
> *** 209,215 ****
>                 /*
>                  * C
>                  */
> !               else if (locatestring(argv[0], ".c", MATCH_AT_LAST))
>                         C(0);
>                 /*
>                  * C or C++
> --- 209,216 ----
>                 /*
>                  * C
>                  */
> !               else if (locatestring(argv[0], ".c", MATCH_AT_LAST)  
>   ||)
> !                       locatestring(argv[0], ".msg", MATCH_AT_LAST))
>                         C(0);
>                 /*
>                  * C or C++
> 
> --
> Shigio Yamaguchi - Tama Communications Corporation
> Mail: address@hidden, (Spare mail: address@hidden)
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]