Pandoc.Parsing: rewrite nonspaceChar using noneOf
This commit is contained in:
parent
8d959179f9
commit
2aa417a2e5
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ spaceChar = satisfy $ \c -> c == ' ' || c == '\t'
|
|||
|
||||
-- | Parses a nonspace, nonnewline character.
|
||||
nonspaceChar :: Stream s m Char => ParserT s st m Char
|
||||
nonspaceChar = satisfy $ flip notElem ['\t', '\n', ' ', '\r']
|
||||
nonspaceChar = noneOf ['\t', '\n', ' ', '\r']
|
||||
|
||||
-- | Skips zero or more spaces or tabs.
|
||||
skipSpaces :: Stream s m Char => ParserT s st m ()
|
||||
|
|
Loading…
Add table
Reference in a new issue