twig.js
twig.js copied to clipboard
comma breaks parser
when i add this comma before the last ")" twig breaks and renders nothing. white page. twig php does support this comma.
{% set motifs = motifs|merge(
[
{id: 'blabla'},
], {# <==== this comma is the issue #}
) %}
The comma gets added because of a linting rule that i apparently can't disable. https://github.com/VincentLanglet/Twig-CS-Fixer/issues/328
is there any chance of this to be supported ?
There are some issues with multi-line arrays/maps that could also be causing this.