From 5621792c48cc6756508379ba941cb8c271df24bd Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Thu, 12 Nov 2015 23:59:01 +0200 Subject: [PATCH] Expressions may begin with a function that is also a reserved keyword. --- src/Components/ExpressionArray.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Components/ExpressionArray.php b/src/Components/ExpressionArray.php index 5c84dcd95..b05ccc183 100644 --- a/src/Components/ExpressionArray.php +++ b/src/Components/ExpressionArray.php @@ -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.