src/Pure/Isar/outer_syntax.ML
changeset 72434 cc27cf7e51c6
parent 70134 e69f00f4b897
child 73098 8a20737e4ebf
--- a/src/Pure/Isar/outer_syntax.ML	Sat Oct 10 18:43:07 2020 +0000
+++ b/src/Pure/Isar/outer_syntax.ML	Sat Oct 10 18:43:09 2020 +0000
@@ -156,7 +156,7 @@
       Parse.opt_target -- parse_local
         >> (fn (target, f) => Toplevel.local_theory restricted target f) ||
       (if is_some restricted then Scan.fail
-       else parse_global >> Toplevel.begin_local_theory true)));
+       else parse_global >> Toplevel.begin_main_target true)));
 
 fun local_theory_command trans command_keyword comment parse =
   raw_command command_keyword comment