Skip to content

Commit

Permalink
Merge branch 'prerelease/2.3.0' of https://github.com/wcjohnson/babyl…
Browse files Browse the repository at this point in the history
…on-lightscript into prerelease/2.3.0
  • Loading branch information
wcjohnson committed Sep 5, 2017
2 parents e61679c + 7c5e20e commit 21a26a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/plugins/bangCall.js
Expand Up @@ -30,7 +30,8 @@ export default function(parser) {

// ASI, ignore impossible args
if (
(this.isLineBreak() && this.state.indentLevel <= bangIndentLevel) || !this.state.type.startsExpr
(this.isLineBreak() && this.state.indentLevel <= bangIndentLevel) ||
!this.state.type.startsExpr
) {
return this.finishNode(node, nodeType);
}
Expand Down Expand Up @@ -90,7 +91,7 @@ export default function(parser) {
return null;
};

// When subscripting, a newline always breaks up bang args.
// Subscripts to a bang call must appear at the arg indent level
pp.shouldUnwindBangSubscript = function() {
return this.isLineBreak() && (this.state.indentLevel <= this.state.bangUnwindLevel);
};
Expand Down
5 changes: 0 additions & 5 deletions src/plugins/tildeCall.js
Expand Up @@ -31,9 +31,4 @@ export default function(parser) {
return this.finishNode(node, "TildeCallExpression");
}
};

// When subscripting, a newline always breaks up bang args.
pp.shouldUnwindBangSubscript = function() {
return this.isLineBreak() && (this.state.indentLevel <= this.state.bangUnwindLevel);
};
}

0 comments on commit 21a26a8

Please sign in to comment.