From b271173a2d9b711d533400ffdb3108eeeadd4cfb Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Thu, 12 Oct 2017 08:21:12 +0200 Subject: bugfix $smarty.block.child and $smarty.block.parent could not be used like any $smarty special variable https://github.com/smarty-php/smarty/issues/393 --- lexer/smarty_internal_templatelexer.plex | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lexer/smarty_internal_templatelexer.plex') diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index d70fabad..cbd13626 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -344,7 +344,6 @@ class Smarty_Internal_Templatelexer rdel = ~\s*SMARTYrdel~ nocacherdel = ~(\s+nocache)?\s*SMARTYrdel~ notblockid = ~(?:(?!block)[0-9]*[a-zA-Z_]\w*)~ - smartyblockchildparent = ~[\$]smarty\.block\.(child|parent)~ integer = ~\d+~ hex = ~0[xX][0-9a-fA-F]+~ math = ~\s*([*]{1,2}|[%/^&]|[<>]{2})\s*~ @@ -515,10 +514,6 @@ class Smarty_Internal_Templatelexer singlequotestring { $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; } - smartyblockchildparent { - $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILDPARENT; - $this->taglineno = $this->line; - } dollar id { $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; } -- cgit v1.3