Skip to content

Commit 5711b20

Browse files
committed
Parser.Fixed.Lexer: fix a wonky comment
From discussion in #257, this comment was unclear, or perhaps talking about the wrong thing.
1 parent d006606 commit 5711b20

File tree

1 file changed

+1
-1
lines changed
  • src/Language/Fortran/Parser/Fixed

1 file changed

+1
-1
lines changed

src/Language/Fortran/Parser/Fixed/Lexer.x

+1-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ alexGetByte ai
943943
| posAbsoluteOffset _position == aiEndOffset ai = Nothing
944944
-- Skip the continuation line altogether
945945
| isContinuation ai && _isWhiteInsensitive = skip Continuation ai
946-
-- Skip the newline before a comment
946+
-- Skip comment lines "between" continuations
947947
| aiFortranVersion ai >= Fortran77 && _isWhiteInsensitive
948948
&& isNewlineCommentsFollowedByContinuation ai = skip NewlineComment ai
949949
-- If we are not parsing a Hollerith skip whitespace

0 commit comments

Comments
 (0)