Re: gtags alternate file extension

"Shigio YAMAGUCHI" <[email protected]> Tue, 17 Jan 2012 21:41:25 +0900
Newsgroups gmane.comp.gnu.global.general
Message-ID <[email protected]>
Hi,
> i am running gtags - GNU GLOBAL 5.9.7.
> my project tree contains files with extensions .alt,
> it contains c code, only the extension is different.
> how can i make gtags recognize these files.

You can do it by adding '.alt' to the value of langmap in the configuration
file like follows:

:langmap=c\:.c.h,yacc\:...
        |
        v
:langmap=c\:.c.h.alt,yacc\:...
                ====
--
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3