1 tags文件的格式
在gvim中敲:help tag可以查看tag的介绍,里面讲了tags的文件格式。
The first lines in the tags file can contain lines that start with
!_TAG_
These are sorted to the first lines, only rare tags that start with "!" can
sort to before them. Vim recognizes two items. The first one is the line
that indicates if the file was sorted. When this line is found, Vim uses
binary searching for the tags file:
!_TAG_FILE_SORTED<Tab>1<Tab>{anything}
第一行可以为:
!_TAG_FILE_SORTED<Tab>1<Tab>I am a tags file.
第二行可以为:
!_TAG_FILE_FORMAT<Tab>1<Tab>/exxtend format; --format=1 will not append;" to lines/
正文的内容格式:
1. {tagname} {TAB} {tagfile} {TAB} {tagaddress}
2. {tagfile}:{tagname} {TAB} {tagfile} {TAB} {tagaddress}
3. {tagname} &

本文介绍了如何生成tags文件,用于GVIM中快速跳转SystemVerilog代码。tags文件格式包含特殊行如`_TAG_FILE_SORTED`和`_TAG_FILE_FORMAT`,以及类、任务、函数等标签信息。通过编写脚本或定制ctags配置,可以解析SystemVerilog源文件生成tags,支持类、任务、函数、模块等元素的定位。
最低0.47元/天 解锁文章
2637

被折叠的 条评论
为什么被折叠?



