emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode ace2970 164/346: Fix imenu for functions with param


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode ace2970 164/346: Fix imenu for functions with parameters defaulting to function calls
Date: Sun, 29 Aug 2021 11:00:22 -0400 (EDT)

branch: elpa/d-mode
commit ace2970ef7e5e6e8c624feacdb270e40f7f90d38
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>

    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 <russel@winder.org.uk>
 ;;              Vladimir Panteleev <vladimir@thecybershadow.net>
 ;; 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())
+{}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]