tree-sitter-fusion

neos-fusion parser for node-tree-sitter

Usage no npm install needed!

<script type="module">
  import treeSitterFusion from 'https://cdn.skypack.dev/tree-sitter-fusion';
</script>

README

tree-sitter-fusion

This is a tree-sitter grammar for Fusion, a declarative language, designed for rendering purposes in Neos CMS.

Usage with neovim

This grammer is part of nvim-treesitter. Therefore usage within neovim is simple, see the README.md for details.

Contribute

If you want to contribute to this repository - Great Idea - and thank you at this point. See Contribtion Guide for details.

Develop

This is a tree-sitter grammar, see the documentation for details.

Install

Download or checkout this repository and install the dependencies.

git clone git@gitlab.com:jirgn/tree-sitter-fusion.git 
cd tree-sitter-fusion 
yarn install

Test

We have an extensive test-suite to ensure, the grammar works as exprected. Run tests with the following command

yarn test

Playground

Treesitter ships with an Playground Interface to easily explore the behaviour of our grammar. You will need Docker or a compatible container command for this to work. You can start the playground with the following command

systemctl start docker
yarn playground

Relevant Resources / Inspirations

Because of the lack of specifications, I had to look at some other grammars and the implementation to write this code. If you want to contribute maybe the following resources are helpful