A tree-sitter grammar for the Shopware 6 Twig admin markup language.
npm install tree-sitter-shopware-twigNote: 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.