Skip to content

Tree-sitter grammar for the Liquid templating language

License

Notifications You must be signed in to change notification settings

linearforest/tree-sitter-liquid

 
 

Repository files navigation

tree-sitter-liquid🌴🪑💧

License Latest release) Main branch test status

Intro

This is a from-scratch implementation of a tree-sitter parser for the Liquid templating language.

Goals

🏆 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)

Resources

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.

Support

If you've found this useful, please star the repository and consider sponsoring me, for any amount, to help support the open source ecosystem.

Languages

  • C 91.8%
  • JavaScript 4.0%
  • Rust 3.0%
  • Other 1.2%