stadelmanma / tree-sitter-fortran

Fortran grammar for tree-sitter
MIT License
30 stars 15 forks source link

[Merged Locally] Further features and tests #74

Closed ZedThree closed 1 year ago

ZedThree commented 1 year ago

Builds on #72

New features:

Changes to existing features:

Includes tests for all new and changed features

stadelmanma commented 1 year ago

@ZedThree I merged this locally after doing a rebase to resolve some conflicts with different versions of tree-sitter in parser.c. I attempted to push to the branch after that but I didn't have permission. Doesn't look like GitHub is recognizing the local code merge like GitLab usually does.

(if something looks like it went astray with the local merge let me know)

Thank you for the updates! Out of curiosity what is your main use case for tree-sitter is it the doc generation project you linked?

ZedThree commented 1 year ago

Great, thank you!

Yep, I maintain Ford and we've been investigating ways of pulling the parser out and using a standalone parser. This looks very promising! There's a few other tools in the Fortran ecosystem that might also be interested. Personally, I'd also like to use it for syntax highlighting in Emacs, because the built-in regex-based highlighter struggles with very modern features like module procedure in submodules.