aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing/g_vernac.ml4
diff options
context:
space:
mode:
authorGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-05-06 16:33:56 +0000
committerGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-05-06 16:33:56 +0000
commit83b0822a9f6d5e35e9bfb1595a3466d7f4e3b12f (patch)
treed386c603f2036fc48f602b5f0867d3466f61f0b4 /parsing/g_vernac.ml4
parent7a39bd5650cc49c5c77788fb42fe2caaf35dfdac (diff)
Better parsing of typeclasses, any constr is allowed for ! bindings so
notations work and bug #1846 gets completely fixed. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10890 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing/g_vernac.ml4')
-rw-r--r--parsing/g_vernac.ml47
1 files changed, 3 insertions, 4 deletions
diff --git a/parsing/g_vernac.ml4 b/parsing/g_vernac.ml4
index 76646a4f9..ddaba47b0 100644
--- a/parsing/g_vernac.ml4
+++ b/parsing/g_vernac.ml4
@@ -275,10 +275,9 @@ GEXTEND Gram
| None ->
(* If there is only one argument, it is the recursive one,
otherwise, we search the recursive index later *)
- if List.length names = 1 then
- let (loc, na) = List.hd names in
- Some (loc, Nameops.out_name na)
- else None
+ match names with
+ | [(loc, Name na)] -> Some (loc, na)
+ | _ -> None
in
((id,(ni,snd annot),bl,ty,def),ntn) ] ]
;