Skip to content

Commit

Permalink
better / more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Oct 11, 2018
1 parent 1d5e115 commit 9d25a58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion formatTest/unit_tests/expected_output/infix.re
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,6 @@ let (=-) = (a, b) => a + b;

let foo = (a, b) => a =- b;

<<<<<<< HEAD
let (=><) = (a, b) => a + b;
let x = a =>< b;

Expand Down Expand Up @@ -1317,3 +1316,5 @@ let derefInsideArray = [|a^|];
let (=\>) = (a, b) => a + b;

let x = a =\> b;

let (=>>) = (a, b) => a + b;
2 changes: 1 addition & 1 deletion formatTest/unit_tests/input/infix.re
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,6 @@ let (=-) = (a, b) => a + b;

let foo = (a, b) => a =- b;

<<<<<<< HEAD
let (=><) = (a, b) => a + b;
let x = a =>< b;

Expand Down Expand Up @@ -1011,3 +1010,4 @@ let (=\>) = (a, b) => a + b;

let x = a =\> b;

let (=>>) = (a, b) => a + b;
2 changes: 1 addition & 1 deletion src/reason-parser/reason_lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ rule token = parse
{ INFIXOP0(lexeme_operator lexbuf) }
(* `=\>` is treated especially due to conflicts with the function declaration
syntax *)
| '\\'? '=' '\\'? '>' operator_chars*
| '\\'? "=\\>"
{ INFIXOP0(lexeme_operator lexbuf) }
| '\\'? '@' operator_chars*
{ INFIXOP1(lexeme_operator lexbuf) }
Expand Down

0 comments on commit 9d25a58

Please sign in to comment.