Skip to content

Commit

Permalink
Merge pull request idris-lang#242 from ziman/fix-seqempty
Browse files Browse the repository at this point in the history
Fix SeqEmpty in Text.Lexer.Core.
  • Loading branch information
edwinb authored Mar 28, 2020
2 parents 8559bc4 + d819bf5 commit c1199de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/contrib/Text/Lexer/Core.idr
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ scan (SeqEat r1 r2) tok str
assert_total (scan r2 tok' rest)
scan (SeqEmpty r1 r2) tok str
= do (tok', rest) <- scan r1 tok str
scan r2 tok' str
scan r2 tok' rest
scan (Alt r1 r2) tok str
= maybe (scan r2 tok str) Just (scan r1 tok str)

Expand Down

0 comments on commit c1199de

Please sign in to comment.