branch: elpa/d-mode
commit 26e7337cf3106cb51041ac92fffc9f1d03ad33d4
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Don't put variables in imenu
More noise than signal.
---
d-mode.el | 4 ++--
tests/imenu2.d | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 4851637..d807544 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -7,7 +7,7 @@
;; Maintainer: Russel Winder <[email protected]>
;; Vladimir Panteleev <[email protected]>
;; Created: March 2007
-;; Version: 201909102141
+;; Version: 201909102143
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -914,7 +914,7 @@ Each list item should be a regexp matching a single
identifier."
((equal type-prev-token "alias")
'("alias" nil)) ; old-style alias
((memq next-char '(?\; ?= ?,))
- '("variable" nil))
+ nil) ; '("variable" nil))
((member name '("import" "if"))
nil) ; static import/if
((memq next-char '(?\())
diff --git a/tests/imenu2.d b/tests/imenu2.d
index 3ef28b2..c10a5c0 100644
--- a/tests/imenu2.d
+++ b/tests/imenu2.d
@@ -1,6 +1,6 @@
// #min-version: 26.1
// #run: (d-test-get-imenu-lines)
-// #out: (5 6 8 13 18 20 24 28 33 37 40 42 46 49 50 51 52)
+// #out: (5 6 13 18 20 24 28 33 37 40 42 46 49 50 51 52)
void run(Parameter!("foo()") command) {}
Parameter!("foo()") run(string command) {}