author | wenzelm |
Tue, 15 Jan 2002 18:43:51 +0100 | |
changeset 12768 | 8b69dcccaabc |
parent 12767 | 072e9d582db0 |
child 12769 | 0f70bfe510ee |
--- a/src/Pure/Isar/isar_syn.ML Tue Jan 15 17:54:31 2002 +0100 +++ b/src/Pure/Isar/isar_syn.ML Tue Jan 15 18:43:51 2002 +0100 @@ -293,7 +293,8 @@ val localeP = OuterSyntax.command "locale" "define named proof context" K.thy_decl - ((P.name --| P.$$$ "=") -- locale_val >> (Toplevel.theory o IsarThy.add_locale o P.triple2)); + (P.name -- (P.$$$ "=" |-- P.!!! locale_val || Scan.succeed (Locale.empty, [])) + >> (Toplevel.theory o IsarThy.add_locale o P.triple2));