From 617cd3202ae29fa6e1c9b96d90e05c4da0561b0c Mon Sep 17 00:00:00 2001 From: Adam Jimenez Date: Wed, 4 Jun 2014 10:39:50 +0100 Subject: [PATCH] fix "{$this->foo->bar('foobar')}" --- lib/ace/mode/php/php.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;; }