[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode ca12483 039/346: fix auto/immutable in comments
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode ca12483 039/346: fix auto/immutable in comments |
Date: |
Sun, 29 Aug 2021 11:00:00 -0400 (EDT) |
branch: elpa/d-mode
commit ca124832dfb927693b53fe8fe57c60ec530de78c
Author: finalpatch <fengli@gmail.com>
Commit: finalpatch <fengli@gmail.com>
fix auto/immutable in comments
---
d-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index 34c9ea1..5195772 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -483,10 +483,12 @@ Key bindings:
(d-try-match-decl d-var-decl-pattern))
(defun d-match-fun-decl (limit)
(d-try-match-decl d-fun-decl-pattern))
+(defun d-match-auto (limit)
+ (c-syntactic-re-search-forward "\\<\\(auto\\|immutable\\)\\>" limit t))
(font-lock-add-keywords
'd-mode
- '(("\\<\\(auto\\|immutable\\)\\>" 1 font-lock-keyword-face t)
+ '((d-match-auto 1 font-lock-keyword-face t)
(d-match-var-decl (1 font-lock-type-face) (2 font-lock-variable-name-face))
(d-match-fun-decl (1 font-lock-type-face) (2 font-lock-function-name-face)))
t)
- [nongnu] elpa/d-mode d2a3306 011/346: remove commented lines, (continued)
- [nongnu] elpa/d-mode d2a3306 011/346: remove commented lines, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 68ee0fe 012/346: Parent mode is conditional for compatibility, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 685f825 013/346: Parent mode is conditional for compatibility, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5a2577f 019/346: Merge pull request #4 from roysc/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 47c29cb 021/346: Merge pull request #5 from roysc/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e9fb18b 024/346: Bump version number post release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f6228c7 025/346: * Add pointer type support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ac3c6db 029/346: allow * in typenames, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4214c49 031/346: fix a bug that incorrectly fontifies struct/class keywords (when the type has type arguments) in type face., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode adae36d 028/346: allow !.[] in typenames, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ca12483 039/346: fix auto/immutable in comments,
ELPA Syncer <=
- [nongnu] elpa/d-mode 473fa33 040/346: Revert the 'Emergency Emacs 23 fixes', ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9651a31 042/346: Remove warning regarding missing group., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 3c9f78b 046/346: wording: `init file' rather than `.emacs', ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode fce658e 047/346: let minor-mode automatically set syntax table, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2d6f15d 049/346: Update the date of the file to better represent reality., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9482533 008/346: Declare the 2.0.5 release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1e3df1c 015/346: Added 'debug' to `c-paren-nontype-kwds', ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 46a9ad2 032/346: Merge pull request #12 from finalpatch/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c2431c8 033/346: support fixed sized array, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 09b2aa8 034/346: support interface inheritance, ELPA Syncer, 2021/08/29