blob: e28cd58d9af5c7d9844678250fc5ca241338c4e1 [file]
Input: "{hello world:=gaia}[there]"
Success! Final stack:
(Lean.Doc.Parser.Inline.role
"{"
`hello
[(Lean.Doc.Parser.Arg.named_no_paren
`world
":="
(Lean.Doc.Parser.ArgVal.ident `gaia))]
"}"
["["]
[(Lean.Doc.Parser.Inline.text
(Lean.Doc.Parser.versoText "there"))]
["]"])
All input consumed.
Round-trip OK
Decoded views:
role (braceOpen := "{") (name := hello) (args := [named (parens := none) (name := world) (assign := ":=") (val := name (x := gaia))]) (braceClose := "}") (brackets := some ("[", "]"))
text (content := "there")