src/Pure/Isar/attrib.ML
changeset 69187 d8849cfad60f
parent 68823 5e7b1ae10eb8
child 69216 1a52baa70aed
--- a/src/Pure/Isar/attrib.ML	Thu Oct 25 17:08:04 2018 +0200
+++ b/src/Pure/Isar/attrib.ML	Thu Oct 25 21:29:08 2018 +0200
@@ -214,10 +214,11 @@
 fun setup binding scan comment = define_global binding (attribute_syntax scan) comment #> snd;
 fun local_setup binding scan comment = define binding (attribute_syntax scan) comment #> snd;
 
-fun attribute_setup name source comment =
+fun attribute_setup (name, pos) source comment =
   ML_Lex.read_source source
-  |> ML_Context.expression (Input.range_of source) "parser" "Thm.attribute context_parser"
-    ("Context.map_proof (Attrib.local_setup " ^ ML_Syntax.atomic (ML_Syntax.make_binding name) ^
+  |> ML_Context.expression ("parser", pos) "Thm.attribute context_parser"
+    ("Context.map_proof (Attrib.local_setup " ^
+      ML_Syntax.atomic (ML_Syntax.make_binding (name, pos)) ^
       " parser " ^ ML_Syntax.print_string comment ^ ")")
   |> Context.proof_map;