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

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

[nongnu] elpa/d-mode 93a62b3 158/346: Fix imenu for functions returning


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 93a62b3 158/346: Fix imenu for functions returning types containing parens
Date: Sun, 29 Aug 2021 11:00:21 -0400 (EDT)

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

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



reply via email to

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