[Pkg-javascript-commits] [node-acorn-jsx] 139/484: Further refine parseExprList indentation heuristic
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit 2ace0fa8dc81839afb6152c3d8888020b6c108c5
Author: Marijn Haverbeke <marijnh at gmail.com>
Date: Tue Aug 27 12:52:02 2013 +0200
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 cf73345..bdd634d 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)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list