#47 change PHPTagger.java to parse return-by-ref functions

Feature_Request
closed-fixed
nobody
Editor (71)
5
2003-03-20
2003-03-19
No

In j-0.18.0/src/org/armedbear/j/PHPTagger.java line 35
should be changed from

new
UncheckedRE("^function\\s+([a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*)\\s*\\(");

to

new
UncheckedRE("^function\\s+([a-zA-Z&_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*)\\s*\\(");

to accommodate for PHP functions that return a
reference, as in

function &myFunction(arg1, arg2) {
}

Discussion

  • Ludovico Magnocavallo

    Logged In: YES
    user_id=10785

    hmmm thinking about it, maybe

    new
    UncheckedRE("^function\\s+&?([a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*)\\s*\\(");

    is better, as it does not stores the & as parte of the
    function name, which gets sorted correctly in the functions
    list

     
  • Peter Graves

    Peter Graves - 2003-03-20

    Logged In: YES
    user_id=558172

    Fixed in CVS.

     
  • Peter Graves

    Peter Graves - 2003-03-20
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks