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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode 4214c49 031/346: fix a bug that incorrectly fontifi


From: ELPA Syncer
Subject: [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.
Date: Sun, 29 Aug 2021 10:59:59 -0400 (EDT)

branch: elpa/d-mode
commit 4214c490e33b2f4dfdc81a40e3e0b4eeffe0b7e0
Author: finalpatch <fengli@gmail.com>
Commit: finalpatch <fengli@gmail.com>

    fix a bug that incorrectly fontifies struct/class keywords (when the type 
has type arguments) in type face.
    eg. struct Vec(T, alias N)
---
 d-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/d-mode.el b/d-mode.el
index c76da5f..d8c63ca 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -446,7 +446,8 @@ Key bindings:
     (2 font-lock-variable-name-face))
    ("^[ \t]*\\(?:[_a-zA-Z0-9]+[ \t\n]+\\)*\\([_a-zA-Z0-9.!]+\\)[][* ]*[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*("
     (1 font-lock-type-face)
-    (2 font-lock-function-name-face))))
+    (2 font-lock-function-name-face)))
+ t)
 
 
 (provide 'd-mode)



reply via email to

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