On Sun, 18 Dec 2011, Chris Lott wrote:
Does anyone have a current working configuration for exuberant-ctags (I'm using it in vim) to work with ConTeXt? The ctags FAQ shows how to do it for LaTeX with regexes in a configuration file... http://vim-taglist.sourceforge.net/extend.html
I can hack away at those, but in case anyone has done this already I wouldn't have to reinvent that particular wheel.
I had (about 4 years ago) written a ctags module that redefined a low level reference macro so that a ctags file was automatically written when you compiled your document. If I were to write it again, I will just write a mtx-ctags.lua file that will read the filename.tuc file (all the info is there as a lua table) and write it to a ctags file in the right format. You can then set the ctags program in vim to `mtxrun --script ctags filename.tex` Aditya