File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 14901490 </dict >
14911491 <dict >
14921492 <key >begin </key >
1493- <string >(?i)(?=[a-z_0-9$\\]*(::)) </string >
1493+ <string >(?xi)(?=
1494+ [a-z_0-9$\\]*(::)
1495+ (?:
1496+ ([a-z_][a-z_0-9]*)\s*\(
1497+ |
1498+ ((\$+)[a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*)
1499+ |
1500+ ([a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*)
1501+ )?
1502+ ) </string >
14941503 <key >end </key >
14951504 <string >(?x)(::)
14961505 (?:
14991508 ((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)
15001509 |
15011510 ([a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)
1502- ) </string >
1511+ )? </string >
15031512 <key >endCaptures </key >
15041513 <dict >
15051514 <key >1 </key >
Original file line number Diff line number Diff line change @@ -245,6 +245,11 @@ function &test(stdClass $foo = invalid)
245245$ foo = self:: $ bar;
246246$ foo = static:: $ bar;
247247
248+ static:: $ {$ test } = 'test';
249+ Blah:: $ {$ test } = 'test';
250+ \foo\Blah:: $ {$ test } = 'test';
251+ $ {$ test } = 'test';
252+
248253new self(); // `self` should highlight differently
249254new static(); // `static` should highlight differently
250255new Blah();
You can’t perform that action at this time.
0 commit comments