panoply / vscode-liquid

💧Liquid language support for VS Code
https://marketplace.visualstudio.com/items?itemName=sissel.shopify-liquid
Other
171 stars 23 forks source link

Does not understand equals operator in assign #179

Open elmuerte opened 8 months ago

elmuerte commented 8 months ago
{%- assign foo = (bar == quux) -%}

is reformatted to

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

Extension version: 4.0.1

panoply commented 6 months ago

Hey @elmuerte

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

elmuerte commented 6 months ago

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

{% assign foo = bar == quux %}

That is valid in liquidjs. demo