Skip to content

Haberkamp/tree-sitter-shopware-twig

Repository files navigation

tree-sitter-shopware-twig

A tree-sitter grammar for the Shopware 6 Twig admin markup language.

Installation

npm install tree-sitter-shopware-twig

Usage

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 %}");

Author

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.

Feedback and Contributing

I highly appreceate your feedback! Please create an issue, if you've found any bugs or want to request a feature.

About

A parser for Shopware 6 Twig

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors