summaryrefslogtreecommitdiff
path: root/parsing/pcoq.ml4
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/pcoq.ml4')
-rw-r--r--parsing/pcoq.ml47
1 files changed, 5 insertions, 2 deletions
diff --git a/parsing/pcoq.ml4 b/parsing/pcoq.ml4
index d0a9c3d8..d2d81cd1 100644
--- a/parsing/pcoq.ml4
+++ b/parsing/pcoq.ml4
@@ -8,7 +8,7 @@
(*i camlp4use: "pa_extend.cmo pa_macro.cmo" i*)
-(*i $Id: pcoq.ml4 11784 2009-01-14 11:36:32Z herbelin $ i*)
+(*i $Id: pcoq.ml4 12055 2009-04-07 18:19:05Z herbelin $ i*)
open Pp
open Util
@@ -735,7 +735,10 @@ let is_binder_level from e =
let rec symbol_of_production assoc from forpat typ =
if is_binder_level from typ then
- Gramext.Snterml (Gram.Entry.obj Constr.operconstr,"200")
+ if forpat then
+ Gramext.Snterml (Gram.Entry.obj Constr.pattern,"200")
+ else
+ Gramext.Snterml (Gram.Entry.obj Constr.operconstr,"200")
else if is_self from typ then
Gramext.Sself
else