#566 Update for PHP's mainExpr in functionList.xml

Next_major_release
closed
nobody
None
6
2014-10-07
2014-03-03
No

Find:

<classRange
mainExpr="^[\s]*(class|abstract[\s]+class|final[\s]+class)[\t ]+[\w]+([\s]*|[\s]*(extends|implements)[\s]+[\w]+[\s]*)?\{"

Replace as:

<classRange
mainExpr="^[\s]*(class|abstract[\s]+class|final[\s]+class)[\t ]+[\w]+([\s]*|[\s]*(extends|implements)[\s]+[\w\\]+[\s]*)?\{"

References: http://tw1.php.net/manual/en/language.namespaces.rationale.php

I found this issue because notepad++ 6.5.4 can not list functions in my php class file.

Example:

namespace models {
    class workdata extends \MyApp\ModelBase {

        public function fetchRecord($id) {
            return true;
        }

    }
}

Thank you.

Discussion

  • Don HO

    Don HO - 2014-03-19
    • status: open --> accepted
    • Priority: 5 --> 6
     
  • Don HO

    Don HO - 2014-05-11
    • status: accepted --> closed
     

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

Sign up for the SourceForge newsletter:





No, thanks