blob: c92fdca0c6ef9546dcb6432be47902f5209a0cae [file]
Input: "a *b {c d* e\n\nNext\n"
2 failures:
Failure: unexpected '*'; expected positional argument, named argument, flag, or '}' (use '\{' for a literal '{')
--> 1:9-1:10
|
1 | a *b {c d* e
| ^
= consumed input prefix: 9 bytes
Failure: unexpected newline; expected '*' to close bold text
--> 1:12
|
1 | a *b {c d* e
| ^
= consumed input prefix: 12 bytes
Final stack:
(Lean.Doc.Parser.document
[(Lean.Doc.Parser.Block.para
[(Lean.Doc.Parser.Inline.text
(Lean.Doc.Parser.versoText "a "))
(Lean.Doc.Parser.Inline.bold
(Lean.Doc.Parser.boldDelimiter "*")
[(Lean.Doc.Parser.Inline.text
(Lean.Doc.Parser.versoText "b "))
(Lean.Doc.Parser.Inline.role
"{"
`c
[(Lean.Doc.Parser.Arg.anon
(Lean.Doc.Parser.ArgVal.ident `d))]
<missing>
[]
[]
[])]
<missing>)])
(Lean.Doc.Parser.Block.para
[(Lean.Doc.Parser.Inline.text
(Lean.Doc.Parser.versoText "Next"))
(Lean.Doc.Parser.Inline.linebreak "\n")])])
All input consumed.
Round-trip not reproduced, as the parse reported errors: non-whitespace '*' at 9 not part of any token