diff --git a/lib/ace/mode/php/php.js b/lib/ace/mode/php/php.js index e82a680a..fd703ae2 100644 --- a/lib/ace/mode/php/php.js +++ b/lib/ace/mode/php/php.js @@ -717,7 +717,7 @@ PHP.Lexer = function( src, ini ) { var re; if ( curlyOpen > 0) { - re = /^([^\\\$"{}\]\)\->]|\\.)+/g; + re = /^([^\\\$"{}\]\(\)\->]|\\.)+/g; } else { re = /^([^\\\$"{]|\\.|{[^\$]|\$(?=[^a-zA-Z_\x7f-\uffff]))+/g;; }