branch: elpa/d-mode
commit 6323cd4305ed68a1d41aaf255566872e6244f2eb
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>

    Recognize postfix @-keywords in function declarations for imenu
    
    Fixes #60
---
 d-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/d-mode.el b/d-mode.el
index 3d84eaf..3d7ec20 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -443,7 +443,7 @@ operators."
    "\\([_a-zA-Z0-9]+\\)\\s-*"           ; function name
    "\\(?:([^)]*)\\s-*\\)?"              ; type arguments
    "([^)]*)\\s-*"                       ; arguments
-   "\\(?:[a-z]+\\s-*\\)?"               ; pure/const etc.
+   "\\(?:[a-z@]+\\s-*\\)?"              ; pure/const etc.
    "\\(?:;\\|[ \t\n]*\\(?:if\\|{\\)\\)")) ; ';' or 'if' or '{'
 
 (defun d-imenu-method-index-function ()

Reply via email to