1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Interpolated strings are expressions.

This commit is contained in:
Chris Lloyd 2010-04-04 16:59:44 +10:00
parent 2e744a1c1b
commit 19ed63129e
11 changed files with 87 additions and 77 deletions

View file

@ -37,7 +37,7 @@
}
}
if (is_option && !matched_rule) {
throw new Error("unrecognized option: " + arg);
throw new Error(("unrecognized option: " + arg));
}
if (!(is_option)) {
options.arguments.push(arg);
@ -51,7 +51,7 @@
var _a, _b, _c, _d, _e, _f, _g, i, let_part, lines, rule, spaces;
lines = ['Available options:'];
if (this.banner) {
lines.unshift("" + this.banner + "\n");
lines.unshift(("" + this.banner + "\n"));
}
_b = this.rules;
for (_a = 0, _c = _b.length; _a < _c; _a++) {
@ -65,7 +65,7 @@
return _d;
}).call(this).join('') : '';
let_part = rule.short_flag ? rule.short_flag + ', ' : ' ';
lines.push(" " + let_part + (rule.long_flag) + spaces + (rule.description));
lines.push((" " + let_part + (rule.long_flag) + spaces + (rule.description)));
}
return "\n" + (lines.join('\n')) + "\n";
};