tag generation for mutli-line func. definitions

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
Mike

tag generation for mutli-line func. definitions

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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.
Mike

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
Post Reply