Skip to content

Commit

Permalink
test: heredoc and nowdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 27, 2019
1 parent 6e63a00 commit 628e1f0
Show file tree
Hide file tree
Showing 5 changed files with 943 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/ast.js
Expand Up @@ -323,18 +323,15 @@ AST.prototype.resolvePrecedence = function(result, parser) {
result = buffer;
}
}
} else if (
result.kind === "silent" &&
!result.expr.parenthesizedExpression
) {
if (result.expr.kind === 'assign') return result;
} else if (result.kind === "silent" && !result.expr.parenthesizedExpression) {
if (result.expr.kind === "assign") return result;
// overall least precedence
if (result.expr.right) {
buffer = result.expr;
result.expr = buffer.left;
buffer.left = result;
this.swapLocations(buffer, buffer.left, buffer.right, parser);
result = buffer;
result = buffer;
}
}
return result;
Expand Down

0 comments on commit 628e1f0

Please sign in to comment.