notepad-plus-plus-legacy/PowerEditor
vlakoff 60b4aa6b75 Enhance Function List for PHP and JavaScript
Support interface and trait in PHP.
Support space between function name and opening parenthesis in PHP and JavaScript. Fixes at least #1919 and #2604.

About the JavaScript regex:

Current:
function(\s+[A-Za-z_]?\w*\([^\)\(]*\)|\([^\)\(]*\))

There are 2 parts, for named and anonymous functions. Note there is some duplication, let's simplify it:
function(\s+[A-Za-z_]?\w*)?\([^\)\(]*\)

The first character of function name is not optional (of course when the function is named), let's fix it:
function(\s+[A-Za-z_]\w*)?\([^\)\(]*\)

Finally let's support the possible spaces before opening parenthesis, for both named and anonymous functions:
function(\s+[A-Za-z_]\w*)?\s*\([^\)\(]*\)

Fixes #1919, fixes #2604, fixes #1667, fixes #2962
closes #2523, closes #2621
2017-08-27 02:04:19 +02:00
..
bin Notepad++ 7.5 release 2017-08-15 23:58:06 +02:00
gcc MinGW GCC update 2016-10-31 14:03:29 +01:00
installer Update chineseSimplified.xml 2017-08-27 02:01:00 +02:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
scintilla.original.forUpdating Create scintillaUpdatingWorkFlow.txt 2015-07-25 01:35:43 +02:00
src Enhance Function List for PHP and JavaScript 2017-08-27 02:04:19 +02:00
Test/FunctionList Move xsd file 2017-02-22 00:15:54 +01:00
visual.net Fix compiliing issue in VS2013 2017-05-08 01:43:04 +02:00