branch: elpa/d-mode
commit 739a31ec691dc83c5de50c1ae4a87432f202b2c4
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Fix imenu for functions with line comments before the body
---
d-mode.el | 7 ++++++-
tests/imenu.d | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 1d382f6..9667b60 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: 201610111924
+;; Version: 201610111926
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -506,6 +506,11 @@ The expression is added to
`compilation-error-regexp-alist' and
(one-or-more (any "a-z@"))
(zero-or-more (any " \t\n")))
+ (zero-or-more
+ "//"
+ (zero-or-more not-newline)
+ (zero-or-more space))
+
;; ';' or 'if' or '{'
(or
";"
diff --git a/tests/imenu.d b/tests/imenu.d
index 4df9e2e..eec7a62 100644
--- a/tests/imenu.d
+++ b/tests/imenu.d
@@ -27,5 +27,5 @@ auto execute(in char[][] args,
Config config = Config.none,
size_t maxOutput = size_t.max,
in char[] workDir = null)
- @trusted
+ @trusted //TODO: @safe
{}