Fortran grammar for tree-sitter. Adapted from this Fortran grammar.
Important
Prefer using the tree-sitter-cli installed from npm as shown below. This
is to ensure all developers use the same version of tree-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!