Skip to content

[FEATURE] Allow the last line of new structures to not end in a comma #18

@BigBadE

Description

@BigBadE

Describe Your Feature
Structures should be allowed to have the last value not end in a comma.
Currently, it must always end in a comma or an error is thrown.

Provide a Code Snippet Using Your Feature

struct Test {
    value: u64;
}

fn main() {
    let test = new Test {
        value: 0
    };
}

Additional Information
Look at how CodeEnd handles returning with a value and how Structure changes the state of code parsing.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Status

Done

Status

Easy

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions