src/Pure/Thy/thy_output.ML
changeset 27771 98499933a50f
parent 27755 f7cdde18aeb3
child 27781 5a82ee34e9fc
--- a/src/Pure/Thy/thy_output.ML	Thu Aug 07 13:45:07 2008 +0200
+++ b/src/Pure/Thy/thy_output.ML	Thu Aug 07 13:45:09 2008 +0200
@@ -149,14 +149,14 @@
   let
     fun expand (Antiquote.Text s) = s
       | expand (Antiquote.Antiq (x, _)) =
-          let val (opts, src) = Antiquote.scan_arguments lex antiq x in
+          let val (opts, src) = Antiquote.read_arguments lex antiq x in
             options opts (fn () => command src node) ();  (*preview errors!*)
             PrintMode.with_modes (! modes @ Latex.modes)
               (Output.no_warnings (options opts (fn () => command src node))) ()
           end
       | expand (Antiquote.Open _) = ""
       | expand (Antiquote.Close _) = "";
-    val ants = Antiquote.scan_antiquotes (str, pos);
+    val ants = Antiquote.read (str, pos);
   in
     if is_none node andalso exists Antiquote.is_antiq ants then
       error ("Unknown context -- cannot expand text antiquotations" ^ Position.str_of pos)