This PR extensively reworks the Verso docstring parser so that it gives much better parser errors that provide more useful guidance. Closes #12063
15 lines
No EOL
372 B
Text
15 lines
No EOL
372 B
Text
2 failures:
|
|
@1 (⟨1, 1⟩): expected identifier
|
|
"\n test\n arg}\n\n\nHere's a paragraph."
|
|
@19 (⟨6, 0⟩): '['; expected '![', '$$', '$', '*', '[', '[^', '_', '`' or '{'
|
|
"Here's a paragraph."
|
|
|
|
Final stack:
|
|
(Lean.Doc.Syntax.para
|
|
"para{"
|
|
[(Lean.Doc.Syntax.role
|
|
"{"
|
|
<missing>
|
|
"["
|
|
[(Lean.Doc.Syntax.footnote <missing>)]
|
|
"]")]) |