Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 53f47b4

Browse files
committed
fix php worker bogus error on use keyword
1 parent 86ef553 commit 53f47b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/parser/lexer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ PHP.Lexer = function( src, ini ) {
1616
openTag = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag) ) ? /(\<\?php\s|\<\?|\<\%|\<scriptlanguage\=('|")?php('|")?\>)/i : /(\<\?php\s|<\?=|\<scriptlanguage\=('|")?php('|")?\>)/i),
1717
openTagStart = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag)) ? /^(\<\?php\s|\<\?|\<\%|\<scriptlanguage\=('|")?php('|")?\>)/i : /^(\<\?php\s|<\?=|\<scriptlanguage\=('|")?php('|")?\>)/i),
1818
tokens = [
19+
{
20+
value: PHP.Constants.T_USE,
21+
re: /^use(?=\s)/i
22+
},
1923
{
2024
value: PHP.Constants.T_ABSTRACT,
2125
re: /^abstract(?=\s)/i

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /