From: Lars Ingebrigtsen Date: Sat, 8 May 2021 12:42:51 +0000 (+0200) Subject: Fix indentation of lines starting with # in js-mode X-Git-Tag: emacs-28.0.90~2545 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b7e93e44488bb5f0efaa363a9d2e52d511959d5;p=emacs.git 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). --- diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index eeb85d9df0c..fac0d39b69f 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))