mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-29 05:11:33 +03:00
lib: replace notChar for backwards compatibility with megaparsec 5
This commit is contained in:
parent
728f185508
commit
31b72f0415
@ -1024,10 +1024,11 @@ bracketedpostingdatesp
|
||||
:: Monad m => Maybe Day -> ErroringJournalParser m [(TagName,Day)]
|
||||
bracketedpostingdatesp mdefdate = do
|
||||
-- pdbg 0 $ "bracketedpostingdatesp"
|
||||
skipMany $ notChar '['
|
||||
skipMany $ noneOf ['[']
|
||||
fmap concat
|
||||
$ sepEndBy (try (bracketeddatetagsp mdefdate) <|> char '[' *> pure [])
|
||||
(skipMany $ notChar '[')
|
||||
(skipMany $ noneOf ['['])
|
||||
-- using noneOf ['['] in place of notChar '[' for backwards compatibility
|
||||
|
||||
--- ** bracketed dates
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user