- enhancement additional debug output at $smarty->_parserdebug = true;

This commit is contained in:
Uwe.Tews@googlemail.com
2013-12-15 15:25:50 +00:00
parent 7f88dcd31f
commit a0a24e1975
6 changed files with 253 additions and 203 deletions
@@ -98,8 +98,10 @@ class Smarty_Internal_SmartyTemplateCompiler extends Smarty_Internal_TemplateCom
// start state on child templates
$this->lex->yypushstate(Smarty_Internal_Templatelexer::CHILDBODY);
}
if ($this->smarty->_parserdebug)
if ($this->smarty->_parserdebug) {
$this->parser->PrintTrace();
$this->lex->PrintTrace();
}
// get tokens from lexer and parse them
while ($this->lex->yylex() && !$this->abort_and_recompile) {
if ($this->smarty->_parserdebug) {