about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-07-31 21:56:52 +0200
committerAleksey Kladov <aleksey.kladov@gmail.com>2020-07-31 21:56:52 +0200
commit675e86becfab2615528152487db49bce1b43bd60 (patch)
treeaa243eda801f82d267ffa7317a10e064fe43606c
parent1914d0aa7b5518c743e7403da6d7eea3fe28e955 (diff)
downloadrust-675e86becfab2615528152487db49bce1b43bd60.tar.gz
rust-675e86becfab2615528152487db49bce1b43bd60.zip
Section headers
-rw-r--r--xtask/src/codegen/rust.ungram20
1 files changed, 20 insertions, 0 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 02f5aa73202..b14801f2453 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -1,3 +1,7 @@
+//*************************//
+// Names, Paths and Macros //
+//*************************//
+
 Name =
   'ident'
 
@@ -50,6 +54,10 @@ MacroStmts =
   statements:Stmt*
   Expr?
 
+//*************************//
+//          Items          //
+//*************************//
+
 SourceFile =
   'shebang'?
   Attr*
@@ -245,6 +253,10 @@ Visibility =
 Attr =
   '#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
 
+//****************************//
+// Statements and Expressions //
+//****************************//
+
 Stmt =
   ExprStmt
 | Item
@@ -434,6 +446,10 @@ AwaitExpr =
 BoxExpr =
   Attr* 'box' Expr
 
+//*************************//
+//          Types          //
+//*************************//
+
 Type =
   ArrayType
 | DynTraitType
@@ -495,6 +511,10 @@ TypeBound =
   'lifetime'
 | '?'? Type
 
+//************************//
+//        Patterns        //
+//************************//
+
 Pat =
   IdentPat
 | BoxPat