summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2019-04-09 15:02:00 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2019-04-09 15:02:00 -0400
commitc44313327588b5d2aafe9234e71f081f39a16082 (patch)
tree24bb9edc9e1e695d8de853cbb25416a5fe509eb9
parenta017927c9ff627a0adf19ac3720bf6b2e77e5da5 (diff)
downloademacs-c44313327588b5d2aafe9234e71f081f39a16082.tar.gz
* lisp/progmodes/js.el (js-mode): Don't set comment-start-skip globally!
-rw-r--r--lisp/progmodes/js.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 535b70317a7..70998245818 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -4483,6 +4483,7 @@ This function is intended for use in `after-change-functions'."
;; Comments
(setq-local comment-start "// ")
+ (setq-local comment-start-skip "\\(//+\\|/\\*+\\)\\s *")
(setq-local comment-end "")
(setq-local fill-paragraph-function #'js-fill-paragraph)
(setq-local normal-auto-fill-function #'js-do-auto-fill)
@@ -4508,8 +4509,7 @@ This function is intended for use in `after-change-functions'."
c-paragraph-separate "$"
c-block-comment-prefix "* "
c-line-comment-starter "//"
- c-comment-start-regexp "/[*/]\\|\\s!"
- comment-start-skip "\\(//+\\|/\\*+\\)\\s *")
+ c-comment-start-regexp "/[*/]\\|\\s!")
(setq-local comment-line-break-function #'c-indent-new-comment-line)
(setq-local c-block-comment-start-regexp "/\\*")
(setq-local comment-multi-line t)