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

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

[nongnu] elpa/d-mode ac3c6db 029/346: allow * in typenames


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode ac3c6db 029/346: allow * in typenames
Date: Sun, 29 Aug 2021 10:59:59 -0400 (EDT)

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

    allow * in typenames
---
 d-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/d-mode.el b/d-mode.el
index c270be7..d94835d 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -373,7 +373,7 @@ operators."
   (concat
    "^\\s-*"
    "\\(?:[_a-z@]+\\s-+\\)*"             ; qualifiers
-   "\\([][_a-zA-Z0-9.!]+\\)\\s-+"       ; type
+   "\\([][_a-zA-Z0-9.*!]+\\)\\s-+"      ; type
    "\\([_a-zA-Z0-9]+\\)\\s-*"           ; function name
    "\\(?:([^)]*)\\s-*\\)?"              ; type arguments
    "([^)]*)\\s-*"                       ; arguments
@@ -441,10 +441,10 @@ Key bindings:
 (font-lock-add-keywords
  'd-mode
  '(("\\<\\(auto\\|immutable\\)\\>" 1 font-lock-keyword-face)
-   ("^[ \t]*\\(?:[_a-zA-Z0-9]+[ \t\n]+\\)*\\([][_a-zA-Z0-9.!]+\\)[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*;"
+   ("^[ \t]*\\(?:[_a-zA-Z0-9]+[ \t\n]+\\)*\\([][_a-zA-Z0-9.*!]+\\)[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*;"
     (1 font-lock-type-face)
     (2 font-lock-variable-name-face))
-   ("^[ \t]*\\(?:[_a-zA-Z0-9]+[ \t\n]+\\)*\\([][_a-zA-Z0-9.!]+\\)[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*("
+   ("^[ \t]*\\(?:[_a-zA-Z0-9]+[ \t\n]+\\)*\\([][_a-zA-Z0-9.*!]+\\)[ 
\t\n]+\\([_a-zA-Z0-9]+\\)[ \t\n]*("
     (1 font-lock-type-face)
     (2 font-lock-function-name-face))))
 



reply via email to

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