RegEx for functionlist/php.xml => Detection of a function for Showing in Functionlist
-
Hello.
I have been using version 7.8.4 so far.
For better clarity in long procedural PHP source code, I have made a small additionn. All lines of code that begin with “###mainblock:” are displayed like a function in the function list on a right area.
I have extended the functionList.xml under functionList > parser > function as follows:
<function mainExpr=“^\s*(function|###mainblock:)\s+[\.\w]+\s*\(”>
Unfortunately, this no longer works in version 8.7.4. The RegEx for source code parsing has been greatly expanded there. There I have the file functionlist/php.xml.
If I extend the MainExpression there under functionList > parser > function accordingly:
(?-i:function|###mainblock:)\s+
But it does not work. It is not displayed as an entry in the function list. I suspect it is because of the # , which is why the whole line is treated as a comment. But this is necessary, because it is only comment. After 4 hours of trial and error, I have to give up and hope for a little help from you. please
What I have to do so that in version 8.7.4 a line like ###mainblock(‘my_title’) {} is displayed in the function list?
-
I released only 1 of your posts, as the 2nd was a repeat of this post. The forum has had to implement the post queue due to spammers. So if posting again, just wait for it to be released.
Terry
-
-