fix php worker bogus error on use keyword
This commit is contained in:
parent
202ecaac90
commit
d308803fbe
1 changed files with 4 additions and 0 deletions
|
|
@ -172,6 +172,10 @@ PHP.Lexer = function( src, ini ) {
|
|||
openTag = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag) ) ? /(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
|
||||
openTagStart = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag)) ? /^(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /^(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
|
||||
tokens = [
|
||||
{
|
||||
value: PHP.Constants.T_USE,
|
||||
re: /^use(?=\s)/i
|
||||
},
|
||||
{
|
||||
value: PHP.Constants.T_ABSTRACT,
|
||||
re: /^abstract(?=\s)/i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue