From 2ace0fa8dc81839afb6152c3d8888020b6c108c5 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 27 Aug 2013 12:52:02 +0200 Subject: [PATCH] Further refine parseExprList indentation heuristic Closes marijnh/tern#221 --- acorn_loose.js | 1 + 1 file changed, 1 insertion(+) diff --git a/acorn_loose.js b/acorn_loose.js index cf73345e28..bdd634d9b0 100644 --- a/acorn_loose.js +++ b/acorn_loose.js @@ -752,6 +752,7 @@ function parseExprList(close) { var indent = curIndent, line = curLineStart, elts = [], continuedLine = nextLineStart; next(); // Opening bracket + if (curLineStart > continuedLine) continuedLine = curLineStart; while (!closes(close, indent + (curLineStart <= continuedLine ? 1 : 0), line)) { var elt = parseExpression(true); if (isDummy(elt)) {