Skip to content

Commit 5621792

Browse files
committed
Expressions may begin with a function that is also a reserved keyword.
1 parent a42f12a commit 5621792

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Components/ExpressionArray.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
7070

7171
if (($token->type === Token::TYPE_KEYWORD)
7272
&& ($token->flags & Token::FLAG_KEYWORD_RESERVED)
73+
&& ((~$token->flags & Token::FLAG_KEYWORD_FUNCTION))
7374
&& ($token->value !== 'DUAL')
7475
) {
7576
// No keyword is expected.

0 commit comments

Comments
 (0)