lean4-htt/tests/lean/docparse/blocks_0041.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
787 B
Text

3 failures:
@68 (⟨8, 0⟩): expected closing ':::' from directive on line 3 at column 0, but it's at column 1
" :::\n"
@72 (⟨8, 4⟩): expected identifier
"\n"
@73 (⟨9, 0⟩): expected closing ':::' for directive from line 8
""
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.\""))]
"}")]
<missing>)
(Lean.Doc.Syntax.directive
":::"
<missing>
[]
"\n"
[]
<missing>)]