stadelmanma / tree-sitter-fortran

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

Implement external scanner #24

Closed stadelmanma closed 5 years ago

stadelmanma commented 6 years ago

The external scanner will at first handle line continuations and end of statement tokens. However, another good initial candidate might be statement labels.

Down the road the external scanner will be augmented to work with fixed form Fortran somehow.

stadelmanma commented 6 years ago

This might be the relevant line to handle free form line continuations since this is how the Python scanner deals with "\"'s.

https://github.com/tree-sitter/tree-sitter-python/blob/master/src/scanner.cc#L215