fix "{$foo['bar']}"

This commit is contained in:
Adam Jimenez 2014-06-03 00:41:47 +01:00
commit 32e3ad5966

View file

@ -731,7 +731,7 @@ PHP.Lexer = function( src, ini ) {
type = 0;
if( curlyOpen > 0 ){
if( match2 = match[0].match(/^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\"\'\$\~]/) ){
if( match2 = match[0].match(/^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\$\~]/) ){
results.push(match2[0]);
}else{
type = PHP.Constants.T_STRING;