Comment tag parsing #133
Labels
enhancement
New feature or request
future
Fixes to be included in the 'future' environment
version 2
Fix or include in version 2 of Python Liquid
Shopify/liquid have changed comment tag parsing behaviour. Other than
{% raw %}
tags, all valid and invalid tags inside a comment block are now not parsed, whereas before they were, potentially causing errors from ill formed tags inside the comment block.This new behaviour is close to Python Liquid’s default behaviour, with the exception that Shopify/Liquid now allows any number of fully-formed nested comment blocks, which causes a
LiquidSyntaxError
in Python Liquid.We should include an implementation of the comment tag that matches Shopify/liquid and use it as the default in liquid.future.Environment.
The text was updated successfully, but these errors were encountered: