Skip to content

Commit

Permalink
Merge pull request #4836 from jfdm/fix-literate-newline
Browse files Browse the repository at this point in the history
Use proper newline character when lexing.
  • Loading branch information
jfdm committed Mar 31, 2020
2 parents 7c0644f + 17106b6 commit be69a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/contrib/Text/Literate.idr
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Data.List.Views
%default total

untilEOL : Recognise False
untilEOL = manyUntil (is '\n') any
untilEOL = manyUntil newline any

line : String -> Lexer
line s = exact s <+> space <+> untilEOL
Expand Down

0 comments on commit be69a0b

Please sign in to comment.