Re: help request for the --langmap option
Shigio Yamaguchi <[email protected]>
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, > I need some help with the new --langmap option. > > I wanted to treat .hpp as .h and I tried to change the common section > of .globalrc to be: > > > common:\ > :skip=3DGPATH,GTAGS,GRTAGS,GSYMS,HTML/,tags,TAGS,ID:\ > :skip=3Dy.tab.c,y.tab.h:\ > :skip=3DSCCS/,RCS/,CVS/,CVSROOT/,.deps/:\ > :format=3Dstandard:\ > :suffixes=3Dhpp:\ > :GTAGS=3Dgctags y -dt %s:\ > :GRTAGS=3Dgctags --langmap=3Dh\:.hpp -dt %s:\ > :GSYMS=3Dgctags --langmap=3Dh\:.hpp -dt %s: > > > or the section gctags|tag command for GLOBAL: > > > gctags|tag command for GLOBAL:\ > :tc=3Dcommon:\ > :suffixes=3Dc,h,y,c++,cc,cpp,cxx,hpp,C,H,s,S,java:\ > :sort_command=3Dsort:\ > :sed_command=3Dsed:\ > :GTAGS=3Dgctags y -dt %s:\ > :GRTAGS=3Dgctags --langmap=3Dh\:.hpp -dtr %s:\ > :GSYMS=3Dgctags --langmap=3Dh\:.hpp -dts %s: > > > I have also tried with --langmap=3Dc\:.hpp in both sections > > > but it doesn't work. I mean that in the html file produced > by gtags: htags: it is not possible to jump to an included > <file.hpp> as it is for the <file.h>. I regret to say that the current htags cannot recognize *.hpp as include file. Future version will recognize them correctly. -- Shigio Yamaguchi <[email protected]> - Tama Communications Corporation Spare mail address: <[email protected]> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3