This is a from-scratch implementation of a tree-sitter parser for the Liquid templating language.
🏆 A comprehensive description of Liquid grammar
🏆 Tests for all language rules
🏆 Tests for all code snippets in Shopify Liquid/Jekyll Liquid docs
🏆 Highlight queries
🏆 Tests for highlighting queries
🏆 Fold queries
🏆 Injection (and therefore highlighting) of HTML
🏆 Indent queries
🏆 Locals queries (and highlights)
Tree-sitter, and its amazing grammar parsing documentation.
Shopify's Liquid templating language documentation.
Jekyll's documentation of their additions to the Liquid templating language.
If you've found this useful, please star the repository and consider sponsoring me, for any amount, to help support the open source ecosystem.