LaTeX reader: Fix small regression in pattern argumnents...
introduced in last commit.
This commit is contained in:
parent
41663e9eef
commit
68ec838014
1 changed files with 2 additions and 1 deletions
|
@ -425,7 +425,8 @@ doMacros' n inp = do
|
|||
getargs argmap rest
|
||||
getargs argmap (ArgNum i : Pattern toks : rest) =
|
||||
try $ do
|
||||
x <- mconcat <$> manyTill bracedOrToken (matchPattern toks)
|
||||
x <- mconcat <$> manyTill (braced <|> ((:[]) <$> anyTok))
|
||||
(matchPattern toks)
|
||||
getargs (M.insert i x argmap) rest
|
||||
getargs argmap (ArgNum i : rest) = do
|
||||
x <- try $ spaces >> bracedOrToken
|
||||
|
|
Loading…
Reference in a new issue