[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
- [nongnu] elpa/swift-mode 0f99a5a 067/496: Tweak docstring to supress checkdoc error, (continued)
- [nongnu] elpa/swift-mode 0f99a5a 067/496: Tweak docstring to supress checkdoc error, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 821d9af 064/496: Make switch-case indent offset customisable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode bbd8f91 096/496: Add tests for all implemented smie grammars, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cfbc318 092/496: Merge pull request #24 from ap4y/fix_paragraph_movements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a8fa421 086/496: Use a more descriptive map variable name inside its definition, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0c908ad 103/496: Remove an outdated statement about the indentation code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 41d38bd 117/496: Clarify syntax table for syntactic fontification., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 18e1e4a 107/496: Highlight attributes as keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 98556c1 120/496: Start work on version 0.3, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8be19fb 108/496: Highlight self and super as keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3caacf3 007/496: Highlight attributes and _ wildcards,
ELPA Syncer <=
- [nongnu] elpa/swift-mode c8f1dbd 014/496: Update readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode adb3c13 039/496: Restore Emacs 24.1 requirement, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ab5e170 044/496: Add a few links, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a44a755 052/496: Add docstrings for internal indent commands, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 62276c3 061/496: Indent cases in enums, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e168b34 128/496: Don't use implicit semicolon for multi-line dot expressions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ee83a1d 137/496: Rename swift-indent-multiline-dot-offset to swift-indent-multiline-statement-offset, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fca914a 165/496: Merge pull request #63 from ckruse/updated_syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8db040e 166/496: fix: underscores are word characters (Word constituents), ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2a21e1b 177/496: Add ternary operator smie grammar, ELPA Syncer, 2021/08/29