clarified rail syntax;
authorwenzelm
Mon, 06 Apr 2015 17:20:10 +0200
changeset 59937 6eccb133d4e6
parent 59936 b8ffc3dc9e24
child 59938 f84b93187ab6
clarified rail syntax;
src/Doc/Isar_Ref/Document_Preparation.thy
src/Pure/Tools/rail.ML
--- a/src/Doc/Isar_Ref/Document_Preparation.thy	Mon Apr 06 17:06:48 2015 +0200
+++ b/src/Doc/Isar_Ref/Document_Preparation.thy	Mon Apr 06 17:20:10 2015 +0200
@@ -471,7 +471,7 @@
   \end{matharray}
 
   @{rail \<open>
-    'rail' (@{syntax string} | @{syntax cartouche})
+    'rail' @{syntax text}
   \<close>}
 
   The @{antiquotation rail} antiquotation allows to include syntax
--- a/src/Pure/Tools/rail.ML	Mon Apr 06 17:06:48 2015 +0200
+++ b/src/Pure/Tools/rail.ML	Mon Apr 06 17:20:10 2015 +0200
@@ -363,8 +363,7 @@
 in
 
 val _ = Theory.setup
-  (Thy_Output.antiquotation @{binding rail}
-    (Scan.lift (Parse.input (Parse.string || Parse.cartouche)))
+  (Thy_Output.antiquotation @{binding rail} (Scan.lift Args.text_input)
     (fn {state, context, ...} => output_rules state o read context));
 
 end;