el/dot-emacs.el (mdw-fontify-scala): Highlight punctuation in identifiers.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 25 May 2018 17:26:20 +0000 (18:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 30 May 2018 18:43:04 +0000 (19:43 +0100)
I think it's best if pure-punctuation method names are highlighted as
punctuation, and for consistency I'm going to highlight punctuation
suffixes on mostly-alphanumeric names, e.g., `unary_-' or `slot_='.

This decision is nothing to do with the fact that I'm too lazy to figure
out how to highlight the `:' properly in `case _: TYPE => ...'.  Honest.

el/dot-emacs.el

index 05e5898..b42431d 100644 (file)
@@ -2334,10 +2334,6 @@ name, as a symbol."
                         "[lLfFdD]?")
                 '(0 mdw-number-face))
 
-          ;; Identifiers with trailing operators.
-          (list (concat "_\\(" punctuation "\\)+")
-                '(0 mdw-trivial-face))
-
           ;; And everything else is punctuation.
           (list "\\(\\s.\\|\\s(\\|\\s)\\|\\s\\\\|\\s/\\)"
                 '(0 mdw-punct-face)))