Remove unused quirk allowing liquid tags to close a block it is nested in (#1284)

This commit is contained in:
Dylan Thacker-Smith
2020-09-03 06:51:56 -04:00
committed by GitHub
parent 5532df880f
commit 0740e8b431
3 changed files with 27 additions and 27 deletions
+5
View File
@@ -29,6 +29,11 @@ module Liquid
end
def unknown_tag(tag, _params, _tokens)
Block.raise_unknown_tag(tag, block_name, block_delimiter, parse_context)
end
# @api private
def self.raise_unknown_tag(tag, block_name, block_delimiter, parse_context)
if tag == 'else'
raise SyntaxError, parse_context.locale.t("errors.syntax.unexpected_else",
block_name: block_name)