[Geany-devel] Improving PHP parser

Nick Treleaven nick.treleaven at xxxxx
Fri Mar 5 16:50:42 UTC 2010


On Thu, 4 Mar 2010 05:28:32 -0800 (PST)
Can Koy <cankoy at ymail.com> wrote:

> Anybody working on improving PHP parser in tagmanager?
> If not, I intend to have a look at it this weekend. Primary objective is to add calltips.
> I could use some example code or any other pointer about regex callbacks in ctags (other than the sample in ctags).

I haven't used callbacks but I suspect you will need to use a full
parser, i.e. like the #if 0 part. As I don't use PHP myself I can't
remember what issue there was with the parser, but I never liked the
ctags regex 'solution'.

For calltips see the python.c file - parseArglist().

Regards,
Nick



More information about the Devel mailing list