From: Mark Wooding Date: Fri, 25 May 2018 17:26:20 +0000 (+0100) Subject: el/dot-emacs.el (mdw-fontify-scala): Highlight punctuation in identifiers. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/19e19878e08ca883f6352fd9ae4c65eba47dc475?ds=sidebyside el/dot-emacs.el (mdw-fontify-scala): Highlight punctuation in identifiers. 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. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 05e5898..b42431d 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -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)))