File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/compiler/api/GF/Compile/Compute Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,10 @@ bubble v = snd (bubble v)
321321 in (Map. insert c (length vs,1 ) union, addVariants (VFV c vs') union)
322322 bubble (VAlts v vs) = lift1L2 VAlts v vs
323323 bubble (VStrs vs) = liftL VStrs vs
324+ bubble (VMarkup tag attrs vs) =
325+ let (union1,attrs') = mapAccumL descend' Map. empty attrs
326+ (union2,vs') = mapAccumL descend union1 vs
327+ in (union2, VMarkup tag attrs' vs')
324328 bubble (VSymCat d i0 vs) =
325329 let (union,vs') = mapAccumL descendC Map. empty vs
326330 in (union, addVariants (VSymCat d i0 vs') union)
@@ -832,6 +836,7 @@ ppValue q d (VPattType _) = pp "VPattType"
832836ppValue q d (VFV i vs) = prec d 4 (" variants" <+> pp i <+> braces (fsep (punctuate ' ;' (map (ppValue q 0 ) vs))))
833837ppValue q d (VAlts e xs) = prec d 4 (" pre" <+> braces (ppValue q 0 e <> ' ;' <+> fsep (punctuate ' ;' (map (ppAltern q) xs))))
834838ppValue q d (VStrs _) = pp " VStrs"
839+ ppValue q d (VMarkup _ _ _) = pp " VMarkup"
835840ppValue q d (VSymCat i r rs) = pp ' <' <> pp i <> pp ' ,' <> pp r <> pp ' >'
836841ppValue q d (VError msg) = prec d 4 (pp " error" <+> ppTerm q 5 (K (show msg)))
837842ppValue q d (VCRecType ass) = pp " VCRecType"
You can’t perform that action at this time.
0 commit comments