Skip to content

Commit

Permalink
better / more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed May 28, 2018
1 parent 9738bb0 commit 6543b61
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 @@ -1202,3 +1202,5 @@ let x = 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 @@ -919,3 +919,5 @@ let x = 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 @@ -611,7 +611,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 6543b61

Please sign in to comment.