[loose parser] Less aggressive termination heuristic for comma-separated lists
See https://github.com/marijnh/tern/issues/118
This commit is contained in:
parent
4d8eeabf52
commit
9eee5300db
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user