]> git.saurik.com Git - cycript.git/commitdiff
The inside of a template span protects us from in.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Dec 2015 14:10:37 +0000 (06:10 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Dec 2015 14:10:37 +0000 (06:10 -0800)
Parser.ypp.in

index aeafb3586a4e33be1d5a364739cc43a5c2d2f8b5..b76b4b41e5eeffdbfbcb48e1c4a2e5d5a4fe3b3b 100644 (file)
@@ -1049,12 +1049,12 @@ InitializerOpt
 /* 12.2.9 Template Literals {{{ */
 TemplateLiteral
     : NoSubstitutionTemplate[string] { $$ = CYNew CYTemplate($string, NULL); }
-    | TemplateHead[string] TemplateSpans[spans] { $$ = CYNew CYTemplate($string, $spans); }
+    | TemplateHead[string] LexPushInOff TemplateSpans[spans] { $$ = CYNew CYTemplate($string, $spans); }
     ;
 
 TemplateSpans
     : Expression[value] TemplateMiddle[string] TemplateSpans[spans] { $$ = CYNew CYSpan($value, $string, $spans); }
-    | Expression[value] TemplateTail[string] { $$ = CYNew CYSpan($value, $string, NULL); }
+    | Expression[value] TemplateTail[string] LexPopIn { $$ = CYNew CYSpan($value, $string, NULL); }
     ;
 /* }}} */