src/Pure/PIDE/document.ML
changeset 46910 3e068ef04b42
parent 46876 8f3bb485f628
child 46938 cda018294515
--- a/src/Pure/PIDE/document.ML	Tue Mar 13 20:04:24 2012 +0100
+++ b/src/Pure/PIDE/document.ML	Tue Mar 13 21:17:37 2012 +0100
@@ -273,9 +273,13 @@
 
 (* commands *)
 
-fun tokenize_command id text =
+fun parse_command id text =
   Position.setmp_thread_data (Position.id_only id)
-    (fn () => Thy_Syntax.parse_tokens (#1 (Outer_Syntax.get_syntax ())) (Position.id id) text) ();
+    (fn () =>
+      let
+        val toks = Thy_Syntax.parse_tokens (#1 (Outer_Syntax.get_syntax ())) (Position.id id) text;
+        val _ = Output.status (Markup.markup_only Isabelle_Markup.parsed);
+      in toks end) ();
 
 fun define_command (id: command_id) name text =
   map_state (fn (versions, commands, execution) =>
@@ -284,7 +288,7 @@
         (singleton o Future.forks)
           {name = "Document.define_command", group = SOME (Future.new_group NONE),
             deps = [], pri = ~1, interrupts = false}
-          (fn () => tokenize_command (print_id id) text);
+          (fn () => parse_command (print_id id) text);
       val commands' =
         Inttab.update_new (id, (name, future)) commands
           handle Inttab.DUP dup => err_dup "command" dup;