[Ctags] Language map for individual files
Brought to you by:
dhiebert
|
From: Jeenu V <je...@gm...> - 2010-10-20 12:06:31
|
Hi,
I was trying to use Ctags on a project, where there's one badly named
.h file which is actually an assembly file. After going through Ctags
man page, I used --lang-map=asm:+(virtext.h) to parse it as an asm
file. However, as my verbose log shows, the option is accepted but the
file ultimately gets parsed as "C++ header file". Here's excerpt from
verbose output:
Reading initial options from command line
Option: -L main.list
Option: --langmap=c:+.inc
Adding to C language map: .inc
Option: --langmap=asm:+(virtext.h)
Adding to Asm language map: (virtext.h)
Option: -o main.tag
Option: --extra=+f
:
:
OPENING /cygdrive/c/Jeenu/<xxx>/virtext.h as C++ language include file
:
:
I even tried to use --lang-map=asm:+(*/virtext.h) but it's still the same.
The only alternative I see is to separate files by the their language,
and repeatedly generate and append tags using --language-force option.
--
Jeenu
|