journal: allow whitespace following a comment directive
This commit is contained in:
parent
0f0b15e8f1
commit
7c3379db63
@ -894,7 +894,7 @@ test_numberp = do
|
|||||||
|
|
||||||
multilinecommentp :: Stream [Char] m Char => ParsecT [Char] JournalContext m ()
|
multilinecommentp :: Stream [Char] m Char => ParsecT [Char] JournalContext m ()
|
||||||
multilinecommentp = do
|
multilinecommentp = do
|
||||||
string "comment" >> newline
|
string "comment" >> many spacenonewline >> newline
|
||||||
go
|
go
|
||||||
where
|
where
|
||||||
go = try (string "end comment" >> newline >> return ())
|
go = try (string "end comment" >> newline >> return ())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user