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

Liquid: Added Markup support, missing tokens, and other improvements #2950

Merged
merged 10 commits into from Jun 15, 2021

Conversation

RunDevelopment
Copy link
Member

This reimplements Liquid using Markup templating and adds missing tokens, keywords, and operators.


closes #2919.

@github-actions
Copy link

github-actions bot commented Jun 13, 2021

JS File Size Changes (gzipped)

A total of 2 files have changed, with a combined diff of +113 B (+4.0%).

file master pull size diff % diff
components/prism-liquid.min.js 564 B 672 B +108 B +19.1%
plugins/autoloader/prism-autoloader.min.js 2.23 KB 2.24 KB +5 B +0.2%

Generated by 🚫 dangerJS against 4abea84

Copy link
Collaborator

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic, thank you Michael!

components/prism-liquid.js Outdated Show resolved Hide resolved
@RunDevelopment
Copy link
Member Author

Ok, this is now a complete overhaul of Liquid. I added every feature I could find and derived the regexes from the current Liquid parser.

It should cover everything and everything should be correct.

@JaKXz Could you please see where I missed something/whether something is highlighted incorrectly?

Copy link
Collaborator

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great in my testing but I have one suggestion

components/prism-liquid.js Show resolved Hide resolved
@RunDevelopment RunDevelopment merged commit ac1d12f into PrismJS:master Jun 15, 2021
@RunDevelopment RunDevelopment deleted the liquid-update branch June 15, 2021 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants