[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode cb6186e 474/496: Add support for font-lock-nega
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode cb6186e 474/496: Add support for font-lock-negation-char-face |
Date: |
Sun, 29 Aug 2021 11:34:31 -0400 (EDT) |
branch: elpa/swift-mode
commit cb6186e4b180317d98cc83ab5d6c55914b0ac222
Author: Daniel MartÃn <mardani29@yahoo.es>
Commit: taku0 <taku0@users.noreply.github.com>
Add support for font-lock-negation-char-face
Emacs can show negation characters using a specific face in font-lock.
This commit adds support for it in swift-mode.
---
swift-mode-font-lock.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/swift-mode-font-lock.el b/swift-mode-font-lock.el
index 398cfed..da32425 100644
--- a/swift-mode-font-lock.el
+++ b/swift-mode-font-lock.el
@@ -138,6 +138,10 @@ Example: #if, #endif, and #selector."
"Face for highlighting property accesses."
:group 'swift-mode:faces)
+(defface swift-mode:negation-char-face
+ '((t . (:inherit font-lock-negation-char-face)))
+ "Face for highlighting the negation char."
+ :group 'swift-mode:faces)
(defun swift-mode:make-set (list)
"Return a hash where its keys are elements of the LIST.
@@ -660,7 +664,12 @@ Excludes true, false, and keywords begin with a number
sign.")
;; Property accesses
(swift-mode:font-lock-match-property-access
.
- 'swift-mode:property-access-face))
+ 'swift-mode:property-access-face)
+
+ ;; Make negation chars easier to see
+ ("\\(?:^\\|[^[:alnum:]_]\\)\\(!+\\)[^=]"
+ 1
+ 'swift-mode:negation-char-face))
"Swift mode keywords for Font Lock.")
- [nongnu] elpa/swift-mode 66bfbc5 056/496: Add indentation tests, add makefile runner task, (continued)
- [nongnu] elpa/swift-mode 66bfbc5 056/496: Add indentation tests, add makefile runner task, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ead0ae5 055/496: Fix spelling error in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 049c6d6 439/496: Use `assoc-default`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ba4d981 473/496: Use seq-contains-p if available, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 86f8f62 447/496: Bump version to 8.0.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 90686cb 450/496: Add `some` keyword of Swift 5.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode acfc7fd 452/496: Fix comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0daff60 463/496: Fix unreadable characters appearing in repl prompt, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5597eaf 467/496: Avoid max-lisp-eval-depth in font-lock-match-expr, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8f1a697 483/496: Fix documentations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cb6186e 474/496: Add support for font-lock-negation-char-face,
ELPA Syncer <=
- [nongnu] elpa/swift-mode b6d0351 338/496: Fix indentation of switch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 07939df 413/496: Bump version to 7.0.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 55ce4e5 416/496: Fix command name, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fa4f491 433/496: Add Emacs 25.3 and 26.1 to CI, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3b6bdad 443/496: Bump version to 8.0.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode be8d770 446/496: Fix indentation after `class' modifier, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3d1cfcc 047/496: Clarify manual installation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5448098 366/496: Improve functions related to defuns, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7d9aabb 426/496: Improve support for Imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b4e0622 444/496: Add test for indent of import declarations, ELPA Syncer, 2021/08/29