src/Pure/Thy/thy_output.ML
changeset 27781 5a82ee34e9fc
parent 27771 98499933a50f
child 27809 a1e409db516b
equal deleted inserted replaced
27780:7d0910f662f7 27781:5a82ee34e9fc
   146 val modes = ref ([]: string list);
   146 val modes = ref ([]: string list);
   147 
   147 
   148 fun eval_antiquote lex node (str, pos) =
   148 fun eval_antiquote lex node (str, pos) =
   149   let
   149   let
   150     fun expand (Antiquote.Text s) = s
   150     fun expand (Antiquote.Text s) = s
   151       | expand (Antiquote.Antiq (x, _)) =
   151       | expand (Antiquote.Antiq x) =
   152           let val (opts, src) = Antiquote.read_arguments lex antiq x in
   152           let val (opts, src) = Antiquote.read_antiq lex antiq x in
   153             options opts (fn () => command src node) ();  (*preview errors!*)
   153             options opts (fn () => command src node) ();  (*preview errors!*)
   154             PrintMode.with_modes (! modes @ Latex.modes)
   154             PrintMode.with_modes (! modes @ Latex.modes)
   155               (Output.no_warnings (options opts (fn () => command src node))) ()
   155               (Output.no_warnings (options opts (fn () => command src node))) ()
   156           end
   156           end
   157       | expand (Antiquote.Open _) = ""
   157       | expand (Antiquote.Open _) = ""