diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-08 14:42:51 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-09 11:44:33 +0200 |
commit | 6b7e93e44488bb5f0efaa363a9d2e52d511959d5 (patch) | |
tree | 0a5822eac20773cb6ddaf9e39b39a88b6df80d1c /lisp | |
parent | 3d276324edd90b2df9f0987f635ca0c39037a81d (diff) | |
download | emacs-6b7e93e44488bb5f0efaa363a9d2e52d511959d5.tar.gz emacs-6b7e93e44488bb5f0efaa363a9d2e52d511959d5.tar.bz2 emacs-6b7e93e44488bb5f0efaa363a9d2e52d511959d5.zip |
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).
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/progmodes/js.el | 1 |
1 files changed, 0 insertions, 1 deletions
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)) |