Skip to content

Commit 1b8ba01

Browse files
committed
Merge pull request #54 from adamjimenez/patch-9
fix "{$this->foo->bar('foobar')}"
2 parents ceb6a37 + 9b92410 commit 1b8ba01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/lexer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ PHP.Lexer = function( src, ini ) {
562562

563563
var re;
564564
if ( curlyOpen > 0) {
565-
re = /^([^\\\$"{}\]\)\->]|\\.)+/g;
565+
re = /^([^\\\$"{}\]\(\)\->]|\\.)+/g;
566566
} else {
567567
re = /^([^\\\$"{]|\\.|{[^\$]|\$(?=[^a-zA-Z_\x7f-\uffff]))+/g;
568568
}

0 commit comments

Comments
 (0)