Fix regex

This commit is contained in:
Nikita Popov 2016-09-30 19:17:10 +02:00
parent 17d1e738fa
commit e926efd62e

View File

@ -67,7 +67,7 @@ class Emulative extends \PhpParser\Lexer
return false;
}
if (preg_match('/\?\?|<=>|yield[ \n\r\t]+from/', $code)) {
if (preg_match('(\?\?|<=>|yield[ \n\r\t]+from)', $code)) {
return true;
}
@ -75,7 +75,7 @@ class Emulative extends \PhpParser\Lexer
return false;
}
return preg_match('/\.\.\.|(?<!/)\*\*(?!/)/', $code);
return preg_match('(\.\.\.|(?<!/)\*\*(?!/))', $code);
}
/*