| Input: "Here's some error recovery for directives.\n\n:::foo\n\nIndeed.\n\nIt is.\n :::\n" | |
| 3 failures: | |
| Failure: expected closing ':::' for the directive opened on line 3 at column 0 | |
| --> 8:1-8:4 | |
| | | |
| 8 | ::: | |
| | ^^^ | |
| = consumed input prefix: 69 bytes | |
| Failure: expected identifier | |
| --> 8:4 | |
| | | |
| 8 | ::: | |
| | ^ | |
| = consumed input prefix: 72 bytes | |
| Failure: unterminated directive opened on line 8; expected ':::' | |
| --> 8:1-8:4 | |
| | | |
| 8 | ::: | |
| | ^^^ | |
| = consumed input prefix: 73 bytes | |
| Final stack: | |
| [(Lean.Doc.Parser.Block.para | |
| [(Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText | |
| "Here's some error recovery for directives."))]) | |
| (Lean.Doc.Parser.Block.directive | |
| (Lean.Doc.Parser.directiveDelimiter ":::") | |
| `foo | |
| [] | |
| [(Lean.Doc.Parser.Block.para | |
| [(Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText "Indeed."))]) | |
| (Lean.Doc.Parser.Block.para | |
| [(Lean.Doc.Parser.Inline.text | |
| (Lean.Doc.Parser.versoText "It is."))])] | |
| <missing>) | |
| (Lean.Doc.Parser.Block.directive | |
| (Lean.Doc.Parser.directiveDelimiter ":::") | |
| <missing> | |
| [] | |
| [] | |
| <missing>)] | |
| All input consumed. | |
| Round-trip not reproduced, as the parse reported errors: leaf without original source info: <missing> |