From 41c0092aeab51dc6ac9c0f6659b46b0d554be04c Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Mon, 8 Jun 2015 11:11:46 -0400 Subject: Apply syntax sugar for 'class' attribute to
as well --- src/urweb.grm | 1 + 1 file changed, 1 insertion(+) (limited to 'src/urweb.grm') diff --git a/src/urweb.grm b/src/urweb.grm index 7fc34793..50dacf21 100644 --- a/src/urweb.grm +++ b/src/urweb.grm @@ -1624,6 +1624,7 @@ xmlOne : NOTAGS (EApp ((EVar (["Basis"], "cdata", Infer) val e = (EVar (["Basis"], "form", Infer), pos) val e = (EApp (e, case #2 tag of NONE => (EVar (["Basis"], "None", Infer), pos) + | SOME (EPrim (Prim.String (_, s)), _) => (EApp ((EVar (["Basis"], "Some", Infer), pos), parseClass s pos), pos) | SOME c => (EApp ((EVar (["Basis"], "Some", Infer), pos), c), pos)), pos) in case #3 tag of -- cgit v1.2.3