Skip to content

Fix #523, support align(default)#532

Open
0-v-0 wants to merge 4 commits intodlang-community:masterfrom
0-v-0:master
Open

Fix #523, support align(default)#532
0-v-0 wants to merge 4 commits intodlang-community:masterfrom
0-v-0:master

Conversation

@0-v-0
Copy link
Copy Markdown
Contributor

@0-v-0 0-v-0 commented Apr 8, 2026

No description provided.

mixin(tokenCheck!"(");
mixin(parseNodeQ!("node.assignExpression", "AssignExpression"));
if (currentIs(tok!"default"))
advance();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is implicitly stored in the AST now (due to it having the tokens slice), but it's missing a boolean getter (e.g. bool isExplicitDefault()) inside AlignAttribute

The formatter.d code also needs to be adjusted to re-emit it in case it was explicit default.

0-v-0 and others added 2 commits April 11, 2026 19:16
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
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

Successfully merging this pull request may close these issues.

2 participants