Add support for LiquidDoc #20
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds basic support for LiquidDoc and the
{% doc %}/{% enddoc %}tags.https://shopify.dev/docs/storefronts/themes/tools/liquid-doc
https://shopify.dev/docs/api/liquid/tags/theme-tags#doc
I’m not too attached to any of the scope names, feel free to change them if there are more suitable ones available that I’m not aware of.
The official VS Code extension treats everything that follows
@exampleas Liquid HTML. I opted for a simpler implementation where it’s not highlighted and remains a comment, primarily because I’m not sure what should terminate the@exampleLiquid HTML scope as there’s no end keyword, but also because I’m wary of performance implications of embedding Liquid HTML inside a syntax that’s embedded in Liquid HTML.