tree-sitter-python
tree-sitter-python copied to clipboard
Using tree-sitter-python as a basis for tree-sitter-snakemake?
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?