equal
deleted
inserted
replaced
156 | pretty_items keyword sep (x :: ys) = |
156 | pretty_items keyword sep (x :: ys) = |
157 Pretty.block [Pretty.keyword keyword, Pretty.brk 1, x] :: |
157 Pretty.block [Pretty.keyword keyword, Pretty.brk 1, x] :: |
158 map (fn y => Pretty.block [Pretty.str " ", Pretty.keyword sep, Pretty.brk 1, y]) ys; |
158 map (fn y => Pretty.block [Pretty.str " ", Pretty.keyword sep, Pretty.brk 1, y]) ys; |
159 |
159 |
160 fun pretty_name_atts ctxt (binding, atts) sep = |
160 fun pretty_name_atts ctxt (binding, atts) sep = |
161 let val name = Name.name_of binding in |
161 let |
162 if name = "" andalso null atts then [] |
162 val name = NameSpace.implode |
|
163 (map fst (Name.prefix_of binding) @ [Name.name_of binding]); |
|
164 in if name = "" andalso null atts then [] |
163 else [Pretty.block |
165 else [Pretty.block |
164 (Pretty.breaks (Pretty.str name :: Attrib.pretty_attribs ctxt atts @ [Pretty.str sep]))] |
166 (Pretty.breaks (Pretty.str name :: Attrib.pretty_attribs ctxt atts @ [Pretty.str sep]))] |
165 end; |
167 end; |
166 |
168 |
167 |
169 |