[loose parser] Fix bug in continued-expression closing
When the continued expression sat on column 1 after a non-whitespace char, the heuristic would consider it the start of the line, even though it wasn't. Issue marijnh/tern#141
This commit is contained in:
@@ -190,7 +190,7 @@
|
||||
}
|
||||
|
||||
function tokenStartsLine() {
|
||||
for (var p = token.start - 1; p > curLineStart; --p) {
|
||||
for (var p = token.start - 1; p >= curLineStart; --p) {
|
||||
var ch = input.charCodeAt(p);
|
||||
if (ch !== 9 && ch !== 32) return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user