[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode a233437 329/346: Add "version" to c-block-stmt-2-kw
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode a233437 329/346: Add "version" to c-block-stmt-2-kwds |
Date: |
Sun, 29 Aug 2021 11:00:54 -0400 (EDT) |
branch: elpa/d-mode
commit a2334379839dd7ce06360dd57a48859271bf75e4
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Add "version" to c-block-stmt-2-kwds
Fix #102.
---
d-mode.el | 2 +-
tests/I0102.d | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index 21abce7..eea1dac 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -350,7 +350,7 @@ operators."
(c-lang-defconst c-block-stmt-2-kwds
;; Statement keywords followed by a paren sexp and then by a substatement.
- d '("for" "if" "switch" "while" "catch" "synchronized" "scope"
+ d '("for" "if" "switch" "while" "catch" "synchronized" "scope" "version"
"foreach" "foreach_reverse" "with" "out" "invariant" "unittest"))
(c-lang-defconst c-simple-stmt-kwds
diff --git a/tests/I0102.d b/tests/I0102.d
new file mode 100644
index 0000000..46c4da7
--- /dev/null
+++ b/tests/I0102.d
@@ -0,0 +1,11 @@
+// #min-version: 26.1
+// #run: (d-test-indent)
+
+version (x86) {
+ // Decl
+} else version (x86_64) {
+ // Decls
+} else version (PPC64) {
+ // More decls
+} else
+ static assert(0);
- [nongnu] elpa/d-mode 2bb5809 304/346: Move conditional compilation to within function bodies, (continued)
- [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, 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 <=
- [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
- [nongnu] elpa/d-mode b90a717 342/346: Merge pull request #106 from CyberShadow/pull-20210119-160250, ELPA Syncer, 2021/08/29