File tree 4 files changed +13
-6
lines changed
4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 54
54
with :
55
55
path : dmd
56
56
repository : dlang/dmd
57
- ref : 8c64740e6e1987357d1844e333fe64a04c227055
57
+ ref : fb07d990466f185c2adb19d320627c2723d3978a
58
58
persist-credentials : false
59
59
60
60
- name : Checkout JSONTestSuite
Original file line number Diff line number Diff line change 1
- // Based on grammar from dlang.org commit 8501a0e5faf73a4e211a21d61333bb0de40de965
1
+ // Based on grammar from dlang.org commit d74f36300c42568a6c6b22cab645184e223bfa73
2
2
3
3
import "grammardlex.ebnf" ;
4
4
SourceFile @start
@@ -304,6 +304,7 @@ PrimaryExpression @directUnwrap
304
304
| <TypeidExpression
305
305
| <IsExpression
306
306
| <SpecialKeyword
307
+ | <RvalueExpression
307
308
| <TraitsExpression
308
309
| <Vector
309
310
| <PrimaryExpressionParen
@@ -460,6 +461,9 @@ TypeSpecialization
460
461
| " module"
461
462
| " package"
462
463
;
464
+ RvalueExpression
465
+ = " __rvalue" " (" AssignExpression " )"
466
+ ;
463
467
SpecialKeyword
464
468
= " __FILE__"
465
469
| " __FILE_FULL_PATH__"
Original file line number Diff line number Diff line change 1
- // Based on grammar from dlang.org commit 8501a0e5faf73a4e211a21d61333bb0de40de965
1
+ // Based on grammar from dlang.org commit d74f36300c42568a6c6b22cab645184e223bfa73
2
2
3
3
token ByteOrderMark
4
4
= " \uFEFF"
@@ -586,14 +586,15 @@ Keyword
586
586
| " with"
587
587
| " __FILE__"
588
588
| " __FILE_FULL_PATH__"
589
- | " __MODULE__"
590
- | " __LINE__"
591
589
| " __FUNCTION__"
590
+ | " __LINE__"
591
+ | " __MODULE__"
592
592
| " __PRETTY_FUNCTION__"
593
593
| " __gshared"
594
+ | " __parameters"
595
+ | " __rvalue"
594
596
| " __traits"
595
597
| " __vector"
596
- | " __parameters"
597
598
;
598
599
token SpecialTokenSequence @ignoreToken
599
600
= " #" " " ? " line" WS ? IntegerLiteral WS ? Filespec ? WS ? EndOfLine
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ immutable string[] syntaxErrorExceptions = [
209
209
" expected as third argument of" ,
210
210
" at least one argument expected" ,
211
211
" `string` expected for pragma mangle argument, not" ,
212
+ " bitfield symbol expected" ,
212
213
];
213
214
214
215
immutable string [] syntaxErrorExtra = [
@@ -245,6 +246,7 @@ immutable string[] syntaxErrorExtra = [
245
246
" token is not allowed in postfix position" ,
246
247
" String postfixes on interpolated expression sequences are not allowed." ,
247
248
" use `{ }` for an empty statement, not `;`" ,
249
+ " must have at least one member" ,
248
250
];
249
251
250
252
size_t [syntaxErrorExceptions.length] syntaxErrorExceptionsUsed;
You can’t perform that action at this time.
0 commit comments