]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indentation of lines starting with # in js-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 May 2021 12:42:51 +0000 (14:42 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 9 May 2021 09:44:33 +0000 (11:44 +0200)
* 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

index eeb85d9df0c5c309d78211ddf092c242b957583f..fac0d39b69f6e9e794eaa15b8bde59c6fcc5fbcb 100644 (file)
@@ -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))