]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/js.el (js--multi-line-declaration-indentation): Merge
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 7 Mar 2013 16:08:33 +0000 (20:08 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 7 Mar 2013 16:08:33 +0000 (20:08 +0400)
from js2-mode (https://github.com/mooz/js2-mode/issues/89).

lisp/ChangeLog
lisp/progmodes/js.el

index cef47715dc01a3160db7095cae73b00ab15d27b4..709242e600690ac83bea603effeec27a19f96450 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-07  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/js.el (js--multi-line-declaration-indentation): Merge
+       from js2-mode (https://github.com/mooz/js2-mode/issues/89).
+
 2013-03-06  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-syntax-propertize-function): Only
index 4aa1ac270d5bd08f8c9f1203e3be0201fcfaa442..2ea78fc321c31a26fd1d2de05e0a8ae14e276363 100644 (file)
@@ -1785,7 +1785,7 @@ statement spanning multiple lines; otherwise, return nil."
                         (or (eq (char-before) ?,)
                             (and (not (eq (char-before) ?\;))
                                  (prog2
-                                     (skip-chars-backward "[[:punct:]]")
+                                     (skip-syntax-backward ".")
                                      (looking-at js--indent-operator-re)
                                    (js--backward-syntactic-ws))
                                  (not (eq (char-before) ?\;)))