Skip to content

Commit

Permalink
Expressions may begin with a function that is also a reserved keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ungureanu committed Nov 17, 2015
1 parent a42f12a commit 5621792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/ExpressionArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =

if (($token->type === Token::TYPE_KEYWORD)
&& ($token->flags & Token::FLAG_KEYWORD_RESERVED)
&& ((~$token->flags & Token::FLAG_KEYWORD_FUNCTION))
&& ($token->value !== 'DUAL')
) {
// No keyword is expected.
Expand Down

0 comments on commit 5621792

Please sign in to comment.