branch: elpa/d-mode
commit fb94d199fb292e55ba30193e013958f411335551
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
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 <[email protected]>
;; Vladimir Panteleev <[email protected]>
;; 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">""</span>);
<span class="type">void</span> <span class="function-name">fun</span>()
{
+ submodule.needHead(commit);
<span class="keyword">return</span> gun();
}