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

[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)



reply via email to

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