Skip to content

From-scratch implementation of a tree-sitter grammar for Liquid templates

License

Notifications You must be signed in to change notification settings

adamazing/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.

About

From-scratch implementation of a tree-sitter grammar for Liquid templates

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •