why not find this function

Started by false007, April 07, 2015, 06:26:21 AM

Previous topic - Next topic

false007

why not find this function ??
[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

alex

because of "=array()" in signature (explicitly closing ")").
The regular expression responsible can be found in php_spec.xml =>
Code (xml) Select
<Label group="Function" match="function\s+(\w+)\s*(\([^)]*\))\s*\{" name="\1" descr="\1 \2" scope="1" image="18" style="functions"/>
I will check if this is possible to solve. And I am open for suggestions :)
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

alex

Try this:
Code (xml) Select
<Label group="Function" match="function\s+(\w+)\s*(\(((?:[^\(\)]|\\r|\\n|\((?-1)\))*+)\))(\s+\w+)?[^;{}]+?\{" name="\1" descr="\1 \2" scope="1" image="18" style="functions"/>
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

false007

Yeah, it's ok.

Thank you very much!!!!!!!!

Does the function list can order by the first letter??

[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

alex

As far as I remember, the list is sorted by order in which labels are collected from the document.

http://wiki.hippoedit.com/view/pane/navigation
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

false007

it's nice if HE can auto sort the function in the navigation bar.
[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

alex

I will evaluate that, as option, if more similar requests will come
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

false007

[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

false007

#8
in the navigatition bar can't find "update" function when I use

<Label group="Function" match="function\s+(\w+)\s*(\(((?:[^\(\)]|\\r|\\n|\((?-1)\))*+)\))(\s+\w+)?[^;{}]+?\{" name="\1" descr="\1 \2" scope="1" image="18" style="functions"/>
[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

alex

<Label group="Function" match="function\s+(\w+)\s*(\(((?:[^\(\)]|\\r|\\n|\((?-1)\))*+)\))(\s+\w+)?[^;{}]*?\{" name="\1" descr="\1 \2" scope="1" image="18" style="functions"/>

ta-daaa!
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

alex

Code (xml) Select
<Label group="Function" match="\&lt;(public|private|protected)?\s*function\s+(\w+)\s*(\(((?:[^\(\)]|\\r|\\n|\((?-1)\))*+)\))(\s+\w+)?[^;{}]*?\{" name="\2" descr="\2 \3" scope="1" image="18" style="functions">
    <SubImage if="\1" equal="public" value="2"/>
    <SubImage if="\1" equal="protected" value="3"/>
    <SubImage if="\1" equal="private" value="4"/>
</Label>


ta-da-da-daaa!!
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

false007

[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

false007

Quote from: alex on April 08, 2015, 10:51:24 AM
As far as I remember, the list is sorted by order in which labels are collected from the document.

http://wiki.hippoedit.com/view/pane/navigation

I read this article three times, but I can't find the way to sort the functions by first letter.

:( :( :( :( :( :( :( :( :( :( :(
[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

alex

There is no way currently.

QuoteLabels ("functions") in the list are ordered by position in the document (collection order). The design assumes that you do filtering by some known part to search matching "function" by reducing list.

And I have already answered you:
Quotewill evaluate that, as option, if more similar requests will come

Maybe Navigation Bar will not be changed at all but I will create new "Function List" Pane plugin.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

false007

Quote from: alex on April 10, 2015, 10:49:25 AM
There is no way currently.

And I have already answered you:
Maybe Navigation Bar will not be changed at all but I will create new "Function List" Pane plugin.

My English is not very well :( :( :( :( :(, but I very expect this function ;) ;) ;) :), and I will write a article introduce HE when I have free time。
[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]