[Pkg-javascript-commits] [node-acorn-jsx] 121/484: [loose parser] Fix bug in continued-expression closing
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 6dd35f870a446a274c38d34c4a45cd068b9f57a3
Author: Marijn Haverbeke <marijnh at gmail.com>
Date: Wed May 15 12:02:48 2013 +0200
[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
---
acorn_loose.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/acorn_loose.js b/acorn_loose.js
index cbdd989..de3b0e1 100644
--- a/acorn_loose.js
+++ b/acorn_loose.js
@@ -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;
}
--
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