elixir-editors / emacs-elixir

Emacs major mode for Elixir
448 stars 94 forks source link

Font lock issue with a more complex module var #473

Open mpanarin opened 3 years ago

mpanarin commented 3 years ago

Code snippet:

defmodule Foo do
  @bar ["cool", "strings"]
  @spam "this is formatted [#{
          @bar
          |> Enum.map(fn method -> "'#{method}'" end)
          |> Enum.join(", ")
        }]"

  def eggs() do
    IO.inspect("Doing whatever here")
  end
end

Font lock seems to get really confused with " in #{} Screenshot of highlighting:

image