emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode 5a2577f 019/346: Merge pull request #4 from roysc/m


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 5a2577f 019/346: Merge pull request #4 from roysc/master
Date: Sun, 29 Aug 2021 10:59:57 -0400 (EDT)

branch: elpa/d-mode
commit 5a2577fddc6d2f8814b10c33fb624116bb1a79a3
Merge: a587c35 c4a8921
Author: Leandro Motta Barros <lmb@stackedboxes.org>
Commit: Leandro Motta Barros <lmb@stackedboxes.org>

    Merge pull request #4 from roysc/master
    
    Added keywords
---
 d-mode.el | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/d-mode.el b/d-mode.el
index 0ddde42..3757058 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -111,7 +111,8 @@
 
 (c-lang-defconst c-assignment-operators
   ;; List of all assignment operators.
-  d  '("=" "*=" "/=" "%=" "+=" "-=" ">>=" "<<=" ">>>=" "&=" "^=" "|=" "~="))
+  d  '("=" "*=" "/=" "%=" "+=" "-=" ">>=" "<<=" ">>>=" "&=" "^=" "^^="
+       "|=" "~="))
 
 (c-lang-defconst c-other-op-syntax-tokens
   "List of the tokens made up of characters in the punctuation or
@@ -151,8 +152,9 @@ operators."
 ;; Keywords that can prefix normal declarations of identifiers
 (c-lang-defconst c-modifier-kwds
   d '("__gshared" "auto" "abstract" "const" "deprecated" "extern"
-      "final" "immutable" "inout" "lazy" "mixin" "private" "protected"
-      "public" "scope" "shared" "static" "synchronized" "volatile" ))
+      "final" "immutable" "inout" "lazy" "mixin" "override" "private"
+      "protected" "public" "scope" "shared" "static" "synchronized"
+      "volatile"))
 
 (c-lang-defconst c-class-decl-kwds
   ;; Keywords introducing declarations where the following block (if any)
@@ -219,7 +221,7 @@ operators."
 (c-lang-defconst c-paren-nontype-kwds
   ;;Keywords that may be followed by a parenthesis expression that doesn't
   ;; contain type identifiers.
-  d '("version" "extern" "macro" "mixin"))
+  d '("version" "debug" "extern" "macro" "mixin"))
 
 (c-lang-defconst c-paren-type-kwds
   ;; Keywords that may be followed by a parenthesis expression containing
@@ -369,7 +371,7 @@ operators."
 
 ;; For compatibility with Emacs < 24
 (defalias 'd-parent-mode
-  (if (functionp 'prog-mode) 'prog-mode 'fundamental-mode))
+  (if (fboundp 'prog-mode) 'prog-mode 'fundamental-mode))
 
 ;;;###autoload
 (define-derived-mode d-mode d-parent-mode "D"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]