]> code.delx.au - gnu-emacs-elpa/commitdiff
js2-mode-extend-comment: Don't check that the next line is also commented
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 31 Dec 2015 19:41:56 +0000 (21:41 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 31 Dec 2015 19:41:56 +0000 (21:41 +0200)
Fixes #302

js2-mode.el

index 74f0ea2f1950cf231a44153fc271c94e1e05c877..7ee1599a8c028e962a4d6a7d83916c101fc6c8cb 100644 (file)
@@ -11905,10 +11905,7 @@ PARSE-STATUS is as documented in `parse-partial-sexp'."
             (insert "\n")
             (indent-to col)
             (insert "*/"))))
-     ((and single
-           (save-excursion
-              (and (zerop (forward-line 1))
-                   (looking-at "\\s-*//"))))
+     (single
       (indent-to col)
       (insert "// ")))
     ;; Don't need to extend the comment after all.