(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
(mdw-regexps "abstract" "case" "catch" "class" "def" "do" "else"
"extends" "final" "finally" "for" "forSome" "if"
"implicit" "import" "lazy" "match" "new" "object"
- "override" "package" "protected" "return" "sealed"
- "super" "this" "throw" "trait" "try" "type" "val"
+ "override" "package" "private" "protected" "return"
+ "sealed" "throw" "trait" "try" "type" "val"
"var" "while" "with" "yield"))
(scala-constants
- (mdw-regexps "false" "null" "true"))
- (punctuation "\\s.\\|\\s(\\|\\s)\\|\\s\\\\|\\s/"))
+ (mdw-regexps "false" "null" "super" "this" "true"))
+ (punctuation "[-!%^&*=+:@#~/?\\|`]"))
(setq font-lock-keywords
(list