[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 546cc28 230/346: Fix parsing of block-less conditio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 546cc28 230/346: Fix parsing of block-less conditional declarations |
Date: |
Sun, 29 Aug 2021 11:00:36 -0400 (EDT) |
branch: elpa/d-mode
commit 546cc28b1b46b43d019dc3218aa89c0a017cd47a
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix parsing of block-less conditional declarations
A declaration may follow ")" (as in "version(xxx)").
---
d-mode.el | 5 ++++-
tests/fonts.d | 2 ++
tests/fonts.d.html | 2 ++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index b214fdca..c91d92d 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: 201909091759
+;; Version: 201909091921
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -128,6 +128,9 @@
(c-lang-defconst c-opt-type-suffix-key
d "\\(\\[[^]]*\\]\\|\\.\\.\\.\\|\\*\\)")
+(c-lang-defconst c-decl-prefix-re
+ d "\\([{}();:,]+\\)")
+
(c-lang-defconst c-identifier-ops
;; For recognizing "~this", ".foo", and "foo.bar.baz" as identifiers
d '((left-assoc ".")))
diff --git a/tests/fonts.d b/tests/fonts.d
index a9b6ee8..faaecff 100644
--- a/tests/fonts.d
+++ b/tests/fonts.d
@@ -11,3 +11,5 @@ void main()
run(a ~ b);
}
+
+version(none) string readLink();
diff --git a/tests/fonts.d.html b/tests/fonts.d.html
index 27a9b4d..214d0e3 100644
--- a/tests/fonts.d.html
+++ b/tests/fonts.d.html
@@ -11,3 +11,5 @@
run(a ~ b);
}
+
+<span class="keyword">version</span>(none) <span class="type">string</span>
<span class="function-name">readLink</span>();
- [nongnu] elpa/d-mode 50fef92 321/346: Enable Coveralls parallel builds, (continued)
- [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, 2021/08/29
- [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 <=
- [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
- [nongnu] elpa/d-mode b90a717 342/346: Merge pull request #106 from CyberShadow/pull-20210119-160250, ELPA Syncer, 2021/08/29