emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode 3caacf3 007/496: Highlight attributes and _ wil


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 3caacf3 007/496: Highlight attributes and _ wildcards
Date: Sun, 29 Aug 2021 11:32:57 -0400 (EDT)

branch: elpa/swift-mode
commit 3caacf3f2e9e58de49e0c5627ac90b363f32424c
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]