[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode ab1057f 159/346: Fix imenu for functions with tail
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode ab1057f 159/346: Fix imenu for functions with tail qualifiers on their own line |
Date: |
Sun, 29 Aug 2021 11:00:21 -0400 (EDT) |
branch: elpa/d-mode
commit ab1057f405b18f52fb929c793ac001224a8f87b2
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix imenu for functions with tail qualifiers on their own line
---
d-mode.el | 20 +++++++++++---------
tests/imenu.d | 10 +++++++++-
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 752f5d8..1d382f6 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: 201610111915
+;; Version: 201610111924
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -468,27 +468,27 @@ The expression is added to
`compilation-error-regexp-alist' and
(rx
;; Whitespace
bol
- (zero-or-more (syntax whitespace))
+ (zero-or-more space)
;; Qualifiers
(zero-or-more
(one-or-more (any "a-z_@()C+"))
- (one-or-more (syntax whitespace)))
+ (one-or-more space))
;; Type
(group
(one-or-more (any "a-zA-Z0-9_.*![]()")))
- (one-or-more (syntax whitespace))
+ (one-or-more space)
;; Function name
(group
(one-or-more (any "a-zA-Z0-9_")))
- (zero-or-more (syntax whitespace))
+ (zero-or-more space)
;; Type arguments
(zero-or-one
"(" (zero-or-more (not (any ")"))) ")"
- (zero-or-more (syntax whitespace)))
+ (zero-or-more space))
;; Arguments
"("
@@ -499,17 +499,19 @@ The expression is added to
`compilation-error-regexp-alist' and
")"
(zero-or-more (not (any "()"))))
")"
- (zero-or-more (syntax whitespace))
+ (zero-or-more (any " \t\n"))
;; Pure/const etc.
(zero-or-more
(one-or-more (any "a-z@"))
- (zero-or-more (syntax whitespace)))
+ (zero-or-more (any " \t\n")))
;; ';' or 'if' or '{'
(or
";"
- (and (zero-or-more (any " \t\n")) (or "if" "{")))
+ (and
+ (zero-or-more (any " \t\n"))
+ (or "if" "{")))
))
(defun d-imenu-method-index-function ()
diff --git a/tests/imenu.d b/tests/imenu.d
index 546c09f..4df9e2e 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)
+// #out: (4 6 11 14 17 19 22 25)
void foo(int x) {}
@@ -21,3 +21,11 @@ void test(const(char)* str)
extern (C++) static const(char)* searchPath(Strings* path, const(char)* name,
bool cwd)
{}
+
+auto execute(in char[][] args,
+ const string[string] env = null,
+ Config config = Config.none,
+ size_t maxOutput = size_t.max,
+ in char[] workDir = null)
+ @trusted
+{}
- [nongnu] elpa/d-mode 8076559 081/346: Replace obsolete defadvice by the new advice-add., (continued)
- [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, 2021/08/29
- [nongnu] elpa/d-mode ab1057f 159/346: Fix imenu for functions with tail qualifiers on their own line,
ELPA Syncer <=
- [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
- [nongnu] elpa/d-mode 07cb4d0 199/346: Add d-lineup-arglists, ELPA Syncer, 2021/08/29