Skip to content

Commit f9fc39a

Browse files
committed
better / more tests
1 parent 8e8729a commit f9fc39a

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
@@ -1206,3 +1206,5 @@ let foo = (a, b) => a =- b;
12061206
let (=\>) = (a, b) => a + b;
12071207

12081208
let x = a =\> b;
1209+
1210+
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
@@ -923,3 +923,5 @@ let foo = (a, b) => a =- b;
923923
let (=\>) = (a, b) => a + b;
924924

925925
let x = a =\> b;
926+
927+
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
@@ -600,7 +600,7 @@ rule token = parse
600600
{ INFIXOP_WITH_EQUAL(lexeme_operator lexbuf) }
601601
(* `=\>` is treated especially due to conflicts with the function declaration
602602
syntax *)
603-
| '\\'? '=' '\\'? '>' operator_chars*
603+
| '\\'? "=\\>"
604604
{ INFIXOP0(lexeme_operator lexbuf) }
605605
| '\\'? '@' operator_chars*
606606
{ INFIXOP1(lexeme_operator lexbuf) }

0 commit comments

Comments
 (0)