MalteJanz / ludtwig

Linter / Formatter for Twig template files which respects HTML and your time.
MIT License
28 stars 3 forks source link

Syntax error in string replace method #91

Closed mitelg closed 9 months ago

mitelg commented 9 months ago

Following snippet gives a syntax error

{% block page_content_section_sidebar %}
    {% set layout = section.sizingMode ? section.sizingMode|replace({_: '-'}) : "container" %}
{% endblock %}

I guess the underscore is somehow treated as a special character

MalteJanz commented 9 months ago

Works fine with ludtwig 0.8.1 and should be a duplicate of https://github.com/MalteJanz/ludtwig/issues/82