Simplify `opt_default`.

master
François Pottier 2018-10-22 18:15:51 +02:00 committed by François Pottier
parent 51e058374b
commit 6d50aa60ce
1 changed files with 3 additions and 3 deletions

View File

@ -1984,9 +1984,9 @@ pattern_var:
) { $1 }
;
opt_default:
/* empty */ { None }
| EQUAL seq_expr { Some $2 }
%inline opt_default:
preceded(EQUAL, seq_expr)?
{ $1 }
;
label_let_pattern:
x = label_var