英文:
Can't add tags from .vh file as systemverilog file
问题
尝试为一些SystemVerilog文件生成标签时,我发现一些文件的文件扩展名只是.vh。而我的'ctags --list-maps'只显示*.sv、.svh和.svi被识别为SystemVerilog文件。
不想更改文件名称,我在我的~/.ctags文件中进行了更改:
--langmap=systemverilog:.sv.svh.svi
改为
--langmap=systemverilog:.sv.svh.svi.vh
但是,.vh文件的内容仍未更新到标签文件中。我的ctags版本如下:
Exuberant Ctags 5.9~svn20110310,版权所有 (C) 1996-2009 Darren Hiebert
地址:dhiebert@users.sourceforge.net,http://ctags.sourceforge.net
可选的编译功能:+通配符、+正则表达式
我尝试过使用universal-ctags,但结果也一样。如何将.vh文件添加到SystemVerilog列表中?
英文:
Trying to generate tags for some system verilog files, I found some file's the file extension was just .vh. And my 'ctags --list-maps' showed only *.sv, *.svh and *.svi is identified as systemverilog files.
Not waning to change file names, I changed in my ~/.ctags file,
--langmap=systemverilog:.sv.svh.svi
to
--langmap=systemverilog:.sv.svh.svi.vh
But still, the .vh file's content is not updated in the tags file. My ctags version is below.
Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
and I tried with universal-ctags but it was the same. How can I add .vh file in the systemverilog list?
答案1
得分: 0
我通过覆盖Verilog扩展名的方式发现,我可以包含.vh文件。我是这样做的。
ctags --langmap=verilog:.v.vh -R *
然后我在~/.ctags中添加了--langmap=verilog:.v.vh
,然后在命令行中不加选项也可以运行ctags -R *
。我尝试过使用exuberant-ctags,但我想使用universal-ctags也会一样。
英文:
I found by overriding the verilog extension, I can include .vh files. This is how I did it.
ctags --langmap=verilog:.v.vh -R *
And I added --langmap=verilog:.v.vh
in ~/.ctags, then ctags -R *
also works without giving the option in the command line.
This I tried this with exuberant-ctags but I guess it'll be the same with universal-ctags.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论