aboutsummaryrefslogtreecommitdiffhomepage
path: root/translate/ppvernacnew.ml
diff options
context:
space:
mode:
Diffstat (limited to 'translate/ppvernacnew.ml')
-rw-r--r--translate/ppvernacnew.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/translate/ppvernacnew.ml b/translate/ppvernacnew.ml
index 9c80e0afe..91095b37b 100644
--- a/translate/ppvernacnew.ml
+++ b/translate/ppvernacnew.ml
@@ -1063,6 +1063,10 @@ and pr_extend s cl =
if Options.do_translate() & n > 2 & String.sub s (n-2) 2 = "V7"
then String.sub s 0 (n-2) ^ "V8"
else s in
+ (* "Hint Rewrite in using" changes the order of its args in v8 !! *)
+ let cl = match s, cl with
+ | "HintRewriteV8", [a;b;c;d] -> [a;b;d;c]
+ | _ -> cl in
let rls = List.assoc s (Egrammar.get_extend_vernac_grammars()) in
let (hd,rl) = match_vernac_rule (List.map Genarg.genarg_tag cl) rls in
let (pp,_) =