report markup;
authorwenzelm
Wed, 06 Aug 2008 00:10:22 +0200
changeset 27751 22c32eb18c23
parent 27750 7f5fb39c6362
child 27752 ea7d573e565f
report markup;
src/Pure/Isar/attrib.ML
src/Pure/Isar/method.ML
--- a/src/Pure/Isar/attrib.ML	Wed Aug 06 00:10:18 2008 +0200
+++ b/src/Pure/Isar/attrib.ML	Wed Aug 06 00:10:22 2008 +0200
@@ -99,7 +99,7 @@
       let val ((name, _), pos) = Args.dest_src src in
         (case Symtab.lookup attrs name of
           NONE => error ("Unknown attribute: " ^ quote name ^ Position.str_of pos)
-        | SOME ((att, _), _) => att src)
+        | SOME ((att, _), _) => (Position.report (Markup.attribute name) pos; att src))
       end;
   in attr end;
 
--- a/src/Pure/Isar/method.ML	Wed Aug 06 00:10:18 2008 +0200
+++ b/src/Pure/Isar/method.ML	Wed Aug 06 00:10:22 2008 +0200
@@ -437,7 +437,7 @@
       let val ((name, _), pos) = Args.dest_src src in
         (case Symtab.lookup meths name of
           NONE => error ("Unknown proof method: " ^ quote name ^ Position.str_of pos)
-        | SOME ((mth, _), _) => mth src)
+        | SOME ((mth, _), _) => (Position.report (Markup.method name) pos; mth src))
       end;
   in meth end;