fortran-lang / fortls

fortls - Fortran Language Server
https://fortls.fortran-lang.org/
MIT License
258 stars 41 forks source link

bug(parser): multiline scope registration assigns end of line not start of line as scope start #217

Closed gnikit closed 2 years ago

gnikit commented 2 years ago

During parsing the line_no is advanced to the end of the multi-line (&) number, hence when objects are registered in the AST, the scope start is set to the end of the multi-line not the start.

This superficially solved #59

Originally posted by @gnikit in https://github.com/gnikit/fortls/issues/59#issuecomment-1298275580