lean4-htt/tests/lean/docparse/blocks_0051.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

22 lines
No EOL
546 B
Text

Failure @45 (⟨2, 29⟩): expected link target '(url)' or '[ref]' (use '\[' for a literal '[')
Final stack:
[(Lean.Doc.Syntax.para
"para{"
[(Lean.Doc.Syntax.link
"["
[(Lean.Doc.Syntax.text (str "\"My link\""))]
"]"
(Lean.Doc.Syntax.ref
"["
(str "\"lean\"")
"]"))
(Lean.Doc.Syntax.linebreak
"line!"
(str "\"\\n\""))
(Lean.Doc.Syntax.link
"["
[(Lean.Doc.Syntax.text (str "\"lean\""))]
"]"
(Lean.Doc.Syntax.url <missing>))]
"}")]
Remaining: ""