Skip to content

All end/begin positions of IdentifierTokens start at 0 inside IfTag #749

Answered by harttle
blidblid asked this question in Q&A
Discussion options

You must be logged in to vote

The parsed templates returned by .parse() cannot be serialized back to liquid template, that means it's not a AST can be used for code editors.

I'm still not sure should we provide such a general parser inside LiquidJS project. But https://codemirror.net/ supports Liquid language and there's a liquid parser implemented in BNF style: https://github.com/codemirror/lang-liquid

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by blidblid
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #746 on August 29, 2024 17:26.