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

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

[elpa] master be0b00d 063/110: js2-mode-extend-comment: Don't check that


From: Dmitry Gutov
Subject: [elpa] master be0b00d 063/110: js2-mode-extend-comment: Don't check that the next line is also commented
Date: Thu, 23 Jun 2016 01:12:59 +0000 (UTC)

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

    js2-mode-extend-comment: Don't check that the next line is also commented
    
    Fixes #302
---
 js2-mode.el |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 74f0ea2..7ee1599 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -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.



reply via email to

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