Skip to content

Update Fortran tree-sitter and highlighting #13802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bclmary
Copy link

@bclmary bclmary commented Jun 19, 2025

Current Fortran highlighting is missing some classic keywords and all modern ones.
This is a very simple update using what can be found on the tree-sitter-fortran repos.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The highlights queries will need to have their capture names adjusted to the ones we use: https://docs.helix-editor.com/master/themes.html#syntax-highlighting

For example parameter should become variable.parameter and boolean should become constant.builtin.boolean

] @branch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indent queries are also different in Helix vs. Neovim: https://docs.helix-editor.com/master/guides/indent.html

I would guess that this should stay as outdent - we don't have a branch capture

@the-mikedavis the-mikedavis linked an issue Jun 20, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incomplete syntax highlighting in Fortran language
2 participants