forked from stadelmanma/tree-sitter-fortran
-
Notifications
You must be signed in to change notification settings - Fork 0
Merge tree-sitter-fortran
#23
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
Merged
daniel-otero
merged 22 commits into
codee
from
feature/FinalUpgradeTreeSitterFortranAuto
Dec 12, 2025
Merged
Merge tree-sitter-fortran
#23
daniel-otero
merged 22 commits into
codee
from
feature/FinalUpgradeTreeSitterFortranAuto
Dec 12, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it looks like v0.25.0 is the current latest version published in npm that matches v0.25.6
Fortran standard has unary operator below multiplication and above
addition. Fixing this is the difference between
-1**2
being (incorrectly) parsed as:
(math_expression
(unary_expression
(number_literal))
(number_literal))
and (correctly) parsed as:
(unary_expression
(math_expression
(number_literal)
(number_literal)))
I had to also fix `data_value` because the `unary_expression` was
trying to eat the final `/`. `data_value` only allows constants, so we
need to parse signed literals.
Fix `preproc_def` rule
Fix unary precedence
Update highlights.scm to allow better support for detecting function …
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.3 to 2.1.4. - [Commits](mafintosh/tar-fs@v2.1.3...v2.1.4) --- updated-dependencies: - dependency-name: tar-fs dependency-version: 2.1.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 3.14.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.1...3.14.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Add _XOPEN_SOURCE=700 and _BSD_VISIBLE definitions to work around BSD header visibility quirks when compiling with C_STANDARD 11.
…d-wctype-visibility fix(cmake): expose wctype functions on BSD systems
Add node for `do` statement; rename `do` block node
…d_yarn/tar-fs-2.1.4 Bump tar-fs from 2.1.3 to 2.1.4
…d_yarn/js-yaml-3.14.2 Bump js-yaml from 3.14.1 to 3.14.2
…provements Improve parsing of preprocessor comments and data statements
daniel-otero
approved these changes
Dec 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates our fork of
tree-sitter-fortranto incorporate the latest changes from upstream.The update was reviewed in: #22.