2013-06-24 108 views
0

我无法编译ctags(没有borland builder和mVS),所以我使用了zip文件中包含的二进制文件。问题是它不识别'进程',并且在我的标签列表中没有.vhd文件中的'进程'。我听说你可以通过改变.ctags配置文件来修复它,但我不知道文件在windows上的位置。Win 7 + VHDL + exuberant Ctags + gVim

在此先感谢

回答

2

从反恐怖主义行动小组5.8帮助文件:

FILES 
    /ctags.cnf (on MSDOS, MSWindows only) 
    /etc/ctags.conf 
    /usr/local/etc/ctags.conf 
    $HOME/.ctags 
    $HOME/ctags.cnf (on MSDOS, MSWindows only) 
    .ctags 
    ctags.cnf (on MSDOS, MSWindows only) 

If any of these configuration files exist, each will be expected to contain 
a set of default options which are read in the order listed when ctags starts, 
but before the CTAGS environment variable is read or any command line options 
are read. (...) 

所以在你C:/users/USER/目录应努力创造一个ctags.conf

您可以运行ctags --list-languages来显示所有支持语言的列表,并检查VHDL是否确实在列表中。

+0

事实上ctags.cnf帮助了我。我使用了ctags.cnf,其中包含 '--langdef = vhdl --lang map = vhdl:.vhd --regex-vhdl =/^ [\ t] * entity [\ t] +([ ^] +)是/ \ 1/e,entities/i --regex-vhdl =/^ [\ t] *([^ \ t:] +)[\ t] *:[\ t] * process [ \ t] * \(/ \ 1/p,processes/i --regex-vhdl =/^ [\ t] * function [\ t] +([a-z0-9 _] +)/ \ 1/f ,函数/ i --regex-vhdl =/^ [\ t] * procedure [\ t] +([a-z0-9 _] +)/ \ 1/r,procedures/i --regex-vhdl =/^ [\ t] * type [\ t] +([^] +)是/ \ 1/t,类型声明/ i' –