Skip to content

Commit

Permalink
Re-disable !(
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 21, 2017
1 parent f2d8047 commit 5e28e85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 165 deletions.
5 changes: 2 additions & 3 deletions src/plugins/bangCall.js
Expand Up @@ -18,10 +18,9 @@ export default function(parser) {
);
};

pp.couldBeginSubscript = function() {
pp.couldBeginAdjacentBangSubscript = function() {
return (
this.match(tt.bracketL) ||
this.match(tt.parenL) ||
this.match(tt.dot) ||
this.match(tt.tilde) ||
this.match(tt.elvis) ||
Expand Down Expand Up @@ -62,7 +61,7 @@ export default function(parser) {
if (this.state.lastTokEnd === this.state.start) {
// If next token could initiate a subscript, treat as no-arg bang call with
// subscript.
if (this.couldBeginSubscript()) {
if (this.couldBeginAdjacentBangSubscript()) {
return this.finishNode(node, nodeType);
}

Expand Down
162 changes: 0 additions & 162 deletions test/fixtures/bang-call/subscripts/no-space-call/expected.json

This file was deleted.

3 changes: 3 additions & 0 deletions test/fixtures/bang-call/subscripts/no-space-call/options.json
@@ -0,0 +1,3 @@
{
"throws": "Whitespace required between `!` and first argument. (1:5)"
}

0 comments on commit 5e28e85

Please sign in to comment.