Hi Lex<br><br>Thanks for your response.<br><br>One simple solution would be to drop the trailing bracket from the regex.  <br>Do you think this would be an acceptable change?<br><br>Cheers<br>Murray<br><br><br><div class="gmail_quote">
On 14 December 2010 18:34, Lex Trotman <span dir="ltr"><<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 14 December 2010 18:23, Murray Collingwood<br>
<div class="im"><<a href="mailto:murray@focus-computing.com.au">murray@focus-computing.com.au</a>> wrote:<br>
> Hello (first time on this list)<br>
><br>
> Just a question, maybe something I can hack, maybe something somebody else<br>
> needs to hack?<br>
><br>
> I have php code that looks like this:<br>
><br>
>      function puctstatus($puctid) {<br>
>         ...<br>
>      }<br>
><br>
> The 'Symbols' list in the sidebar then lists for me the function name and<br>
> all is good.<br>
><br>
> However if my code is like this:<br>
><br>
>       function puctstatus($puctid,<br>
>                                   $category,<br>
>                                   $flags) {<br>
>          .....<br>
>       }<br>
><br>
> Then the function is not recognised and does not appear in the symbols list.<br>
><br>
> Is there a file somewhere full of regex type codes that I can edit to modify<br>
> this or is it all hardcoded in a program somewhere?<br>
<br>
</div>Yes there is a regex, but its hard coded.<br>
<br>
This is it, where ALPHA and ALNUM are the ranges you would expect<br>
<br>
"^[ \t]*[(public|protected|private|static|final)[ \t]*]*[<br>
\t]*function[ \t]+&?[ \t]*([" ALPHA "_][" ALNUM<br>
"_]*)[[:space:]]*(\\(.*\\))"<br>
<br>
I'd guess the problem is that \\(.*\\) matches anything in () after<br>
the function name but the regex code only matches against a line at a<br>
time and has no way of continuing the match beyond a line.<br>
<br>
The only way to go beyond a line seems to be to use a character by<br>
character hardcoded parser such as C uses.<br>
<br>
In tagmanager/php.c there is a bunch of code that looks like someone<br>
started to do it, status unknown.<br>
<br>
Cheers<br>
Lex<br>
<div class="im"><br>
><br>
> Cheers<br>
> mc<br>
><br>
><br>
><br>
> --<br>
> Murray Collingwood<br>
> Focus Computing<br>
> p +61 415 24 26 24<br>
> <a href="http://www.focus-computing.com.au" target="_blank">http://www.focus-computing.com.au</a><br>
><br>
</div>> _______________________________________________<br>
> Geany mailing list<br>
> <a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
> <a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
><br>
><br>
_______________________________________________<br>
Geany mailing list<br>
<a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Murray Collingwood<br>Focus Computing<br>p +61 415 24 26 24<br><a href="http://www.focus-computing.com.au">http://www.focus-computing.com.au</a><br>