Skip to content

Assertion compare incorrectly colored for binary pattern #15191

@LostKobrakai

Description

@LostKobrakai

Elixir and Erlang/OTP versions

Erlang/OTP 28 [erts-16.1] [source] [64-bit] [smp:14:14] [ds:14:14:10] [async-threads:1] [jit]

Elixir 1.19.1 (compiled with Erlang/OTP 28)

(also tried 1.20.0-rc.2)

Operating system

Mac OS

Current behavior

  test "problem" do
    assert %{a: <<"test", _::binary>>, b: 2} = %{a: "test3", b: 3}
  end

  test "fine" do
    assert %{a: "test" <> _, b: 2} = %{a: "test3", b: 3}
  end

yields the following

Image

Expected behavior

The binary pattern not highlighted in both cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions