Page 1 of 1

tag generation for mutli-line func. definitions

Posted: Thu Jun 01, 2006 9:40 pm
by Mike
Anyone know how to have Zeus generate tags for functions like this?

Code: Select all

return_type
function_name(arg1, 
arg2)
{
...blah...
}
By default, for all functions defined as above, I just get a list of return_type with no function names. Thanks.

Mike

Posted: Thu Jun 01, 2006 11:00 pm
by jussij
Hi Mike,

Zeus uses Exuberant Ctags to generate the tag information:

http://ctags.sourceforge.net

If there is no tag information being generated then this will be an issue with the ctags program :(

Cheers Jussi

PS: The source code for ctags is available from the link above and the Zeus source changes made can be found here:

http://www.zeusedit.com/forum/viewtopic.php?t=613

These changes include things like support for the D language etc.

Posted: Thu Jun 01, 2006 11:19 pm
by Mike
Thanks Jussi. I'm still trying to figure this one out though, even after reading the ctags manual. It appears that I may have to add a special regex search type.

Mike

Posted: Thu Jun 01, 2006 11:42 pm
by jussij
Hi Mike,
I may have to add a special regex search type
Using a regex search might be the way to go.

From what I have seen the ctags language parsers that use the regex approach are quite simple to create. Some of the languages that come as part of ctags use this approach and from what I remember their parsers comes in at a dozen or so lines.

One thing to note is the default ctags build has the regex turned off, so to build a regex parser you need to turn on the regex option in the make file and also download the GNU regexp DLL package.

Cheers Jussi