Skip to content

@spec import() considers import as keyword.control.elixir #173

Open
@unnawut

Description

@unnawut

Given this code:

  @spec import(Plug.Conn.t(), map()) :: Plug.Conn.t()
  def import(conn, attrs) do
    # implementation here
  end

The syntax highlighter treats the function name in @spec import as an import keyword.

image

Expects @spec import to be treated as a part of the function spec. As in the screenshot above, the text should be in white rather than red.

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