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

36 lines
No EOL
766 B
Text

3 failures:
@73 (⟨9, 3⟩): expected identifier
"\n"
@74 (⟨10, 0⟩): expected closing ':::' for directive from line 9
""
@74 (⟨10, 0⟩): expected closing '::::' for directive from line 3
""
Final stack:
[(Lean.Doc.Syntax.para
"para{"
[(Lean.Doc.Syntax.text
(str
"\"Here's some error recovery for directives.\""))]
"}")
(Lean.Doc.Syntax.directive
"::::"
`foo
[]
"\n"
[(Lean.Doc.Syntax.para
"para{"
[(Lean.Doc.Syntax.text (str "\"Indeed.\""))]
"}")
(Lean.Doc.Syntax.para
"para{"
[(Lean.Doc.Syntax.text (str "\"It is.\""))]
"}")
(Lean.Doc.Syntax.directive
":::"
<missing>
[]
"\n"
[]
<missing>)]
<missing>)]