tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

Using tree-sitter-python as a basis for tree-sitter-snakemake?

Open matthuska opened this issue 3 years ago • 0 comments

I'd like to get tree sitter working for Snakemake workflow files. The workflows are defined in a language that is essentially python + a bit of extra stuff (grammar for the extra stuff is here).

Do you have any advice for how the tree-sitter project handles these kinds of "sub-languages" that are based of existing languages? It seems like it would make sense to use the tree-sitter-python code as a starting point, and add the Snakemake-specific grammar rules and additional tests, and then track any changes to this repo and have them incorporated. Does that sound reasonable? What is the best practice for properly crediting the work done on the original code and the original authors?

matthuska avatar Sep 08 '22 10:09 matthuska