Crates.io | tree-sitter-shopware-twig |
lib.rs | tree-sitter-shopware-twig |
version | 0.2.3 |
created_at | 2025-08-12 06:43:50.9408+00 |
updated_at | 2025-08-12 06:54:37.889476+00 |
description | A parser for Shopware 6 Twig |
homepage | |
repository | https://www.github.com/haberkamp/tree-sitter-shopware-twig |
max_upload_size | |
id | 1791510 |
size | 125,293 |
A tree-sitter grammar for the Shopware 6 Twig admin markup language.
npm install tree-sitter-shopware-twig
Note: We expect you to have a basic understanding of tree-sitter. If you don't, please read the tree-sitter documentation.
const Parser = require("tree-sitter");
const ShopwareTwig = require("tree-sitter-shopware-twig");
const parser = new Parser();
parser.setLanguage(ShopwareTwig);
const tree = parser.parse("{% block my_block %}Hello, world!{% endblock %}");
Hey, I'm Nils. In my spare time I write about things I learned or I create open source packages, that help me (and hopefully you) to build better apps.
I highly appreceate your feedback! Please create an issue, if you've found any bugs or want to request a feature.