Skip to content

Commit 6543b61

Browse files
committed
better / more tests
1 parent 9738bb0 commit 6543b61

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

formatTest/unit_tests/expected_output/infix.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,3 +1202,5 @@ let x = a >< b;
12021202
let (=\>) = (a, b) => a + b;
12031203

12041204
let x = a =\> b;
1205+
1206+
let (=>>) = (a, b) => a + b;

formatTest/unit_tests/input/infix.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,3 +919,5 @@ let x = a >< b;
919919
let (=\>) = (a, b) => a + b;
920920

921921
let x = a =\> b;
922+
923+
let (=>>) = (a, b) => a + b;

src/reason-parser/reason_lexer.mll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ rule token = parse
611611
{ INFIXOP0(lexeme_operator lexbuf) }
612612
(* `=\>` is treated especially due to conflicts with the function declaration
613613
syntax *)
614-
| '\\'? '=' '\\'? '>' operator_chars*
614+
| '\\'? "=\\>"
615615
{ INFIXOP0(lexeme_operator lexbuf) }
616616
| '\\'? '@' operator_chars*
617617
{ INFIXOP1(lexeme_operator lexbuf) }

0 commit comments

Comments
 (0)