diff options
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/js.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 04b449ecd2c..5c50e2accdf 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -4570,7 +4570,7 @@ This function is intended for use in `after-change-functions'." | |||
| 4570 | 4570 | ||
| 4571 | ;; Comments | 4571 | ;; Comments |
| 4572 | (setq-local comment-start "// ") | 4572 | (setq-local comment-start "// ") |
| 4573 | (setq-local comment-start-skip "\\(//+\\|/\\*+\\)\\s *") | 4573 | (setq-local comment-start-skip "\\(?://+\\|/\\*+\\)\\s *") |
| 4574 | (setq-local comment-end "") | 4574 | (setq-local comment-end "") |
| 4575 | (setq-local fill-paragraph-function #'js-fill-paragraph) | 4575 | (setq-local fill-paragraph-function #'js-fill-paragraph) |
| 4576 | (setq-local normal-auto-fill-function #'js-do-auto-fill) | 4576 | (setq-local normal-auto-fill-function #'js-do-auto-fill) |
| @@ -4591,6 +4591,8 @@ This function is intended for use in `after-change-functions'." | |||
| 4591 | (setq imenu-create-index-function #'js--imenu-create-index) | 4591 | (setq imenu-create-index-function #'js--imenu-create-index) |
| 4592 | 4592 | ||
| 4593 | ;; for filling, pretend we're cc-mode | 4593 | ;; for filling, pretend we're cc-mode |
| 4594 | (c-foreign-init-lit-pos-cache) | ||
| 4595 | (add-hook 'before-change-functions #'c-foreign-truncate-lit-pos-cache nil t) | ||
| 4594 | (setq-local comment-line-break-function #'c-indent-new-comment-line) | 4596 | (setq-local comment-line-break-function #'c-indent-new-comment-line) |
| 4595 | (setq-local comment-multi-line t) | 4597 | (setq-local comment-multi-line t) |
| 4596 | (setq-local electric-indent-chars | 4598 | (setq-local electric-indent-chars |