Skip to content

Require as function name should not appear as blue #452

Open
@nicobao

Description

@nicobao

Special reserved words can actually be used as function name as well.
For example with require.
require_two_usages
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.

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