From 28a2f4c2a4aea172c370e91fdb01471245ba9a86 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 12 Dec 2015 00:27:08 -0800 Subject: Fixed cite key parsing regression. We were capturing final colons as in [@foo: bar]; the citation id was being parsed as "@foo:". Closes jgm/pandoc-citeproc#201. --- src/Text/Pandoc/Parsing.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs index c79c8fffc..85786eb3e 100644 --- a/src/Text/Pandoc/Parsing.hs +++ b/src/Text/Pandoc/Parsing.hs @@ -1213,7 +1213,7 @@ citeKey = try $ do let regchar = satisfy (\c -> isAlphaNum c || c == '_') let internal p = try $ p <* lookAhead regchar rest <- many $ regchar <|> internal (oneOf ":.#$%&-+?<>~/") <|> - (oneOf ":/" <* lookAhead (char '/')) + try (oneOf ":/" <* lookAhead (char '/')) let key = firstChar:rest return (suppress_author, key) -- cgit v1.2.3