mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2025-01-07 08:47:15 +03:00
improve indentation for readability
This commit is contained in:
parent
a891ff6522
commit
d431b396f4
@ -576,10 +576,10 @@ token nextpos test = ParsecT $ \(State input pos u) cok _ _ eerr -> do
|
|||||||
Nothing -> eerr $ unexpectedErr eoi pos
|
Nothing -> eerr $ unexpectedErr eoi pos
|
||||||
Just (c,cs) ->
|
Just (c,cs) ->
|
||||||
case test c of
|
case test c of
|
||||||
Just x -> let newpos = nextpos pos c cs
|
Just x -> let newpos = nextpos pos c cs
|
||||||
newstate = State cs newpos u
|
newstate = State cs newpos u
|
||||||
in seq newpos $ seq newstate $ cok x newstate mempty
|
in seq newpos $ seq newstate $ cok x newstate mempty
|
||||||
Nothing -> eerr $ unexpectedErr (showToken c) pos
|
Nothing -> eerr $ unexpectedErr (showToken c) pos
|
||||||
|
|
||||||
-- | The parser @tokens posFromTok@ parses list of tokens and returns
|
-- | The parser @tokens posFromTok@ parses list of tokens and returns
|
||||||
-- it. The resulting parser will use 'showToken' to pretty-print the
|
-- it. The resulting parser will use 'showToken' to pretty-print the
|
||||||
|
Loading…
Reference in New Issue
Block a user