Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
unnawut opened this issue Feb 20, 2019 · 0 comments
Open

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

unnawut opened this issue Feb 20, 2019 · 0 comments

Comments

@unnawut
Copy link

unnawut commented Feb 20, 2019

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.

@unnawut unnawut closed this as completed Feb 20, 2019
@unnawut unnawut reopened this Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant