You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started to use prettier-plugin-twig-melody to check my twig templates
and found that melody do not recognize the => Operator like it's used in the filter filter.
Expected Behaviour
Usage of the => operator like described in the filter filter.
Actual Behaviour
Throws Error:
ERROR in ./src/home/index.twig
ERROR: Unexpected token "operator" of value ">"
16 | {% mount '../counter' with { count: 5 } %}
17 | {% set sizes = [34, 36, 38, 40, 42] %}
> 18 | {{ sizes|filter(v => v > 38)|join(', ') }}
| ^
19 | </div>
The text was updated successfully, but these errors were encountered:
Explain the problem
I started to use prettier-plugin-twig-melody to check my twig templates
and found that melody do not recognize the
=>
Operator like it's used in the filter filter.Expected Behaviour
Usage of the => operator like described in the filter filter.
Actual Behaviour
Throws Error:
The text was updated successfully, but these errors were encountered: