branch: elpa/d-mode
commit 6cbba0ea16ce0a5bec6a941cafee3fc5aa160995
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Fix fontification of lone protection labels
---
d-mode.el | 7 +++----
tests/fonts_protection.d | 2 ++
tests/fonts_protection.d.html | 2 ++
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index ce96957..acc8d8f 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: 201911111737
+;; Version: 201911111751
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -256,9 +256,8 @@ operators."
(c-lang-defconst c-protection-kwds
;; Access protection label keywords in classes.
- d '("deprecated" "static" "extern" "final" "synchronized" "override"
- "abstract" "scope"
- "private" "package" "protected" "public" "export"))
+ ;; Already included in c-modifier-kwds.
+ d nil)
(c-lang-defconst c-postfix-spec-kwds
;Keywords introducing extra declaration specifiers in the region
diff --git a/tests/fonts_protection.d b/tests/fonts_protection.d
index 1b59fbb..bf5ff2b 100644
--- a/tests/fonts_protection.d
+++ b/tests/fonts_protection.d
@@ -6,3 +6,5 @@ class C
public:
Type var3, var4;
}
+
+package:
diff --git a/tests/fonts_protection.d.html b/tests/fonts_protection.d.html
index 755ee00..28da16e 100644
--- a/tests/fonts_protection.d.html
+++ b/tests/fonts_protection.d.html
@@ -6,3 +6,5 @@
<span class="keyword">public</span>:
<span class="type">Type</span> <span class="variable-name">var3</span>,
<span class="variable-name">var4</span>;
}
+
+<span class="keyword">package</span>: