Skip to content

Font lock issue with a more complex module var #473

Open
@mpanarin

Description

@mpanarin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions