[Swift-commit] r6011 - trunk/resources

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:15:21 CST 2012


Author: hategan
Date: 2012-11-09 23:15:21 -0600 (Fri, 09 Nov 2012)
New Revision: 6011

Modified:
   trunk/resources/Karajan.stg
Log:
annotate foreach with the names of the k and v variables

Modified: trunk/resources/Karajan.stg
===================================================================
--- trunk/resources/Karajan.stg	2012-11-08 22:52:29 UTC (rev 6010)
+++ trunk/resources/Karajan.stg	2012-11-10 05:15:21 UTC (rev 6011)
@@ -226,7 +226,8 @@
 >>
 
 foreach(var,in,indexVar,indexVarType,declarations,statements,line,selfClose,cleanups,trace) ::= <<
-<vdl:tparallelFor name="\$"$if(selfClose)$ selfClose="$selfClose$"$endif$ $if(trace)$ _traceline="$line$"$endif$>
+<vdl:tparallelFor name="\$"$if(selfClose)$ selfClose="$selfClose$"$endif$ $if(trace)$ _traceline="$line$"$endif$ 
+	$if(indexVar)$_kvar="$indexVar$"$endif$ _vvar="$var$">
   <getarrayiterator>$in$</getarrayiterator>
   <set names="\$\$, $var$">
     <each items="{\$}"/>




More information about the Swift-commit mailing list