Skip to content

Commit 96abe3d

Browse files
committed
fix format1's handling of delimiter characters in test content (#16)
1 parent 7b47b4f commit 96abe3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parse.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ linesmatcher1 = do
374374
ln <- sourceLine <$> getPosition
375375
(Lines ln . unlines <$>) (line `manyTill` (lookAhead delimiter)) <?> "lines of output"
376376

377-
delimiter = choice [string "$$$", string "<<<", try (string ">>>2"), try (string ">>>="), string ">>>", eofasstr]
377+
delimiter = choice' [string "$$$", string "<<<", string ">>>2", string ">>>=", string ">>>", eofasstr]
378378

379379
-- longdelims = ["<<<", "$$$", ">>>2", ">>>=", ">>>"]
380380
-- shortdelims = ["<", "$", ">2", ">=", ">"]

0 commit comments

Comments
 (0)