Skip to content

Commit ca24449

Browse files
committed
Update the D grammar
1 parent f34c0e2 commit ca24449

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
with:
5555
path: dmd
5656
repository: dlang/dmd
57-
ref: 83adb8aeab12ef7902eefae81223fdd300cfc1e0
57+
ref: 8c64740e6e1987357d1844e333fe64a04c227055
5858
persist-credentials: false
5959

6060
- name: Checkout JSONTestSuite

examples/d/grammard.ebnf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Based on grammar from dlang.org commit 2c3088b5b6c1f35dfb3a0b2a37d4a0fe891d4350
1+
// Based on grammar from dlang.org commit 8501a0e5faf73a4e211a21d61333bb0de40de965
22
33
import "grammardlex.ebnf";
44
SourceFile @start
@@ -374,8 +374,8 @@ FunctionLiteral @directUnwrap
374374
| <FunctionLiteralParen
375375
;
376376
FunctionLiteralNoParen @directUnwrap
377-
= "function" RefOrAutoRef? Type? ParameterWithAttributes? FunctionLiteralBody2
378-
| "delegate" RefOrAutoRef? Type? ParameterWithMemberAttributes? FunctionLiteralBody2
377+
= "function" RefOrAutoRef? PostfixType? ParameterWithAttributes? FunctionLiteralBody2
378+
| "delegate" RefOrAutoRef? PostfixType? ParameterWithMemberAttributes? FunctionLiteralBody2
379379
| RefOrAutoRef ParameterWithMemberAttributes FunctionLiteralBody2
380380
| <BlockStatement // <FunctionLiteralBody
381381
| Identifier "=>" @eager AssignExpression
@@ -1810,6 +1810,7 @@ TemplateMixinDeclaration
18101810
;
18111811
TemplateMixin
18121812
= AttributesNoPragmaEmpty "mixin" MixinTemplateName /* TemplateArguments? */ Identifier? ";"
1813+
| AttributesNoPragmaEmpty "mixin" Identifier "=" MixinTemplateName /* TemplateArguments? */ ";"
18131814
;
18141815
MixinTemplateName
18151816
= "." MixinQualifiedIdentifier

examples/d/grammardlex.ebnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Based on grammar from dlang.org commit 2c3088b5b6c1f35dfb3a0b2a37d4a0fe891d4350
1+
// Based on grammar from dlang.org commit 8501a0e5faf73a4e211a21d61333bb0de40de965
22
33
token ByteOrderMark
44
= "\uFEFF"

0 commit comments

Comments
 (0)