The Scala mode is trying to do something clever with comment filling.
Try to dissuade it. Also, use an explicit list of punctuation
characters, because Scala mode (quite rightly) does a lot of fiddling
with syntax tables.
(defun mdw-fontify-scala ()
(defun mdw-fontify-scala ()
+ ;; Comment filling.
+ (setq mdw-fill-prefix mdw-c-comment-fill-prefix)
+
;; Define things to be fontified.
(make-local-variable 'font-lock-keywords)
(let ((scala-keywords
;; Define things to be fontified.
(make-local-variable 'font-lock-keywords)
(let ((scala-keywords
"var" "while" "with" "yield"))
(scala-constants
(mdw-regexps "false" "null" "super" "this" "true"))
"var" "while" "with" "yield"))
(scala-constants
(mdw-regexps "false" "null" "super" "this" "true"))
- (punctuation "\\s.\\|\\s(\\|\\s)\\|\\s\\\\|\\s/"))
+ (punctuation "[-!%^&*=+:@#~/?\\|`]"))
(setq font-lock-keywords
(list
(setq font-lock-keywords
(list