[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode facf01a 187/346: Fix imenu with inout types
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode facf01a 187/346: Fix imenu with inout types |
Date: |
Sun, 29 Aug 2021 11:00:27 -0400 (EDT) |
branch: elpa/d-mode
commit facf01af2d47f499375449aca08c47de2a09e63a
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix imenu with inout types
---
d-mode.el | 26 +++++++++++++++++++-------
tests/imenu.d | 5 ++++-
2 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index d2eae9a..d439dd4 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: 201908262331
+;; Version: 201908262342
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "24.3"))
@@ -251,9 +251,9 @@ The expression is added to `compilation-error-regexp-alist'
and
;; Keywords that can prefix normal declarations of identifiers
(c-lang-defconst c-modifier-kwds
- d '("__gshared" "abstract" "deprecated" "extern"
- "final" "in" "out" "inout" "lazy" "mixin" "override" "private"
- "protected" "public" "ref" "scope" "shared" "static" "synchronized"
+ d '("abstract" "deprecated" "extern"
+ "final" "in" "out" "lazy" "mixin" "override" "private"
+ "protected" "public" "ref" "scope" "static" "synchronized"
"volatile" "__vector"))
(c-lang-defconst c-class-decl-kwds
@@ -265,7 +265,7 @@ The expression is added to `compilation-error-regexp-alist'
and
;; d '("enum"))
(c-lang-defconst c-type-modifier-kwds
- d '("__gshared" "inout" "lazy" "shared" "volatile"
+ d '("lazy" "volatile"
"invariant" "enum" "__vector"))
(c-lang-defconst c-type-prefix-kwds
@@ -294,7 +294,7 @@ The expression is added to `compilation-error-regexp-alist'
and
(c-lang-defconst c-protection-kwds
;; Access protection label keywords in classes.
d '("deprecated" "static" "extern" "final" "synchronized" "override"
- "abstract" "scope" "inout" "shared" "__gshared"
+ "abstract" "scope"
"private" "package" "protected" "public" "export"))
;;(c-lang-defconst c-postfix-decl-spec-kwds
@@ -879,7 +879,19 @@ Key bindings:
(d-try-match-decl d-fun-decl-pattern))
(defun d-match-auto (limit)
"Helper function." ;; checkdoc-params: limit
- (c-syntactic-re-search-forward "\\<\\(auto\\|const\\|immutable\\)\\>" limit
t))
+ (c-syntactic-re-search-forward
+ (rx
+ word-start
+ (group
+ (or
+ "auto"
+ "const"
+ "immutable"
+ "inout"
+ "shared"
+ "__gshared"))
+ word-end)
+ limit t))
(font-lock-add-keywords
'd-mode
diff --git a/tests/imenu.d b/tests/imenu.d
index 1cfee1b..5b4dd0b 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)
+// #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)
void foo(int x) {}
@@ -89,3 +89,6 @@ public alias Regex(Char) = std.regex.internal.ir.Regex!(Char);
string relativePath(CaseSensitive cs = CaseSensitive.osDefault)
(string path, lazy string base = getcwd())
{}
+
+inout(ubyte) bytes(){}
+immutable(ubyte) bytes(){}
- [nongnu] elpa/d-mode 2ef7c5c 077/346: Add d-mode testing infrastructure., (continued)
- [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, 2021/08/29
- [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 <=
- [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
- [nongnu] elpa/d-mode f7ac740 235/346: Fix imenu classification of some variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 29940d7 226/346: Makefile: Add some utility commands, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode d14a001 239/346: Fix imenu false positive for static imports, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8606775 240/346: Fix imenu jump position for new-style aliases, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1908f59 236/346: Speed up imenu a bit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 627a6f8 273/346: Move c-forward-decl-or-cast-1 into d-mode.el, ELPA Syncer, 2021/08/29