fix for issue308
@@ -56,6 +56,11 @@ public class BlockTokenParser extends AbstractTokenParser {
});
parser.popBlockStack();
+
+ //check endblock us exist with block or not
+ Token endblock = stream.current();
+ if(!endblock.test(Token.Type.NAME, "endblock")) throw new ParserException(null, "endblock tag should be present with block tag starting line number ",
+ token.getLineNumber(), stream.getFilename());
// skip the 'endblock' token
stream.next();
