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

    Fix imenu for functions with multiple tail qualifiers
---
 d-mode.el     | 4 ++--
 tests/imenu.d | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/d-mode.el b/d-mode.el
index eceda73..4d6829a 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -7,7 +7,7 @@
 ;; Maintainer:  Russel Winder <[email protected]>
 ;;              Vladimir Panteleev <[email protected]>
 ;; Created:  March 2007
-;; Version:  201610111856
+;; Version:  201610111901
 ;; Keywords:  D programming language emacs cc-mode
 
 ;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -495,7 +495,7 @@ The expression is added to `compilation-error-regexp-alist' 
and
    (zero-or-more (syntax whitespace))
 
    ;; Pure/const etc.
-   (zero-or-one
+   (zero-or-more
     (one-or-more (any "a-z@"))
     (zero-or-more (syntax whitespace)))
 
diff --git a/tests/imenu.d b/tests/imenu.d
index 11cf15e..0ebddb2 100644
--- a/tests/imenu.d
+++ b/tests/imenu.d
@@ -1,5 +1,5 @@
 // #run: (d-test-get-imenu-lines)
-// #out: (4 6 11 14)
+// #out: (4 6 11 14 17)
 
 void foo(int x) {}
 
@@ -13,3 +13,5 @@ extern(C) void _d_throwdwarf(Throwable o)
 
 extern (C) int rt_init()
 {}
+
+Duration dur(string units)(long length) @safe pure nothrow @nogc {}

Reply via email to