* fix: make XML parser handle trailing whitespace in opening tags * fix: make XML parser handle comments correctly --------- Co-authored-by: György Kurucz <me@kuruczgy.com>
10 lines
269 B
Text
10 lines
269 B
Text
import Lean.Data.Xml
|
|
open Lean.Xml
|
|
|
|
/-! Test XML parsing. -/
|
|
|
|
/-! Test whether trailing whitespace in opening tags is handled correctly. -/
|
|
#eval parse "<a ><b a=\"v\" ></b></a>"
|
|
|
|
/-! Test whether comments are parsed correctly. -/
|
|
#eval parse "<a><!-- comment --></a>"
|