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

add support for Liquid files (.liquid) #188

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

coren-frankel
Copy link
Contributor

Although line comments in Liquid require a wrapping liquid block in one way or another, I've included the line syntax # without consideration for the {% %} encapsulation due to the unlikelihood that # TODO will be used outside of a comment context.

Liquid input:

{% # for i in (1..3) -%}
  {{ i }}
{% # endfor %}
# Not a comment
{%
  ###############################
  # This is a comment
  # across multiple lines
  ###############################
%}

Output:

# Not a comment

I'd be happy to make any changes that are suggested.

Includes single line comment syntax with # that ignores block wrap tag requirement (e.g. {% %} enclosing line comments) for functional usage.
@alstr alstr merged commit 4120fdb into alstr:master May 31, 2024
1 check passed
@alstr
Copy link
Owner

alstr commented May 31, 2024

Great stuff, thanks.

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

Successfully merging this pull request may close these issues.

2 participants