Skip to content

Commit

Permalink
Require rules to end the line or the file.
Browse files Browse the repository at this point in the history
This has the effect of forcing the maximum possible parse for a rule.
  • Loading branch information
nc6 committed Mar 5, 2024
1 parent f6ef857 commit 36ebe50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Codec/CBOR/Cuddle/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pRule =
<*> (space *> pAssignG <* space)
<*> (TOGGroup <$> pGrpEntry)
]
<* space
<* choice [void eol, eof]

pName :: Parser Name
pName = do
Expand Down

0 comments on commit 36ebe50

Please sign in to comment.