Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not understand equals operator in assign #179

Open
elmuerte opened this issue Nov 24, 2023 · 2 comments
Open

Does not understand equals operator in assign #179

elmuerte opened this issue Nov 24, 2023 · 2 comments

Comments

@elmuerte
Copy link

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

is reformatted to

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

Extension version: 4.0.1

@panoply
Copy link
Owner

panoply commented Jan 24, 2024

Hey @elmuerte

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

@elmuerte
Copy link
Author

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

{% assign foo = bar == quux %}

That is valid in liquidjs. demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants