summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.mly b/src/parser.mly
index ef56934e..8e5023c8 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -503,6 +503,8 @@ atomic_pat:
{ ploc (P_list([$2])) }
| SquareBarBar comma_pats BarBarSquare
{ ploc (P_list($2)) }
+ | atomic_pat ColonColon pat
+ { ploc (P_cons ($1, $3)) }
| Lparen pat Rparen
{ $2 }