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 sections tag #14

Merged
merged 1 commit into from Jan 4, 2023
Merged

Conversation

veken1199
Copy link
Contributor

@veken1199 veken1199 commented Jan 4, 2023

WHY are these changes introduced?

As we are planning to introduce a new liquid tag to render section groups, we want to make sure liquid-tm-grammar is able to recognize and handle the new liquid tag.

The new sections tag is use as followed:
{% sections '<type> %}`

@charlespwd
Copy link
Contributor

charlespwd commented Jan 4, 2023

Did you use the yarn build command? It should be here too:
https://github.com/Shopify/liquid-tm-grammar/blob/main/grammars/liquid-injection.tmLanguage.json#L920

@veken1199
Copy link
Contributor Author

veken1199 commented Jan 4, 2023

Did you use the yarn build command? It should be here too:
https://github.com/Shopify/liquid-tm-grammar/blob/main/grammars/liquid-injection.tmLanguage.json#L920

Running yarn build removed it from liquid.tmLanguage too. It seems section is added to both tags.yml and objects.yml which makes sense.

sections is only a tag

@veken1199 veken1199 force-pushed the feature/new-sections-liquid-tag branch 2 times, most recently from d9801a8 to 8441d01 Compare January 4, 2023 18:16
@veken1199 veken1199 force-pushed the feature/new-sections-liquid-tag branch from 8441d01 to 5a7a49c Compare January 4, 2023 18:17
@veken1199
Copy link
Contributor Author

I added test case

@charlespwd
Copy link
Contributor

Oh yeah gotcha. Had to double check but that's indeed the case 👌

@veken1199 veken1199 merged commit c5dc01b into main Jan 4, 2023
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.

None yet

3 participants