--- 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;