[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 300708d 268/346: Fix imenu for template members
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 300708d 268/346: Fix imenu for template members |
Date: |
Sun, 29 Aug 2021 11:00:43 -0400 (EDT) |
branch: elpa/d-mode
commit 300708d266f80f2d10419ff1e218d51eb3d90699
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix imenu for template members
---
d-mode.el | 5 +++--
tests/imenu.d | 7 ++++++-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index d36c024..f237547 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: 201909121912
+;; Version: 201911071726
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -987,7 +987,8 @@ Currently handles `-delimited string literals."
(setq s (cons -1 (cdr s))))
((and (equal match ",")
(eq (car s) -1))) ; at "," in "class foo : bar, ..."
- ((member match '(";" "," ")"))
+ ;; D: Ignore ")", which can be part of parameter lists
+ ((member match '(";" ","))
(when (and s (cdr s) (<= (car s) 0))
(setq s (cdr s))))
((c-keyword-member kwd-sym 'c-flat-decl-block-kwds)
diff --git a/tests/imenu.d b/tests/imenu.d
index 5b4dd0b..690aad8 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 43 46 49 52 54 56 67 75 78 81 84
87 89 93 94)
+// #out: (4 6 11 14 17 19 22 25 33 34 37 40 43 46 49 52 54 56 67 75 78 81 84
87 89 93 94 96 98)
void foo(int x) {}
@@ -92,3 +92,8 @@ string relativePath(CaseSensitive cs =
CaseSensitive.osDefault)
inout(ubyte) bytes(){}
immutable(ubyte) bytes(){}
+
+mixin template MT()
+{
+ void fun() {}
+}
- [nongnu] elpa/d-mode 1e5c7c3 227/346: Fix parsing of declarations following protection group, (continued)
- [nongnu] elpa/d-mode 1e5c7c3 227/346: Fix parsing of declarations following protection group, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f8c37b9 260/346: Implement parsing module names in import and module declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 3c7db4a 255/346: Fix imenu context with multiple nesting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 3ed3b7b 257/346: Simplify imenu testing code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f1d37dd 263/346: Fix byte-compiled version, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 060d1f3 249/346: Fix parsing of version(...) and other non-scope blocks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2529eb2 259/346: Add a TODO, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8d30f6b 246/346: Add back the old imenu implementation for Emacs 25, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 7d39bdf 269/346: Add missing "package" keyword to c-modifier-kwds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ed4428c 272/346: Fix fontification of "invariant", ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 300708d 268/346: Fix imenu for template members,
ELPA Syncer <=
- [nongnu] elpa/d-mode 685a8cc 271/346: Expand "is" rule for other infix keyword variants and negation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4dd90f3 277/346: Consolidate c-forward-decl-or-cast-1 "else" patch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 6417bf5 279/346: d-mode-test: Stop catching exceptions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 7c72767 280/346: d-mode-test: Fix saving results of mis-indenting tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode acaf2fb 278/346: Call d-forward-decl-or-cast-1 directly, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5abe29d 276/346: Consolidate c-forward-decl-or-cast-1 c-forward-name patch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 0cbb2ab 288/346: tests: New testcase, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e2b70b7 289/346: tests: New testcase, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c2f332e 291/346: tests: Add test for c-decl-start-kwds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c1f5d0d 298/346: Remove a redundant (or), ELPA Syncer, 2021/08/29