Author Topic: why not find this function  (Read 3300 times)

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
why not find this function
« on: April 07, 2015, 05:26:21 am »
why not find this function ??

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #1 on: April 07, 2015, 11:06:47 am »
because of "=array()" in signature (explicitly closing ")").
The regular expression responsible can be found in php_spec.xml =>
Code: XML
  1. <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 :)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #2 on: April 07, 2015, 02:02:12 pm »
Try this:
Code: XML
  1. <Label group="Function" match="function\s+(\w+)\s*(\(((?:[^\(\)]|\\r|\\n|\((?-1)\))*+)\))(\s+\w+)?[^;{}]+?\{" name="\1" descr="\1 \2" scope="1" image="18" style="functions"/>

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #3 on: April 08, 2015, 06:48:31 am »
Yeah, it's ok.

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

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


Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #4 on: April 08, 2015, 09: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

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #5 on: April 09, 2015, 04:43:10 am »
it's nice if HE can auto sort the function in the navigation bar.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #6 on: April 09, 2015, 09:18:28 am »
I will evaluate that, as option, if more similar requests will come

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #7 on: April 09, 2015, 09:36:18 am »
a new bug????

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #8 on: April 09, 2015, 09:38:25 am »
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"/>
« Last Edit: April 09, 2015, 09:40:04 am by false007 »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #9 on: April 10, 2015, 12:08:13 am »
<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!

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #10 on: April 10, 2015, 12:14:47 am »
Code: XML
  1. <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">
  2.     <SubImage if="\1" equal="public" value="2"/>
  3.     <SubImage if="\1" equal="protected" value="3"/>
  4.     <SubImage if="\1" equal="private" value="4"/>
  5. </Label>

ta-da-da-daaa!!

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #11 on: April 10, 2015, 07:54:39 am »
it's beautifull!!

very thinks.

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #12 on: April 10, 2015, 07:56:51 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.

 :( :( :( :( :( :( :( :( :( :( :(

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: why not find this function
« Reply #13 on: April 10, 2015, 09:49:25 am »
There is no way currently.

Quote
Labels (“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:
Quote
will 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.

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: why not find this function
« Reply #14 on: April 16, 2015, 02:14:00 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。

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
3311 Views
Last post May 03, 2009, 05:35:43 pm
by alex
2 Replies
2111 Views
Last post April 08, 2009, 12:43:08 pm
by Stefan
1 Replies
1705 Views
Last post May 17, 2009, 06:38:55 pm
by alex
2 Replies
1328 Views
Last post November 24, 2010, 03:14:39 am
by jgodfrey
1 Replies
1701 Views
Last post March 01, 2013, 12:04:39 am
by alex