From c2faf0d3294cf48cf5032885f15befe532901d47 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 20 Jan 2014 08:18:29 -0800 Subject: [PATCH] Add an initial (inefficient) version of ?: syntax. --- Cycript.yy.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Cycript.yy.in b/Cycript.yy.in index a11643f..57b1ac6 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1019,6 +1019,7 @@ LogicalORExpression ConditionalExpression : LogicalORExpression { $$ = $1; } | LogicalORExpression "?" LexPushInOff AssignmentExpression ":" LexPopIn AssignmentExpression { $$ = CYNew CYCondition($1, $4, $7); } + | LogicalORExpression "?" LexPushInOff LexSetRegExp ":" LexPopIn AssignmentExpression { $$ = CYNew CYCondition($1, $1, $7); } ; /* }}} */ /* 11.13 Assignment Operators {{{ */ -- 2.47.2