stadelmanma / tree-sitter-fortran

Fortran grammar for tree-sitter
MIT License
30 stars 15 forks source link

Additional Support #45

Closed ghost closed 3 years ago

ghost commented 3 years ago

This pull request adds support for the following syntax rules.

Fortran

namelist /test_nml/ alpha, beta, gamma
attributes(global) subroutine dummy_cuda_kernel()
...
end subroutine dummy_cuda_kernel

device, value, constant

Fixes #45

ghost commented 3 years ago

@stadelmanma I have added few rules and tests both for fortran and cudafortran which I have documented in the pull request. I will stop for now and ask you to review and possibly merge it, before I add more rules and make the pull request too large (apologies if it is big already).

Please let me know what you think of it and if you want me to make any changes to the grammar.