doc-src/antiquote_setup.ML
changeset 42290 b1f544c84040
parent 40801 6cfacec435e6
child 42361 23f352990944
equal deleted inserted replaced
42289:dafae095d733 42290:b1f544c84040
    69     let
    69     let
    70       val txt =
    70       val txt =
    71         if txt2 = "" then txt1
    71         if txt2 = "" then txt1
    72         else if kind = "type" then txt1 ^ " = " ^ txt2
    72         else if kind = "type" then txt1 ^ " = " ^ txt2
    73         else if kind = "exception" then txt1 ^ " of " ^ txt2
    73         else if kind = "exception" then txt1 ^ " of " ^ txt2
    74         else if Syntax.is_identifier (Long_Name.base_name (ml_name txt1)) then txt1 ^ ": " ^ txt2
    74         else if Lexicon.is_identifier (Long_Name.base_name (ml_name txt1))
       
    75         then txt1 ^ ": " ^ txt2
    75         else txt1 ^ " : " ^ txt2;
    76         else txt1 ^ " : " ^ txt2;
    76       val txt' = if kind = "" then txt else kind ^ " " ^ txt;
    77       val txt' = if kind = "" then txt else kind ^ " " ^ txt;
    77       val _ = ML_Context.eval_text_in (SOME ctxt) false Position.none (ml (txt1, txt2));  (* ML_Lex.read (!?) *)
    78       val _ = ML_Context.eval_text_in (SOME ctxt) false Position.none (ml (txt1, txt2));  (* ML_Lex.read (!?) *)
    78       val kind' = if kind = "" then "ML" else "ML " ^ kind;
    79       val kind' = if kind = "" then "ML" else "ML " ^ kind;
    79     in
    80     in