elixir-editors / elixir-editors/emacs-elixir

Require as function name should not appear as blue

Open
#452 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
454
Forks
93
PR merge metrics
No merged PRs in 30d

Description

Special reserved words can actually be used as function name as well.
For example with `require`.
![require_two_usages](https://user-images.githubusercontent.com/46368291/77470831-9d40f200-6e11-11ea-8a47-ebf0066b8193.png)
The first usage, `require Foo` shows that "require" is highlighted in blue. That's good.
The second usage, `require(fields, :title, &validate_title/1)`, is also displayed in blue. It should not. It is a normal function and should be displayed in white.

The same behaviour can be seen with function named `import`.

I'm happy to start working on a patch, but I'd need initial guidance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.