Skip to content

Conversation

@inaki-amatria
Copy link
Member

This PR updates our fork of tree-sitter-fortran to incorporate the latest changes from upstream.

The update was reviewed in: #22.

jgonzac and others added 22 commits June 11, 2025 08:00
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.
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
@inaki-amatria inaki-amatria requested a review from ruifm December 12, 2025 09:28
@inaki-amatria inaki-amatria self-assigned this Dec 12, 2025
@daniel-otero daniel-otero merged commit 210a9dc into codee Dec 12, 2025
1 check passed
@daniel-otero daniel-otero deleted the feature/FinalUpgradeTreeSitterFortranAuto branch December 12, 2025 14:02
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.

8 participants