mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
Spacing only + and - and only in a row.
This commit is contained in:
@@ -1290,8 +1290,8 @@
|
||||
return new Existence(fst).compile(o) + (" ? " + ref + " : " + (this.second.compile(o, LVL_LIST)));
|
||||
};
|
||||
Op.prototype.compileUnary = function(o) {
|
||||
var _ref2, parts, space;
|
||||
space = (_ref2 = this.operator, __indexOf.call(this.PREFIX_OPERATORS, _ref2) >= 0) || this.first instanceof Op ? ' ' : '';
|
||||
var _ref2, _ref3, parts, space;
|
||||
space = (_ref2 = this.operator, __indexOf.call(this.PREFIX_OPERATORS, _ref2) >= 0) || this.first instanceof Op && this.first.operator === this.operator && ((_ref3 = this.operator) === '+' || _ref3 === '-') ? ' ' : '';
|
||||
parts = [this.operator, space, this.first.compile(o, LVL_OP)];
|
||||
return (this.flip ? parts.reverse() : parts).join('');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user