elixir-lang/elixir

Invalid column position in metadata on not in operator

Closed this issue · 0 comments

Elixir and Erlang/OTP versions

Erlang/OTP 27 [erts-15.2.5] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.18.4 (compiled with Erlang/OTP 27)

Operating system

any

Current behavior

Code.string_to_quoted!("a not in b", unescape: false, token_metadata: true, literal_encoder: &{:ok, {:__block__, &2, [&1]}}, columns: true)
{:not, [line: 1, column: 3],
 [
   {:in, [line: 1, column: 3],
    [
      {:a, [line: 1, column: 1], nil},
      {:b, [line: 1, column: 10], nil}
    ]}
 ]}

Note that :in column is 3 - the position of not token

Expected behavior

Column position on :in node should be the position of in token (7).