src/Pure/Thy/thy_output.ML
changeset 58866 f81e11391562
parent 58864 505a8150368a
child 58903 38c72f5f6c2e
--- a/src/Pure/Thy/thy_output.ML	Sat Nov 01 19:47:48 2014 +0100
+++ b/src/Pure/Thy/thy_output.ML	Sat Nov 01 20:19:07 2014 +0100
@@ -615,12 +615,10 @@
 
 (* embedded lemma *)
 
-val _ = Keyword.define ("by", NONE);  (*overlap with command category*)
-
 val _ = Theory.setup
   (antiquotation @{binding lemma}
     (Scan.lift (Scan.ahead Parse.not_eof) -- Args.prop --
-      Scan.lift (Parse.position (Args.$$$ "by") -- Method.parse -- Scan.option Method.parse))
+      Scan.lift (Parse.position (Parse.reserved "by") -- Method.parse -- Scan.option Method.parse))
     (fn {source, context = ctxt, ...} => fn ((prop_token, prop), (((_, by_pos), m1), m2)) =>
       let
         val prop_src = Token.src (Token.name_of_src source) [prop_token];