shithub: mc

Download patch

ref: 7b9bddde85faabb4660be739dbec0246a91636fc
parent: 23ab2cac2d97dd1aeec841dcaae36bdd66515f39
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Mar 1 17:19:21 EST 2017

Fix grammar mistakes.

	Missing quotes, unionbody, structbody.

--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -1948,7 +1948,7 @@
     toplev:     use | pkgdef | decl | traitdef | impldef | tydef
 
     /* packages */
-    use:        use ident | strlit
+    use:       "use" ident | strlit
     pkgdef:    "pkg" [ident] "=" pkgbody ";;"
     pkgbody:   (decl | attrs tydef | traitdef | impldef)*
 
@@ -1973,7 +1973,9 @@
     type:       structdef | uniondef | tupledef |
                 constructed | generic | "..."
     structdef:  "struct" structbody ";;"
+    structbody:	declcore*
     uniondef:   "union" unionbody ";;"
+    unionbody:	("`" ident [type])*
     tupledef:   "(" type ("," type)* ")"
     generic:    typaram ["::" traitlist]
     traitlist:  name | "(" name ("," name)