emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 33c7169 32/38: Port over fix for https://debbugs.gnu.org/2


From: Dmitry Gutov
Subject: [elpa] master 33c7169 32/38: Port over fix for https://debbugs.gnu.org/23391
Date: Wed, 28 Feb 2018 20:12:14 -0500 (EST)

branch: master
commit 33c71692aa7fb84e11bdca6e7ff1893578a0c4a0
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Port over fix for https://debbugs.gnu.org/23391
    
    Fixes #475
---
 js2-old-indent.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/js2-old-indent.el b/js2-old-indent.el
index 565eb74..5538736 100644
--- a/js2-old-indent.el
+++ b/js2-old-indent.el
@@ -355,7 +355,8 @@ In particular, return the buffer position of the first 
`for' kwd."
                      (re-search-forward "[^,]]* \\(for\\) " end t)
                      ;; not inside comment or string literal
                      (let ((state (parse-partial-sexp bracket (point))))
-                       (not (or (nth 3 state) (nth 4 state)))))
+                       (and (= 1 (car state))
+                            (not (nth 8 state)))))
                 (match-beginning 1))))))))
 
 (defun js2-array-comp-indentation (parse-status for-kwd)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]