branch: elpa/d-mode
commit 93a62b3a21a7fcc2efba6714d3a1f55ac34385ed
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Fix imenu for functions returning types containing parens
---
d-mode.el | 4 ++--
tests/imenu.d | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 585dfbe..752f5d8 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: 201610111913
+;; Version: 201610111915
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -477,7 +477,7 @@ The expression is added to `compilation-error-regexp-alist'
and
;; Type
(group
- (one-or-more (any "a-zA-Z0-9_.*![]")))
+ (one-or-more (any "a-zA-Z0-9_.*![]()")))
(one-or-more (syntax whitespace))
;; Function name
diff --git a/tests/imenu.d b/tests/imenu.d
index 34c2b55..546c09f 100644
--- a/tests/imenu.d
+++ b/tests/imenu.d
@@ -1,5 +1,5 @@
// #run: (d-test-get-imenu-lines)
-// #out: (4 6 11 14 17 19)
+// #out: (4 6 11 14 17 19 22)
void foo(int x) {}
@@ -18,3 +18,6 @@ Duration dur(string units)(long length) @safe pure nothrow
@nogc {}
void test(const(char)* str)
{}
+
+extern (C++) static const(char)* searchPath(Strings* path, const(char)* name,
bool cwd)
+{}