shithub: mc

Download patch

ref: e324d18f20b803549ce12df649e166fe27d26125
parent: f7f6e6aaaba6cda088689d4d1699cb15df5db410
author: Ori Bernstein <[email protected]>
date: Fri Dec 4 14:31:37 EST 2015

Fix code formatting.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -109,9 +109,6 @@
 %token<tok> Tgeneric /* var */
 %token<tok> Tcast    /* castto */
 
-%token<tok> Texport  /* export */
-%token<tok> Tprotect /* protect */
-
 %token<tok> Tgap     /* _ */
 %token<tok> Tellipsis/* ... */
 %token<tok> Tendln   /* ; or \n */
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -163,13 +163,35 @@
 		char *kw;
 		int tt;
 	} kwmap[] = {
-		{"$", Tidxlen}, {"$noret", Tattr}, {"_", Tgap}, {"break", Tbreak}, {"castto", Tcast},
-		{"const", Tconst}, {"continue", Tcontinue}, {"elif", Telif}, {"else", Telse},
-		{"export", Texport}, {"extern", Tattr}, {"false", Tboollit}, {"for", Tfor},
-		{"generic", Tgeneric}, {"goto", Tgoto}, {"if", Tif}, {"impl", Timpl}, {"in", Tin},
-		{"match", Tmatch}, {"pkg", Tpkg}, {"pkglocal", Tattr}, {"protect", Tprotect},
-		{"sizeof", Tsizeof}, {"struct", Tstruct}, {"trait", Ttrait}, {"true", Tboollit},
-		{"type", Ttype}, {"union", Tunion}, {"use", Tuse}, {"var", Tvar}, {"while", Twhile},
+		{"$", Tidxlen},
+		{"$noret", Tattr},
+		{"_", Tgap},
+		{"break", Tbreak},
+		{"castto", Tcast},
+		{"const", Tconst},
+		{"continue", Tcontinue},
+		{"elif", Telif},
+		{"else", Telse},
+		{"extern", Tattr},
+		{"false", Tboollit},
+		{"for", Tfor},
+		{"generic", Tgeneric},
+		{"goto", Tgoto},
+		{"if", Tif},
+		{"impl", Timpl},
+		{"in", Tin},
+		{"match", Tmatch},
+		{"pkg", Tpkg},
+		{"pkglocal", Tattr},
+		{"sizeof", Tsizeof},
+		{"struct", Tstruct},
+		{"trait", Ttrait},
+		{"true", Tboollit},
+		{"type", Ttype},
+		{"union", Tunion},
+		{"use", Tuse},
+		{"var", Tvar},
+		{"while", Twhile},
 	};
 
 	size_t min, max, mid;