[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 38ddb5a 076/346: Merge pull request #41 from dmakar
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 38ddb5a 076/346: Merge pull request #41 from dmakarov/master |
Date: |
Sun, 29 Aug 2021 11:00:06 -0400 (EDT) |
branch: elpa/d-mode
commit 38ddb5a776e5c471af3ad3111030ba3d3bf8bb06
Merge: 2b0b84f 075c3e7
Author: Russel Winder <russel@winder.org.uk>
Commit: Russel Winder <russel@winder.org.uk>
Merge pull request #41 from dmakarov/master
This improves the indentation of else version and else debug statements,
issue #39
Thanks for sending this pull request in. I am going to take a small risk in
merging this without fully testing it myself. If we find a problem we can
always back out of the change.
---
d-mode.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index d2a9950..ac613d8 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -188,7 +188,7 @@ operators."
;; Built-in basic types
(c-lang-defconst c-primitive-type-kwds
d '("bit" "bool" "byte" "ubyte" "char" "delegate" "double" "float"
- "function" "int" "long" "ubyte" "short" "uint" "ulong" "ushort"
+ "function" "int" "long" "short" "uint" "ulong" "ushort"
"cent" "ucent" "real" "ireal" "ifloat" "creal" "cfloat" "cdouble"
"wchar" "dchar" "void" "string" "wstring" "dstring"))
@@ -458,11 +458,12 @@ operators."
;;;Workaround for special case of 'else static if' not being handled properly
(defun d-special-case-looking-at (oldfun &rest args)
(let ((rxp (car args)))
- (if (and (stringp rxp)
- (string= rxp "if\\>[^_]"))
- (or (apply oldfun '("static\\>[^_]"))
- (apply oldfun args))
- (apply oldfun args))))
+ (if (and (stringp rxp) (string= rxp "if\\>[^_]"))
+ (or (apply oldfun '("static\\>[^_]"))
+ (apply oldfun '("version\\>[^_]"))
+ (apply oldfun '("debug\\>[^_]"))
+ (apply oldfun args))
+ (apply oldfun args))))
(defadvice c-add-stmt-syntax (around my-c-add-stmt-syntax-wrapper activate)
(if (not (string= major-mode "d-mode"))
- [nongnu] elpa/d-mode 7817dbc 122/346: d-mode-test: Announce mismatched values of inline tests, (continued)
- [nongnu] elpa/d-mode 7817dbc 122/346: d-mode-test: Announce mismatched values of inline tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8ccad32 136/346: Simplify cascaded call indentation setup, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 0b8ed61 152/346: Fix highlighting of const variable declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 593e3f5 155/346: Fix extern(C) functions omitted from imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 93a62b3 158/346: Fix imenu for functions returning types containing parens, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a4f0b2d 161/346: Fix imenu for functions prefixed with a version/else, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8771a86 162/346: Convert d-imenu-generic-expression to rx, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 908d55b 170/346: fix #49 - Occasional incorrect fontification of string literals due, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode dea775a 066/346: Merge pull request #35 from wrzoski/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 01997e0 070/346: Add LDC compiler message pattern to be recognized in compilation mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 38ddb5a 076/346: Merge pull request #41 from dmakarov/master,
ELPA Syncer <=
- [nongnu] elpa/d-mode 2b0b84f 073/346: Merge pull request #38 from TOGoS/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c4d8ba8 099/346: Fix omission of final/abstract classes in imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9729d5f 103/346: Merge pull request #62 from CyberShadow/pull-20160328-152551, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2d014ef 106/346: Add .cask to .gitignore., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 830a070 095/346: Merge pull request #51 from dmakarov/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b682601 118/346: Document cl compilation warning, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode efc92aa 120/346: tests: Add test for GitHub pull request #72, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 7c3bcdc 124/346: tests: Split test for #72 to its own file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c881155 126/346: .travis.yml: Switch to a different PPA in order to test on Emacs 25, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode eb92e64 127/346: .travis.yml: Switch to emacs-travis.mk, ELPA Syncer, 2021/08/29