Fortran grammar for tree-sitter. Adapted from this Fortran grammar.
[!IMPORTANT]
Prefer using thetree-sitter-cliinstalled fromnpmas shown below. This is to ensure all developers use the same version oftree-sitter, avoiding compatibility problems.
Follow these steps to set up and run tree-sitter-fortran:
Clone the repository
Install dependencies
npm install
Generate the parser
npm run generate
Run the tests
npm run test
Update the tests (if needed)
If you have modified the grammar and need to update test expectations:
npm run test -- --update
Check highlights.scm (if needed)
If you have changed nodes used in highlights.scm, review and update it
accordingly. Even if tests pass, outdated highlights may need fixing!
JavaScript
68.2%
C
21.0%
Fortran
5.7%
Tree-sitter Query
5.0%
Fortran grammar for tree-sitter. Adapted from this Fortran grammar.
[!IMPORTANT]
Prefer using thetree-sitter-cliinstalled fromnpmas shown below. This is to ensure all developers use the same version oftree-sitter, avoiding compatibility problems.
Follow these steps to set up and run tree-sitter-fortran:
Clone the repository
Install dependencies
npm install
Generate the parser
npm run generate
Run the tests
npm run test
Update the tests (if needed)
If you have modified the grammar and need to update test expectations:
npm run test -- --update
Check highlights.scm (if needed)
If you have changed nodes used in highlights.scm, review and update it
accordingly. Even if tests pass, outdated highlights may need fixing!
JavaScript
68.2%
C
21.0%
Fortran
5.7%
Tree-sitter Query
5.0%