tuned;
authorwenzelm
Wed, 29 Aug 2018 13:08:36 +0200
changeset 68843 d99d03d7755e
parent 68842 72c4452f4b94
child 68844 63c9c6ceb7a3
tuned;
src/Pure/Thy/thy_element.ML
--- a/src/Pure/Thy/thy_element.ML	Wed Aug 29 12:58:23 2018 +0200
+++ b/src/Pure/Thy/thy_element.ML	Wed Aug 29 13:08:36 2018 +0200
@@ -59,14 +59,14 @@
             pred keywords name
           | _ => other);
 
-    fun proof_element x =
+    fun theory_element x =
+      (category Keyword.is_theory_goal false -- proof_rest >> element) x
+    and proof_element x =
       (category Keyword.is_proof_goal false -- proof_rest >> element ||
         category Keyword.is_proof_body true >> atom) x
     and proof_rest x = (Scan.repeat proof_element -- category Keyword.is_qed false) x;
-  in
-    category Keyword.is_theory_goal false -- proof_rest >> element ||
-    Scan.one not_eof >> atom
-  end;
+
+  in theory_element || Scan.one not_eof >> atom end;
 
 in