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

Make semicolon (;) optional for the last struct field declaration #393

Closed
anton-trunov opened this issue Jun 10, 2024 · 0 comments · Fixed by #395
Closed

Make semicolon (;) optional for the last struct field declaration #393

anton-trunov opened this issue Jun 10, 2024 · 0 comments · Fixed by #395
Assignees
Labels
feature: structs Structures and messages (struct Foo, message Foo) kind: language feature Intent to add a language feature scope: parser Implementation of parser (src/grammar)
Milestone

Comments

@anton-trunov
Copy link
Member

The following should be allowed:

struct Foo { a: Int }

or

struct Bar { a: Int; b: String }

(currently one has to add ; after each struct field declaration)

@anton-trunov anton-trunov added kind: language feature Intent to add a language feature scope: parser Implementation of parser (src/grammar) labels Jun 10, 2024
@anton-trunov anton-trunov added this to the v1.4.0 milestone Jun 10, 2024
@anton-trunov anton-trunov self-assigned this Jun 10, 2024
@anton-trunov anton-trunov changed the title Make ; optional for the last struct field declaration Make semicolon (;) optional for the last struct field declaration Jun 16, 2024
@anton-trunov anton-trunov added the feature: structs Structures and messages (struct Foo, message Foo) label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: structs Structures and messages (struct Foo, message Foo) kind: language feature Intent to add a language feature scope: parser Implementation of parser (src/grammar)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants