src/Pure/Syntax/syntax_phases.ML
changeset 80952 a61ed25ba155
parent 80950 b4a6bee4621a
child 80991 2d07d2bbd8c6
equal deleted inserted replaced
80951:4d6ce43b663c 80952:a61ed25ba155
   156     val reports = Unsynchronized.ref ([]: Position.report_text list);
   156     val reports = Unsynchronized.ref ([]: Position.report_text list);
   157     fun report pos = Position.store_reports reports [pos];
   157     fun report pos = Position.store_reports reports [pos];
   158     val append_reports = Position.append_reports reports;
   158     val append_reports = Position.append_reports reports;
   159 
   159 
   160     fun report_pos tok =
   160     fun report_pos tok =
   161       if Lexicon.suppress_markup tok then Position.none
   161       if Lexicon.is_literal tok andalso null (Lexicon.literal_markup (Lexicon.str_of_token tok))
   162       else Lexicon.pos_of_token tok;
   162       then Position.none else Lexicon.pos_of_token tok;
   163 
   163 
   164     fun trans a args =
   164     fun trans a args =
   165       (case trf a of
   165       (case trf a of
   166         NONE => Ast.mk_appl (Ast.Constant a) args
   166         NONE => Ast.mk_appl (Ast.Constant a) args
   167       | SOME f => f ctxt args);
   167       | SOME f => f ctxt args);