branch: elpa/d-mode
commit ace2970ef7e5e6e8c624feacdb270e40f7f90d38
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Fix imenu for functions with parameters defaulting to function calls
Just look at the tests, okay?
---
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 4eba223..9d49250 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: 201610111943
+;; Version: 201610111946
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -509,7 +509,7 @@ The expression is added to `compilation-error-regexp-alist'
and
(zero-or-more (not (any "()")))
(zero-or-more
"("
- (one-or-more (not (any "()")))
+ (zero-or-more (not (any "()")))
")"
(zero-or-more (not (any "()"))))
")"
diff --git a/tests/imenu.d b/tests/imenu.d
index 7325796..a5adb59 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 22 25 33 34 37 40)
+// #out: (4 6 11 14 17 19 22 25 33 34 37 40 43)
void foo(int x) {}
@@ -39,3 +39,6 @@ enum ClockType
enum Foo : int
{}
+
+string absolutePath(string path, lazy string base = getcwd())
+{}