zackad / prettier-plugin-twig

Code formatting plugin for Prettier to handle Twig templates
Apache License 2.0
55 stars 6 forks source link

Colon as separator for named argument #74

Closed zackad closed 1 week ago

zackad commented 1 week ago

Twig version 3.12 has introduce semicolon as separator for named argument. This is part of twig coding standard mentioned on #71.

{# before version 3.12 #} 
{{ data|convert_encoding(from = 'iso-2022-jp', to = 'UTF-8') }}

{# version 3.12 and after #} 
{{ data|convert_encoding(from: 'iso-2022-jp', to: 'UTF-8') }}

Ref: https://twig.symfony.com/doc/3.x/templates.html#named-arguments