diff --git a/src/Handlebars/Parser.php b/src/Handlebars/Parser.php index f519a54..dd7f724 100755 --- a/src/Handlebars/Parser.php +++ b/src/Handlebars/Parser.php @@ -87,6 +87,8 @@ class Parser if (!array_key_exists(Tokenizer::NODES, $result) && isset($result[Tokenizer::NAME]) + && ($result[Tokenizer::TYPE] == Tokenizer::T_SECTION + || $result[Tokenizer::TYPE] == Tokenizer::T_INVERTED) && $result[Tokenizer::NAME] == $token[Tokenizer::NAME] ) { if (isset($result[Tokenizer::TRIM_RIGHT])