Skip to content

Commit 9556abe

Browse files
committed
fix dangling token selection
1 parent 238b18c commit 9556abe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/syntax/src/res_core.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5935,15 +5935,15 @@ and parse_polymorphic_variant_type_spec_hash ~attrs ~full p :
59355935
let ident, loc = parse_hash_ident ~start_pos p in
59365936
let rec loop p =
59375937
match p.Parser.token with
5938-
| Band when full ->
5938+
| Ampersand when full ->
59395939
Parser.next p;
59405940
let row_field = parse_polymorphic_variant_type_args p in
59415941
row_field :: loop p
59425942
| _ -> []
59435943
in
59445944
let first_tuple, tag_contains_a_constant_empty_constructor =
59455945
match p.Parser.token with
5946-
| Band when full ->
5946+
| Ampersand when full ->
59475947
Parser.next p;
59485948
([parse_polymorphic_variant_type_args p], true)
59495949
| Lparen -> ([parse_polymorphic_variant_type_args p], false)

compiler/syntax/src/res_scanner.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ let rec scan scanner =
855855
Token.Land
856856
| _ ->
857857
next scanner;
858-
Token.Band)
858+
Token.Ampersand)
859859
| '^' -> (
860860
match (peek scanner, peek2 scanner) with
861861
| '^', '^' ->

0 commit comments

Comments
 (0)