[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 1407db2 163/346: Add enums to imenu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 1407db2 163/346: Add enums to imenu |
Date: |
Sun, 29 Aug 2021 11:00:22 -0400 (EDT) |
branch: elpa/d-mode
commit 1407db27599cd01a729ecc1a0399d68606920ff9
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Add enums to imenu
---
d-mode.el | 18 +++++++++++++++++-
tests/imenu.d | 7 ++++++-
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index e35392e..4eba223 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: 201610111931
+;; Version: 201610111943
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -619,6 +619,22 @@ The expression is added to
`compilation-error-regexp-alist' and
(?A . ?Z)
(?a . ?z)))))
1)
+ ("*Enums*"
+ ,(rx
+ line-start
+ (zero-or-more (syntax whitespace))
+ word-start
+ "enum"
+ (one-or-more (syntax whitespace))
+ (submatch
+ (one-or-more
+ (any ?_
+ (?0 . ?9)
+ (?A . ?Z)
+ (?a . ?z))))
+ (zero-or-more (any " \t\n"))
+ (or ":" "{"))
+ 1)
(nil d-imenu-method-index-function 2)))
;;----------------------------------------------------------------------------
diff --git a/tests/imenu.d b/tests/imenu.d
index 44d997c..7325796 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)
+// #out: (4 6 11 14 17 19 22 25 33 34 37 40)
void foo(int x) {}
@@ -34,3 +34,8 @@ version(StdDdoc) string readLink(C)(const(C)[] link) @safe;
else version(Posix) string readLink(C)(const(C)[] link) @safe
{}
+enum ClockType
+{}
+
+enum Foo : int
+{}
- [nongnu] elpa/d-mode b5d936d 178/346: Fix imenu hang with unterminated function declaration, (continued)
- [nongnu] elpa/d-mode b5d936d 178/346: Fix imenu hang with unterminated function declaration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode df1edde 182/346: Fix imenu with extern declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 3f34028 185/346: Fix imenu with AtAttributes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b7dc06e 186/346: Fix imenu with function non-template arg list on own line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1ec5880 188/346: Fix another bug related to `-delimited strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 781a94d 068/346: Add doc-comment style that recognizes doxygen and D doc-comments., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2ef7c5c 077/346: Add d-mode testing infrastructure., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e35790c 137/346: tests: Disable #39 test for Emacs <24.4 too, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4f67ef2 143/346: Add self as maintainer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2de6f73 145/346: Fix indentation on Emacs 26, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1407db2 163/346: Add enums to imenu,
ELPA Syncer <=
- [nongnu] elpa/d-mode ace2970 164/346: Fix imenu for functions with parameters defaulting to function calls, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8d0ed04 172/346: README: Use syntax highlighting in code blocks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 026fceb 176/346: Update auto-mode-alist when run from init file (fixes #88) (#89), ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 385cda4 177/346: Fix extant checkdoc, byte-compilation and fontification warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 86a86dd 110/346: Merge pull request #68 from sdilts/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode facf01a 187/346: Fix imenu with inout types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 951ca5c 212/346: Remove code incompatible with older Emacs versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4dce323 229/346: README.md: Add note about compatibility, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b1d752a 233/346: Fix buffer modification when invoking imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 441761c 237/346: Delete old keyword lists for imenu, ELPA Syncer, 2021/08/29