diff -r eed6efba4e3f -r d4191bf88529 src/HOL/BNF/Tools/bnf_fp_def_sugar.ML --- a/src/HOL/BNF/Tools/bnf_fp_def_sugar.ML Wed Sep 11 23:55:47 2013 +0200 +++ b/src/HOL/BNF/Tools/bnf_fp_def_sugar.ML Thu Sep 12 00:07:46 2013 +0200 @@ -1538,7 +1538,7 @@ (Parse.typ >> pair Binding.empty); val parse_defaults = - @{keyword "("} |-- @{keyword "defaults"} |-- Scan.repeat parse_bound_term --| @{keyword ")"}; + @{keyword "("} |-- Parse.reserved "defaults" |-- Scan.repeat parse_bound_term --| @{keyword ")"}; val parse_type_arg_constrained = Parse.type_ident -- Scan.option (@{keyword "::"} |-- Parse.!!! Parse.sort); @@ -1554,8 +1554,6 @@ val no_map_rel = (Binding.empty, Binding.empty); -(* "map" and "rel" are purposedly not registered as keywords, because they are short and nice names - that we don't want them to be highlighted everywhere. *) fun extract_map_rel ("map", b) = apfst (K b) | extract_map_rel ("rel", b) = apsnd (K b) | extract_map_rel (s, _) = error ("Unknown label " ^ quote s ^ " (expected \"map\" or \"rel\")");