[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode df9c8a1 322/346: Fontify types in casts
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode df9c8a1 322/346: Fontify types in casts |
Date: |
Sun, 29 Aug 2021 11:00:53 -0400 (EDT) |
branch: elpa/d-mode
commit df9c8a15410af8934dc678c6fa0301e266ef8115
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fontify types in casts
---
d-mode.el | 4 ++--
tests/fonts.d | 1 +
tests/fonts.d.html | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 89d84eb..8987b78 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: 201911121459
+;; Version: 201911121951
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -324,7 +324,7 @@ operators."
(c-lang-defconst c-paren-type-kwds
;; Keywords that may be followed by a parenthesis expression containing
;; type identifiers separated by arbitrary tokens.
- d (append (list "delete" "throw")
+ d (append (list "delete" "throw" "cast")
(c-lang-const d-type-modifier-kwds)))
;; D: Like `c-regular-keywords-regexp', but contains keywords which
diff --git a/tests/fonts.d b/tests/fonts.d
index 666ab3e..533eef0 100644
--- a/tests/fonts.d
+++ b/tests/fonts.d
@@ -63,5 +63,6 @@ void fun()
void fun()
{
if (a) {}
+ auto x = cast(T)y;
return gun();
}
diff --git a/tests/fonts.d.html b/tests/fonts.d.html
index 8ae7ce7..e26b7b7 100644
--- a/tests/fonts.d.html
+++ b/tests/fonts.d.html
@@ -63,5 +63,6 @@ write(s ~ <span class="string">""</span>);
<span class="type">void</span> <span class="function-name">fun</span>()
{
<span class="keyword">if</span> (a) {}
+ <span class="keyword">auto</span> <span class="variable-name">x</span>
= <span class="keyword">cast</span>(<span class="type">T</span>)y;
<span class="keyword">return</span> gun();
}
- [nongnu] elpa/d-mode 936944f 294/346: tests: Update test minimal versions, (continued)
- [nongnu] elpa/d-mode 936944f 294/346: tests: Update test minimal versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode fb94d19 295/346: Fix fontification of "xxxmodule.yyy", ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 6cbba0e 301/346: Fix fontification of lone protection labels, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2bb5809 304/346: Move conditional compilation to within function bodies, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c29b03d 302/346: .travis.yml: Remove redundant "compile" step, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c8413d2 317/346: tests: Rename fonts_lambda_params to fonts_params, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4586b41 314/346: Fix mis-interpreting parts of some compound statements as lambdas, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e759406 324/346: tests: New testcase, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 50fef92 321/346: Enable Coveralls parallel builds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 0522d1c 320/346: Bundle our own undercover.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode df9c8a1 322/346: Fontify types in casts,
ELPA Syncer <=
- [nongnu] elpa/d-mode 5190c1d 323/346: Fix fontification of parameters of lambdas inside expressions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode bc4864d 325/346: d-mode.el: Remove c-font-lock-declarations advice, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a233437 329/346: Add "version" to c-block-stmt-2-kwds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5da089b 332/346: tests: Replace #min-version with a more generic #condition, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9f6a2b6 339/346: Handle c-forward-sexp error in d-around--c-get-fontification-context, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 54aca49 333/346: tests/I0021: Disable on Emacs >=27 for now, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 84bf8ab 262/346: Fix fontification of single-character package names, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 546cc28 230/346: Fix parsing of block-less conditional declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 447515f 327/346: Merge pull request #93 from CyberShadow/next, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 75cc636 334/346: tests/fonts_auto: Remove final */, ELPA Syncer, 2021/08/29