lean4-htt/tests/lean/docparse/blocks_0023.expected.out
David Thrane Christiansen 99b3ba12c9
fix: error messages from Verso docstring parser (#12372)
This PR extensively reworks the Verso docstring parser so that it gives
much better parser errors that provide more useful guidance.

Closes #12063
2026-02-07 07:49:06 +00:00

20 lines
No EOL
648 B
Text

Failure @35 (⟨2, 15⟩): unexpected end of input; expected '![', '$$', '$', '*', '[', '[^', '_', '`', '{', block opener (at line start: '#', '>', ':', '*', '-', '+', '1.', '```', '%%%', '{..}') or newline
Final stack:
[(Lean.Doc.Syntax.dl
"dl{"
[(Lean.Doc.Syntax.desc
":"
[(Lean.Doc.Syntax.text
(str "\" an excellent idea\""))
(Lean.Doc.Syntax.linebreak
"line!"
(str "\"\\n\""))
(Lean.Doc.Syntax.text
(str "\"Let's say more!\""))]
"=>"
[(Lean.Doc.Syntax.para
"para{"
[(Lean.Doc.Syntax.footnote <missing>)])
<missing>])]
"}")]
Remaining: ""