Parsing: Generalized type of withQuoteContext.
This commit is contained in:
parent
204ee87803
commit
7fc804ed22
1 changed files with 2 additions and 2 deletions
|
@ -811,8 +811,8 @@ quoted :: Parser [Char] ParserState Inline
|
||||||
quoted inlineParser = doubleQuoted inlineParser <|> singleQuoted inlineParser
|
quoted inlineParser = doubleQuoted inlineParser <|> singleQuoted inlineParser
|
||||||
|
|
||||||
withQuoteContext :: QuoteContext
|
withQuoteContext :: QuoteContext
|
||||||
-> Parser [Char] ParserState a
|
-> Parser [tok] ParserState a
|
||||||
-> Parser [Char] ParserState a
|
-> Parser [tok] ParserState a
|
||||||
withQuoteContext context parser = do
|
withQuoteContext context parser = do
|
||||||
oldState <- getState
|
oldState <- getState
|
||||||
let oldQuoteContext = stateQuoteContext oldState
|
let oldQuoteContext = stateQuoteContext oldState
|
||||||
|
|
Loading…
Reference in a new issue