Skip to content

Commit dc9803d

Browse files
author
José Valim
committed
Remove inlist and inbits from keywords list
1 parent 4e5c851 commit dc9803d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/elixir/lib/macro.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defmodule Macro do
1616
:&&, :||, :<>, :++, :--, :\\, :::, :<-, :.., :|>, :=~,
1717
:<, :>, :->,
1818
:+, :-, :*, :/, :=, :|, :.,
19-
:and, :or, :xor, :when, :in, :inlist, :inbits,
19+
:and, :or, :xor, :when, :in,
2020
:<<<, :>>>, :|||, :&&&, :^^^, :~~~]
2121

2222
@doc false
@@ -30,7 +30,7 @@ defmodule Macro do
3030
@spec binary_op_props(atom) :: {:left | :right, precedence :: integer}
3131
defp binary_op_props(o) do
3232
case o do
33-
o when o in [:<-, :inlist, :inbits, :\\, :::] -> {:left, 40}
33+
o when o in [:<-, :\\, :::] -> {:left, 40}
3434
:| -> {:right, 50}
3535
:when -> {:right, 70}
3636
:= -> {:right, 80}

lib/elixir/src/elixir_parser.yrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Expect 2.
4545
Left 5 do.
4646
Right 10 stab_op_eol. %% ->
4747
Left 20 ','.
48-
Left 40 in_match_op_eol. %% <-, inlist, inbits, \\ (allowed in matches along =)
48+
Left 40 in_match_op_eol. %% <-, \\ (allowed in matches along =)
4949
Right 50 when_op_eol. %% when
5050
Right 60 type_op_eol. %% ::
5151
Right 70 pipe_op_eol. %% |

lib/elixir/src/elixir_tokenizer.erl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,8 +929,6 @@ keyword('or') -> or_op;
929929
keyword('xor') -> or_op;
930930
keyword('when') -> when_op;
931931
keyword('in') -> in_op;
932-
keyword('inlist') -> in_match_op;
933-
keyword('inbits') -> in_match_op;
934932

935933
% Block keywords
936934
keyword('after') -> block;

0 commit comments

Comments
 (0)