elixir-editors / elixir-editors/elixir-tmbundle

`@spec import()` considers import as `keyword.control.elixir`

Open
#173 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
262
Forks
64
PR merge metrics
No merged PRs in 30d

Description

Given this code:

```elixir
@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](https://user-images.githubusercontent.com/921194/53073356-661b5580-351a-11e9-85eb-b060f88bfb1e.png)

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.