emacs-diffs
[Top][All Lists]
Advanced

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

master 6b7e93e 1/2: Fix indentation of lines starting with # in js-mode


From: Lars Ingebrigtsen
Subject: master 6b7e93e 1/2: Fix indentation of lines starting with # in js-mode
Date: Sun, 9 May 2021 05:48:08 -0400 (EDT)

branch: master
commit 6b7e93e44488bb5f0efaa363a9d2e52d511959d5
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix indentation of lines starting with # in js-mode
    
    * lisp/progmodes/js.el (js--proper-indentation): # is not like in
    C -- it doesn't have to appear on the beginning of the line
    (bug#47488).
---
 lisp/progmodes/js.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index eeb85d9..fac0d39 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -2861,7 +2861,6 @@ return nil."
           ((nth 3 parse-status) 0) ; inside string
           ((when (and js-jsx-syntax (not js-jsx--indent-col))
              (save-excursion (js-jsx--indentation parse-status))))
-          ((eq (char-after) ?#) 0)
           ((save-excursion (js--beginning-of-macro)) 4)
           ;; Indent array comprehension continuation lines specially.
           ((let ((bracket (nth 1 parse-status))



reply via email to

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