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

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

[nongnu] elpa/d-mode 9a17cb1 036/346: Add more D attributes to c-protect


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 9a17cb1 036/346: Add more D attributes to c-protection-kwds. Handle initializers in c-protection-kwds workaround.
Date: Sun, 29 Aug 2021 11:00:00 -0400 (EDT)

branch: elpa/d-mode
commit 9a17cb161a2ca0c347f0aa06de73dfc1b4e624f0
Author: finalpatch <fengli@gmail.com>
Commit: finalpatch <fengli@gmail.com>

    Add more D attributes to c-protection-kwds. Handle initializers in 
c-protection-kwds workaround.
---
 d-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/d-mode.el b/d-mode.el
index 0806797..0e167f8 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -205,7 +205,9 @@ operators."
 
 (c-lang-defconst c-protection-kwds
   ;; Access protection label keywords in classes.
-  d '("export" "private" "package" "protected" "public"))
+  d '("deprecated" "static" "extern" "final" "synchronized" "override"
+      "abstract" "scope" "const" "inout" "shared" "__gshared"
+      "private" "package" "protected" "public" "export"))
 
 ;;(c-lang-defconst c-postfix-decl-spec-kwds
 ;;  ;Keywords introducing extra declaration specifiers in the region
@@ -462,7 +464,7 @@ Key bindings:
 ;;   fail. The solution used here is to use font-lock-add-keywords to
 ;;   add back the syntax highlight.
 
-(defconst d-var-decl-pattern "^[ \t]*\\(?:[_a-zA-Z0-9]+[ 
\t\n]+\\)*\\([_a-zA-Z0-9.!]+\\)\\(?:\\[[^]]*\\]\\|\\*\\)?[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*;")
+(defconst d-var-decl-pattern "^[ \t]*\\(?:[_a-zA-Z0-9]+[ 
\t\n]+\\)*\\([_a-zA-Z0-9.!]+\\)\\(?:\\[[^]]*\\]\\|\\*\\)?[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*[;=]")
 (defconst d-fun-decl-pattern "^[ \t]*\\(?:[_a-zA-Z0-9]+[ 
\t\n]+\\)*\\([_a-zA-Z0-9.!]+\\)\\(?:\\[[^]]*\\]\\|\\*\\)?[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*(")
 (defmacro d-try-match-decl (regex)
   `(let ((pt))



reply via email to

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