Hi,

Le 15/05/2014 20:29, Colomban Wendling a écrit :
Hi,

Le 15/05/2014 17:17, Stéphane Mourey a écrit :
Well, thanks for your time. I may have look one day.
I created https://github.com/geany/geany/pull/270 which was fairly
I'll give it a try asap. Thanks for your work!
straightforward.  It's not much tested as I don't know Zephir (yet?),
Zephir is really quickly learnt for a PHP coder : as the purpose is limited to extensions PHP coding through classes, the language is also limited in many ways, so there is not so much to learn. On the other side, thoses limitations are not a problem as you can use the PHP standard functions, and even those from others extensions if there are loaded. I suspect that you can use PHP functions and classes from the user space (coded in PHP), but I do not have try yet.
but should work fine.  One limitation however is that it won't parse
variables as it seems Zephir don't use $ mark, but that could probably
be fixed relatively easily if knowing the language.

Meanwhile, the trick is to start with a commented PHP opening tag
like this : // <?php
Yeah, this will work.

So, now, I think that I do not need to make a new parser for
Zephir, as the PHP one works to locate Zephir symbols, at least
for classes and methods which are the most useful symbols for me.
Some work is certainly required for properties and variables, but
I can live without for a while.
Maybe you use an earlier Geany version, but since 1.24 the PHP tag
Currently, I use 1.23.1... Have to update some stuff on this workstation!
parser is a lot more clever, and also requires proper PHP open tags.
With the "//<?php" trick it will of course work, but it won't without.

Regards,
Colomban
_______________________________________________
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users



--
Blog: Impossible Exil
Bitmessage: BM-2D7keexEn8tGyYBEqGt88U2CZtpEnRzZor