diff -r 5e50a2b52809 -r d67dadd69d07 src/Pure/Pure.thy --- a/src/Pure/Pure.thy Mon Jan 27 20:29:02 2025 +0100 +++ b/src/Pure/Pure.thy Mon Jan 27 21:31:02 2025 +0100 @@ -1422,16 +1422,19 @@ ML \ local +val adhoc_overloading_args = + Parse.and_list1 ((Parse.const --| (\<^keyword>\\\ || \<^keyword>\==\)) -- Scan.repeat Parse.term); + val _ = Outer_Syntax.local_theory \<^command_keyword>\adhoc_overloading\ "add adhoc overloading for constants / fixed variables" - (Parse.and_list1 (Parse.const -- Scan.repeat Parse.term) + (adhoc_overloading_args >> Adhoc_Overloading.adhoc_overloading_cmd true); val _ = Outer_Syntax.local_theory \<^command_keyword>\no_adhoc_overloading\ "delete adhoc overloading for constants / fixed variables" - (Parse.and_list1 (Parse.const -- Scan.repeat Parse.term) + (adhoc_overloading_args >> Adhoc_Overloading.adhoc_overloading_cmd false); in end