src/Pure/Isar/attrib.ML
changeset 42813 6c841fa92fa2
parent 42808 30870aee8a3f
child 43347 f18cf88453d6
equal deleted inserted replaced
42812:dda4aef7cba4 42813:6c841fa92fa2
    76 
    76 
    77 fun print_attributes thy =
    77 fun print_attributes thy =
    78   let
    78   let
    79     val ctxt = Proof_Context.init_global thy;
    79     val ctxt = Proof_Context.init_global thy;
    80     val attribs = Attributes.get thy;
    80     val attribs = Attributes.get thy;
    81     fun prt_attr (name, (_, comment)) = Pretty.block
    81     fun prt_attr (name, (_, "")) = Pretty.str name
    82       [Pretty.str (name ^ ":"), Pretty.brk 2, Pretty.str comment];
    82       | prt_attr (name, (_, comment)) =
       
    83           Pretty.block [Pretty.str (name ^ ":"), Pretty.brk 2, Pretty.str comment];
    83   in
    84   in
    84     [Pretty.big_list "attributes:" (map prt_attr (Name_Space.extern_table ctxt attribs))]
    85     [Pretty.big_list "attributes:" (map prt_attr (Name_Space.extern_table ctxt attribs))]
    85     |> Pretty.chunks |> Pretty.writeln
    86     |> Pretty.chunks |> Pretty.writeln
    86   end;
    87   end;
    87 
    88