mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
expressions nested in expressions made for some indentation issues -- statements are now responsible for their own leading indentation
This commit is contained in:
parent
bfd7455db4
commit
f299972713
8 changed files with 102 additions and 78 deletions
|
@ -1,20 +1,24 @@
|
|||
(function(){
|
||||
var __a, __b, __c, __d, __e, __f, __g, __h, food, i, lunch, row;
|
||||
var __a, __b, __c, __d, __e, __f, __g, food, i, lunch, row;
|
||||
// Eat lunch.
|
||||
__a = ['toast', 'cheese', 'wine'];
|
||||
__d = [];
|
||||
for (__b=0, __c=__a.length; __b<__c; __b++) {
|
||||
food = __a[__b];
|
||||
__d[__b] = food.eat();
|
||||
__c = [];
|
||||
for (__b in __a) {
|
||||
if (__a.hasOwnProperty(__b)) {
|
||||
food = __a[__b];
|
||||
__d = food.eat();
|
||||
__c.push(__d);
|
||||
}
|
||||
}
|
||||
lunch = __d;
|
||||
lunch = __c;
|
||||
// Zebra-stripe a table.
|
||||
__e = table;
|
||||
__h = [];
|
||||
for (__f=0, __g=__e.length; __f<__g; __f++) {
|
||||
row = __e[__f];
|
||||
i = __f;
|
||||
__h[__f] = i % 2 === 0 ? highlight(row) : null;
|
||||
__f = [];
|
||||
for (i in __e) {
|
||||
if (__e.hasOwnProperty(i)) {
|
||||
row = __e[i];
|
||||
i % 2 === 0 ? highlight(row) : null;
|
||||
}
|
||||
}
|
||||
__h;
|
||||
__f;
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue