branch: elpa/d-mode
commit ca124832dfb927693b53fe8fe57c60ec530de78c
Author: finalpatch <[email protected]>
Commit: finalpatch <[email protected]>

    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