[Swift-commit] r2972 - trunk/resources

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Jun 22 11:57:13 CDT 2009


Author: benc
Date: 2009-06-22 11:57:12 -0500 (Mon, 22 Jun 2009)
New Revision: 2972

Modified:
   trunk/resources/swiftscript.g
Log:
Fix whitespace in parser variable declaration rules.

Modified: trunk/resources/swiftscript.g
===================================================================
--- trunk/resources/swiftscript.g	2009-06-22 14:50:26 UTC (rev 2971)
+++ trunk/resources/swiftscript.g	2009-06-22 16:57:12 UTC (rev 2972)
@@ -193,15 +193,15 @@
         StringTemplate n=null;
         StringTemplate thisTypeTemplate=null;
         String thisType = (String) t.getAttribute("name");
-	StringTemplate variable=null;
-	StringTemplate m = null;
+        StringTemplate variable=null;
+        StringTemplate m = null;
     }
     :
      n=declarator
      (LBRACK RBRACK {thisType = thisType + "[]"; } )*
      {
-         thisTypeTemplate=template("type");
-         thisTypeTemplate.setAttribute("name", thisType);
+        thisTypeTemplate=template("type");
+        thisTypeTemplate.setAttribute("name", thisType);
         variable = template("variable");
         variable.setAttribute("name", n);
         variable.setAttribute("type", thisTypeTemplate);




More information about the Swift-commit mailing list