This PR extensively reworks the Verso docstring parser so that it gives much better parser errors that provide more useful guidance. Closes #12063
20 lines
No EOL
648 B
Text
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: "" |