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

Fix multi-array parsing #479

Closed
etienne02 opened this issue Jan 12, 2023 · 1 comment
Closed

Fix multi-array parsing #479

etienne02 opened this issue Jan 12, 2023 · 1 comment

Comments

@etienne02
Copy link

etienne02 commented Jan 12, 2023

Currently the parser does not follow the specs for multi-dimensional array (https://dlang.org/spec/grammar.html#ArrayLiteral)
Example that should be parsed correctly:

private void failure()
{
    static struct A
    {
        int a, b, c;
    }
    A [2][2] tests = [
        [ {1, 2, 3}, {}],
        [ {1}, ]
    ];
}

See intellij-dlanguage/intellij-dlanguage#821

@WebFreak001
Copy link
Member

seems to be parsed correctly, can't reproduce the issue

AST looks correct, DCD gives proper auto-completion

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

2 participants