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
379 B
Text
15 lines
No EOL
379 B
Text
2 failures:
|
|
@1 (⟨1, 1⟩): expected identifier
|
|
"\n test\n arg}\nHere's a modified paragraph."
|
|
@45 (⟨4, 28⟩): unexpected end of input; expected '![', '$$', '$', '*', '[', '[^', '_', '`' or '{'
|
|
""
|
|
|
|
Final stack:
|
|
(Lean.Doc.Syntax.para
|
|
"para{"
|
|
[(Lean.Doc.Syntax.role
|
|
"{"
|
|
<missing>
|
|
"["
|
|
[(Lean.Doc.Syntax.footnote <missing>)]
|
|
"]")]) |