branch: elpa/swift-mode commit 3caacf3f2e9e58de49e0c5627ac90b363f32424c Author: Chris Barrett <chris.d.barr...@me.com> Commit: Chris Barrett <chris.d.barr...@me.com>
Highlight attributes and _ wildcards --- swift-mode.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/swift-mode.el b/swift-mode.el index 382ab5d..2fe2f44 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -106,6 +106,16 @@ t) (list 1 font-lock-variable-name-face)) + ;; Use high-visibility face for pattern match wildcards. + (cons (rx (not (any word digit)) (group "_") (or eol (not (any word digit)))) + (list 1 font-lock-negation-char-face)) + + ;; Attributes + ;; + ;; Use string face for attribute name. + (cons (rx (or bol space)(group "@" (+ word)) eow) + (list 1 font-lock-string-face)) + ;; Imported modules ;; ;; Highlight the names of imported modules. Use `font-lock-string-face' for