[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode a731ae6 157/346: Fix imenu for functions with param
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode a731ae6 157/346: Fix imenu for functions with parameter types containing parens |
Date: |
Sun, 29 Aug 2021 11:00:21 -0400 (EDT) |
branch: elpa/d-mode
commit a731ae620384e182c3c57030528d84c9c62f1d49
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix imenu for functions with parameter types containing parens
Support one-level-deep parens in parameters for now.
---
d-mode.el | 11 +++++++++--
tests/imenu.d | 5 ++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 4d6829a..585dfbe 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: 201610111901
+;; Version: 201610111913
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -491,7 +491,14 @@ The expression is added to
`compilation-error-regexp-alist' and
(zero-or-more (syntax whitespace)))
;; Arguments
- "(" (zero-or-more (not (any ")"))) ")"
+ "("
+ (zero-or-more (not (any "()")))
+ (zero-or-more
+ "("
+ (one-or-more (not (any "()")))
+ ")"
+ (zero-or-more (not (any "()"))))
+ ")"
(zero-or-more (syntax whitespace))
;; Pure/const etc.
diff --git a/tests/imenu.d b/tests/imenu.d
index 0ebddb2..34c2b55 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)
+// #out: (4 6 11 14 17 19)
void foo(int x) {}
@@ -15,3 +15,6 @@ extern (C) int rt_init()
{}
Duration dur(string units)(long length) @safe pure nothrow @nogc {}
+
+void test(const(char)* str)
+{}
- [nongnu] elpa/d-mode 805eeba 078/346: Add links to build and coverage status to README., (continued)
- [nongnu] elpa/d-mode 805eeba 078/346: Add links to build and coverage status to README., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8076559 081/346: Replace obsolete defadvice by the new advice-add., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ee38763 083/346: Use the new advising mechanism on new emacs versions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5c06e99 087/346: add d-exceptions compilation error regexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5501b77 096/346: Prepare for a formal release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 89339fa 100/346: Fix typo in comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 14e2e3b 105/346: Fix exponential fontification time of backslashes in WYSIWYG-literals, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 438cf53 109/346: fixed missing keyword "idouble", ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f6bf2b7 141/346: tests: Split test into individual ert tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 23d7a1a 148/346: tests: Fix testing compilation-mode buffers with Emacs 26, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a731ae6 157/346: Fix imenu for functions with parameter types containing parens,
ELPA Syncer <=
- [nongnu] elpa/d-mode ab1057f 159/346: Fix imenu for functions with tail qualifiers on their own line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f61e72c 173/346: Drop support for Emacs < 24.3, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 09745ba 175/346: Merge pull request #87 from CyberShadow/emacs-24-plus, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode cfd1d08 180/346: Use rx-to-string instead of rx-form to support Emacs master (#97), ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode af6dbfa 183/346: Generalize StorageClass/VisibilityAttribute parsing in imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2964263 184/346: Fix imenu with alias templates, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 71e8bda 196/346: Improve constructor handling and fix constructor contract indentation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 28810ef 194/346: Add test for function contracts, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1bce6c4 191/346: Somewhat improve fontification of module names, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b413942 198/346: Tighten K&R region detection, ELPA Syncer, 2021/08/29