[Pkg-javascript-commits] [node-acorn-jsx] 120/484: [loose parser] Less aggressive termination heuristic for comma-separated lists

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:13 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 9eee5300dbc8783659b26caea4d3cde1cede040e
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Wed May 8 15:21:25 2013 +0200

    [loose parser] Less aggressive termination heuristic for comma-separated lists
    
    See https://github.com/marijnh/tern/issues/118
---
 acorn_loose.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn_loose.js b/acorn_loose.js
index 9341a20..cbdd989 100644
--- a/acorn_loose.js
+++ b/acorn_loose.js
@@ -755,7 +755,7 @@
   }
 
   function parseExprList(close) {
-    var indent = curIndent + 1, line = curLineStart, elts = [];
+    var indent = curIndent, line = curLineStart, elts = [];
     next(); // Opening bracket
     while (!closesBlock(close, indent, line)) {
       var elt = parseExpression(true);

-- 
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