src/Pure/Isar/outer_syntax.ML
changeset 8191 6483e7132a70
parent 8078 c6da7585f9d1
child 8209 4816ba139574
equal deleted inserted replaced
8190:626504b52668 8191:6483e7132a70
   401     val src = Source.of_list text;
   401     val src = Source.of_list text;
   402     val pos = Path.position path;
   402     val pos = Path.position path;
   403   in
   403   in
   404     Present.init_theory name;
   404     Present.init_theory name;
   405     Present.verbatim_source name (present_text text);
   405     Present.verbatim_source name (present_text text);
   406     if is_old_theory (src, pos) then ThySyn.load_thy name text
   406     if is_old_theory (src, pos) then (ThySyn.load_thy name text;
       
   407       Present.old_symbol_source name (present_text text))   (*note: text presented twice!*)
   407     else (Toplevel.excursion_error (parse_thy (src, pos));
   408     else (Toplevel.excursion_error (parse_thy (src, pos));
   408       Present.token_source name (present_toks text pos))
   409       Present.token_source name (present_toks text pos))
   409   end;
   410   end;
   410 
   411 
   411 in
   412 in