Skip comment lines between preprocessor continuations
The preprocessor's line-joining loop appended comment-only
lines (starting with !) to the logical line instead of skipping
them. This produced tokens like `character(*), parameter :: !>`
that the lexer then split into a truncated declaration plus a
stray comment, causing parse failures on valid Fortran like
stdlib_io_aux.f90's documented parameter lists.
Per F2018 6.3.2.4, comment lines and blank lines between
continuation lines must be ignored.
lines (starting with !) to the logical line instead of skipping
them. This produced tokens like `character(*), parameter :: !>`
that the lexer then split into a truncated declaration plus a
stray comment, causing parse failures on valid Fortran like
stdlib_io_aux.f90's documented parameter lists.
Per F2018 6.3.2.4, comment lines and blank lines between
continuation lines must be ignored.
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
7dd03cc3c8ca5986853dd7b2a5a2d0df3b578fcc- Parents
-
817221c - Tree
5443ee8