Skip to content

Commit

Permalink
better / more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jun 3, 2018
1 parent 8e8729a commit f9fc39a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions formatTest/unit_tests/expected_output/infix.re
Original file line number Diff line number Diff line change
Expand Up @@ -1206,3 +1206,5 @@ let foo = (a, b) => a =- b;
let (=\>) = (a, b) => a + b;

let x = a =\> b;

let (=>>) = (a, b) => a + b;
2 changes: 2 additions & 0 deletions formatTest/unit_tests/input/infix.re
Original file line number Diff line number Diff line change
Expand Up @@ -923,3 +923,5 @@ let foo = (a, b) => a =- b;
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 @@ -600,7 +600,7 @@ rule token = parse
{ INFIXOP_WITH_EQUAL(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 f9fc39a

Please sign in to comment.