Skip to content

Variables defined via @enum not recognized #1014

Open
@jlbosse

Description

@jlbosse

Currently, variables that are defined via @enum are marked as Missing Reference.

Current behaviour:

@enum MyEnum A=0 B=1 C=2 D=3     ■■■■ Missing reference: D
enumarray = [A, B, B, A]     ■■■■ Missing reference: A

Desired behaviour:

@enum MyEnum A=0 B=1 C=2 D=3
enumarray = [A, B, B, A]

and ideally autocompletion etc also work for MyEnum.

My setup
I am using LanguageServer.jl v4.2 with the nvim v0.6.0 and the nvim-lsp plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions