-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Elixir and Erlang/OTP versions
1.19.1
Operating system
any
Current behavior
:elixir_tokenizer.tokenize(~c"~~~1", 1, 1, [])
{:ok, 1, 5, [], [{:int, {1, 4, 1}, ~c"1"}, {:unary_op, {1, 1, nil}, :"~~~"}],
[]}
Compare with:
iex(11)> :elixir_tokenizer.tokenize(~c"^^^1", 1, 1, [])
{:ok, 1, 5,
[
{{1, 1},
~c"^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead"}
], [{:int, {1, 4, 1}, ~c"1"}, {:xor_op, {1, 1, nil}, :"^^^"}], []}
The code in
elixir/lib/elixir/src/elixir_tokenizer.erl
Line 907 in 1a2c0a2
| '~~~' -> |
~~~ is a unary_op3 and is not handled by handle_op
Expected behavior
Warning generated
Metadata
Metadata
Assignees
Labels
No labels