vscode-liquid icon indicating copy to clipboard operation
vscode-liquid copied to clipboard

Does not understand equals operator in assign

Open elmuerte opened this issue 7 months ago • 2 comments

{%- assign foo = (bar == quux) -%}

is reformatted to

{%- assign foo = (bar = = quux) -%}

Extension version: 4.0.1

elmuerte avatar Nov 24 '23 07:11 elmuerte

Hey @elmuerte

Is this valid Liquid? I've never seen parenthesis wrapped in assignments, have I missed something? Sorry for late response.

panoply avatar Jan 24 '24 16:01 panoply

The parenthesis is an error on my part, they should not be there.

{% assign foo = bar == quux %}

That is valid in liquidjs. demo

elmuerte avatar Jan 25 '24 17:01 elmuerte