From: Jay Freeman (saurik) Date: Fri, 18 Dec 2015 14:10:37 +0000 (-0800) Subject: The inside of a template span protects us from in. X-Git-Tag: v0.9.590~185 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/fbbf5d6a250314444fa682e19c56b52e3774180e?ds=inline The inside of a template span protects us from in. --- diff --git a/Parser.ypp.in b/Parser.ypp.in index aeafb35..b76b4b4 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -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); } ; /* }}} */