Skip to content

Commit 675e86b

Browse files
committed
Section headers
1 parent 1914d0a commit 675e86b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//*************************//
2+
// Names, Paths and Macros //
3+
//*************************//
4+
15
Name =
26
'ident'
37

@@ -50,6 +54,10 @@ MacroStmts =
5054
statements:Stmt*
5155
Expr?
5256

57+
//*************************//
58+
// Items //
59+
//*************************//
60+
5361
SourceFile =
5462
'shebang'?
5563
Attr*
@@ -245,6 +253,10 @@ Visibility =
245253
Attr =
246254
'#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
247255

256+
//****************************//
257+
// Statements and Expressions //
258+
//****************************//
259+
248260
Stmt =
249261
ExprStmt
250262
| Item
@@ -434,6 +446,10 @@ AwaitExpr =
434446
BoxExpr =
435447
Attr* 'box' Expr
436448

449+
//*************************//
450+
// Types //
451+
//*************************//
452+
437453
Type =
438454
ArrayType
439455
| DynTraitType
@@ -495,6 +511,10 @@ TypeBound =
495511
'lifetime'
496512
| '?'? Type
497513

514+
//************************//
515+
// Patterns //
516+
//************************//
517+
498518
Pat =
499519
IdentPat
500520
| BoxPat

0 commit comments

Comments
 (0)