summaryrefslogtreecommitdiff
path: root/src/elab_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-12 12:31:54 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-12 12:31:54 -0400
commit84168a777e28ab53917bc3ed448cc90e6b00a4ed (patch)
tree9df501486d7beb6949a4743263fc15e53cf1c8e4 /src/elab_util.sml
parent0f0d418e2290cdf5e6e392f65579756b37661be9 (diff)
Stop tracking CSS classes in XML types
Diffstat (limited to 'src/elab_util.sml')
-rw-r--r--src/elab_util.sml13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/elab_util.sml b/src/elab_util.sml
index 24a92e3f..0d78951b 100644
--- a/src/elab_util.sml
+++ b/src/elab_util.sml
@@ -797,9 +797,8 @@ fun mapfoldB {kind = fk, con = fc, exp = fe, sgn_item = fsgi, sgn = fsg, str = f
| DCookie (tn, x, n, c) =>
bind (ctx, NamedE (x, (CApp ((CModProj (n, [], "cookie"), loc),
c), loc)))
- | DStyle (tn, x, n, c) =>
- bind (ctx, NamedE (x, (CApp ((CModProj (n, [], "css_class"), loc),
- c), loc))),
+ | DStyle (tn, x, n) =>
+ bind (ctx, NamedE (x, (CModProj (n, [], "css_class"), loc))),
mfd ctx d)) ctx ds,
fn ds' => (StrConst ds', loc))
| StrVar _ => S.return2 strAll
@@ -914,10 +913,7 @@ fun mapfoldB {kind = fk, con = fc, exp = fe, sgn_item = fsgi, sgn = fsg, str = f
S.map2 (mfc ctx c,
fn c' =>
(DCookie (tn, x, n, c'), loc))
- | DStyle (tn, x, n, c) =>
- S.map2 (mfc ctx c,
- fn c' =>
- (DStyle (tn, x, n, c'), loc))
+ | DStyle _ => S.return2 dAll
and mfvi ctx (x, n, c, e) =
S.bind2 (mfc ctx c,
@@ -1057,8 +1053,7 @@ and maxNameDecl (d, _) =
| DSequence (n1, _, n2) => Int.max (n1, n2)
| DDatabase _ => 0
| DCookie (n1, _, n2, _) => Int.max (n1, n2)
- | DStyle (n1, _, n2, _) => Int.max (n1, n2)
-
+ | DStyle (n1, _, n2) => Int.max (n1, n2)
and maxNameStr (str, _) =
case str of
StrConst ds => maxName ds