eolof parser matches end of line or end of file
This commit is contained in:
parent
972106b145
commit
7b6a59123d
@ -833,8 +833,6 @@ followingcommentline = do
|
||||
optional newline
|
||||
return l
|
||||
|
||||
eolof = (newline >> return ()) <|> eof
|
||||
|
||||
tagsInComment :: String -> [Tag]
|
||||
tagsInComment c = concatMap tagsInCommentLine $ lines c'
|
||||
where
|
||||
|
||||
@ -414,6 +414,9 @@ spacenonewline = satisfy (`elem` " \v\f\t")
|
||||
restofline :: GenParser Char st String
|
||||
restofline = anyChar `manyTill` newline
|
||||
|
||||
eolof :: GenParser Char st ()
|
||||
eolof = (newline >> return ()) <|> eof
|
||||
|
||||
-- time
|
||||
|
||||
getCurrentLocalTime :: IO LocalTime
|
||||
|
||||
Loading…
Reference in New Issue
Block a user