Skip to content

Commit

Permalink
use tyvar_name_or_underscore more
Browse files Browse the repository at this point in the history
  • Loading branch information
alanechang committed Nov 27, 2023
1 parent 0055c97 commit 114e9f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vendor/parser-extended/parser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -3861,10 +3861,8 @@ atomic_type:
{ Ptyp_variant($3, Closed, Some $5) }
| extension
{ Ptyp_extension $1 }
| LPAREN QUOTE name=mkrhs(ident {Some $1}) COLON layout=layout_annotation RPAREN
{ Ptyp_var (name, Some layout) }
| LPAREN mkrhs(UNDERSCORE {None}) COLON layout=layout_annotation RPAREN
{ Ptyp_var ($2, Some layout) }
| LPAREN var=mkrhs(tyvar_name_or_underscore) COLON layout=layout_annotation RPAREN
{ Ptyp_var (var, Some layout) }

)
{ $1 } /* end mktyp group */
Expand Down

0 comments on commit 114e9f5

Please sign in to comment.