[Geany-devel] Improving PHP parser

Can Koy cankoy at xxxxx
Thu Mar 4 16:59:29 UTC 2010


----- Original Message ----

> From: Harold Aling <geany at sait.nl>
> To: Geany development list <geany-devel at uvena.de>
> Sent: Thu, March 4, 2010 4:04:15 PM
> Subject: Re: [Geany-devel] Improving PHP parser
> 
> On Thu, Mar 4, 2010 at 14:28, Can Koy wrote:
> > Hi,
> > 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).
> 
> If you could give the PHP parser some love, it would be most welcome!

Honestly, it needs more than love, like a big slap. It's quite in bad shape.

> I have a few other items on my wishlist, if you're interested:
> * On-the-fly symbol detection (it requires a save action now)
> * Add variable names delared in function calls: function my_func($var1
> = test, $var2) { }.
> * Add variable names declared in a list: list($var1, $var2) = $array;
> * Add variable names delared in a function callback: if ($var1 = my_func()) { }

I think 'nested scopes' is very much needed, the single flat scope holding names is dreadful. But it looks hard to implement. I reckon 'calltips' is a good start. Some of your wishes *may* be covered on the way. 
And before set out, I could use any leverage on regex callbacks in ctags, please let me know if you (or anyone reading this) have access to such resource. So far, it seems I'll be the first to make use of that ctags feature (openly, at least).
Btw, happy birthday! It's been some time since my 30th.

> 
> 
> Unfortunately, I'm unavailable this weekend due to the fact I've been
> born 30 years before that, so I'm not able to test anything until
> Tuesday/Wednesday...
> 
> 
> Good luck and thank you very much! \o/
> 
> 
> -H-


      




More information about the Devel mailing list