src/Pure/Isar/outer_syntax.ML
changeset 58918 8d36bc5eaed3
parent 58908 58bedbc18915
child 58928 23d0ffd48006
--- a/src/Pure/Isar/outer_syntax.ML	Wed Nov 05 22:39:49 2014 +0100
+++ b/src/Pure/Isar/outer_syntax.ML	Thu Nov 06 11:44:41 2014 +0100
@@ -116,12 +116,11 @@
       (case try (Thy_Header.the_keyword thy) name of
         SOME spec =>
           if Option.map #1 spec = SOME (Keyword.kind_files_of kind) then ()
-          else error ("Inconsistent outer syntax keyword declaration " ^
-            command_name ^ Position.here pos)
+          else
+            error ("Inconsistent outer syntax keyword declaration " ^
+              command_name ^ Position.here pos)
       | NONE =>
-          if Context.theory_name thy = Context.PureN
-          then Keyword.define (name, SOME kind)
-          else error ("Undeclared outer syntax command " ^ command_name ^ Position.here pos));
+          error ("Undeclared outer syntax command " ^ command_name ^ Position.here pos));
     val _ = Context_Position.report_generic context pos (command_markup true (name, cmd));
   in
     Unsynchronized.change global_syntax (map_commands (fn commands =>