branch: elpa/d-mode
commit 9a89656e14aea049e71befaa154af90ae19607df
Merge: 7d4d637 6323cd4
Author: Russel Winder <[email protected]>
Commit: Russel Winder <[email protected]>
Merge pull request #61 from CyberShadow/pull-20160327-114822
Recognize postfix @-keywords in function declarations for imenu
---
d-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index c360780..785e0fc 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 ()