Skip to content
Snippets Groups Projects
Commit 86ee2412 authored by Simon Hengel's avatar Simon Hengel
Browse files

Minor code simplification

parent 0891c568
No related branches found
No related tags found
No related merge requests found
......@@ -514,11 +514,10 @@ parseValid = p some
p p' = do
vs' <- p' $ utf8String "⋆" <|> return <$> idChar
let vs = concat vs'
c <- peekChar
c <- peekChar'
case c of
Just '`' -> return vs
Just '\'' -> (\x -> vs ++ "'" ++ x) <$> ("'" *> p many')
<|> return vs
'`' -> return vs
'\'' -> (\x -> vs ++ "'" ++ x) <$> ("'" *> p many') <|> return vs
_ -> fail "outofvalid"
-- | Parses UTF8 strings from ByteString streams.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment