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

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

[nongnu] elpa/d-mode fb94d19 295/346: Fix fontification of "xxxmodule.yy


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode fb94d19 295/346: Fix fontification of "xxxmodule.yyy"
Date: Sun, 29 Aug 2021 11:00:48 -0400 (EDT)

branch: elpa/d-mode
commit fb94d199fb292e55ba30193e013958f411335551
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>

    Fix fontification of "xxxmodule.yyy"
---
 d-mode.el          | 5 +++--
 tests/fonts.d      | 1 +
 tests/fonts.d.html | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/d-mode.el b/d-mode.el
index 52a8e10..280fdd9 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -7,7 +7,7 @@
 ;; Maintainer:  Russel Winder <russel@winder.org.uk>
 ;;              Vladimir Panteleev <vladimir@thecybershadow.net>
 ;; Created:  March 2007
-;; Version:  201911111459
+;; Version:  201911111516
 ;; Keywords:  D programming language emacs cc-mode
 ;; Package-Requires: ((emacs "25.1"))
 
@@ -1684,7 +1684,8 @@ Each list item should be a regexp matching a single 
identifier."
   d (append
      ;; D module and import statements
      (list (c-make-font-lock-BO-decl-search-function
-            (c-make-keywords-re t (c-lang-const c-ref-list-kwds))
+           (concat "\\_<"
+                   (c-make-keywords-re t (c-lang-const c-ref-list-kwds d) 'd))
             '((c-fontify-types-and-refs ()
                (d-forward-module-clause)
                (if (> (point) limit) (goto-char limit))))))
diff --git a/tests/fonts.d b/tests/fonts.d
index ea6961a..4081f79 100644
--- a/tests/fonts.d
+++ b/tests/fonts.d
@@ -41,5 +41,6 @@ debug bool resolveNeeded = false;
 
 void fun()
 {
+       submodule.needHead(commit);
        return gun();
 }
diff --git a/tests/fonts.d.html b/tests/fonts.d.html
index 0c76899..1f27fae 100644
--- a/tests/fonts.d.html
+++ b/tests/fonts.d.html
@@ -41,5 +41,6 @@ write(s ~ <span class="string">&quot;&quot;</span>);
 
 <span class="type">void</span> <span class="function-name">fun</span>()
 {
+       submodule.needHead(commit);
        <span class="keyword">return</span> gun();
 }



reply via email to

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