equal
deleted
inserted
replaced
123 | pretty_items keyword sep (x :: ys) = |
123 | pretty_items keyword sep (x :: ys) = |
124 Pretty.block [Pretty.keyword keyword, Pretty.brk 1, x] :: |
124 Pretty.block [Pretty.keyword keyword, Pretty.brk 1, x] :: |
125 map (fn y => Pretty.block [Pretty.str " ", Pretty.keyword sep, Pretty.brk 1, y]) ys; |
125 map (fn y => Pretty.block [Pretty.str " ", Pretty.keyword sep, Pretty.brk 1, y]) ys; |
126 |
126 |
127 fun pretty_name_atts ctxt (b, atts) sep = |
127 fun pretty_name_atts ctxt (b, atts) sep = |
128 let val name = Binding.display b in |
128 if Binding.is_empty b andalso null atts then [] |
129 if name = "" andalso null atts then [] |
129 else [Pretty.block (Pretty.breaks |
130 else [Pretty.block |
130 (Pretty.str (Binding.str_of b) :: Attrib.pretty_attribs ctxt atts @ [Pretty.str sep]))]; |
131 (Pretty.breaks (Pretty.str name :: Attrib.pretty_attribs ctxt atts @ [Pretty.str sep]))] |
|
132 end; |
|
133 |
131 |
134 |
132 |
135 (* pretty_stmt *) |
133 (* pretty_stmt *) |
136 |
134 |
137 fun pretty_stmt ctxt = |
135 fun pretty_stmt ctxt = |