src/Pure/ProofGeneral/pgip_markup.ML
changeset 24192 4eccd4bb8b64
parent 23834 ad6ad61332fa
child 26548 41bbcaf3e481
--- a/src/Pure/ProofGeneral/pgip_markup.ML	Thu Aug 09 11:37:27 2007 +0200
+++ b/src/Pure/ProofGeneral/pgip_markup.ML	Thu Aug 09 11:39:29 2007 +0200
@@ -12,7 +12,7 @@
     Openblock     of { metavarid: string option, name: string option,
                        objtype: PgipTypes.objtype option }
   | Closeblock    of { }
-  | Opentheory    of { thyname: string, parentnames: string list , text: string}
+  | Opentheory    of { thyname: string option, parentnames: string list , text: string}
   | Theoryitem    of { name: string option, objtype: PgipTypes.objtype option, text: string }
   | Closetheory   of { text: string }
   | Opengoal      of { thmname: string option, text: string }
@@ -50,7 +50,7 @@
     Openblock     of { metavarid: string option, name: string option,
                        objtype: PgipTypes.objtype option }
   | Closeblock    of { }
-  | Opentheory    of { thyname: string, parentnames: string list, text: string}
+  | Opentheory    of { thyname: string option, parentnames: string list, text: string}
   | Theoryitem    of { name: string option, objtype: PgipTypes.objtype option, text: string }
   | Closetheory   of { text: string }
   | Opengoal      of { thmname: string option, text: string }
@@ -86,7 +86,7 @@
 
          | Opentheory vs  =>
            XML.Elem("opentheory",
-                    attr "thyname" (#thyname vs) @
+                    opt_attr "thyname" (#thyname vs) @
                     opt_attr "parentnames"
                              (case (#parentnames vs)
                                of [] => NONE