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
|
optional newline
|
||||||
return l
|
return l
|
||||||
|
|
||||||
eolof = (newline >> return ()) <|> eof
|
|
||||||
|
|
||||||
tagsInComment :: String -> [Tag]
|
tagsInComment :: String -> [Tag]
|
||||||
tagsInComment c = concatMap tagsInCommentLine $ lines c'
|
tagsInComment c = concatMap tagsInCommentLine $ lines c'
|
||||||
where
|
where
|
||||||
|
|||||||
@ -414,6 +414,9 @@ spacenonewline = satisfy (`elem` " \v\f\t")
|
|||||||
restofline :: GenParser Char st String
|
restofline :: GenParser Char st String
|
||||||
restofline = anyChar `manyTill` newline
|
restofline = anyChar `manyTill` newline
|
||||||
|
|
||||||
|
eolof :: GenParser Char st ()
|
||||||
|
eolof = (newline >> return ()) <|> eof
|
||||||
|
|
||||||
-- time
|
-- time
|
||||||
|
|
||||||
getCurrentLocalTime :: IO LocalTime
|
getCurrentLocalTime :: IO LocalTime
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user