[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 459732e 243/346: Fix parsing associative arrays in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 459732e 243/346: Fix parsing associative arrays in function types |
Date: |
Sun, 29 Aug 2021 11:00:38 -0400 (EDT) |
branch: elpa/d-mode
commit 459732ed132a481ebc04c38d02174c6dff991c95
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix parsing associative arrays in function types
---
d-mode.el | 4 ++--
tests/fonts_types.d | 2 ++
tests/fonts_types.d.html | 2 ++
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 5ba21c9..c8419a8 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: 201909092140
+;; Version: 201909092149
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "25.1"))
@@ -983,7 +983,7 @@ Key bindings:
(not (looking-at (c-lang-const d-type-modifier-key)))
(save-excursion
(c-forward-token-2) ; maybe variable/function name
- (not (looking-at c-identifier-start)))) ; ( or ; or =
+ (looking-at "[(;=]")))
(setq res t))
;; D: const/immutable/...(...)
diff --git a/tests/fonts_types.d b/tests/fonts_types.d
index 2762e77..64432c5 100644
--- a/tests/fonts_types.d
+++ b/tests/fonts_types.d
@@ -11,3 +11,5 @@ Parameter!("foo()").Foo var;
void foo(in Type var);
void foo(out Type var);
+
+static string[string] applyEnv(in string[string] target, in string[string]
source);
diff --git a/tests/fonts_types.d.html b/tests/fonts_types.d.html
index 37d10e9..5856086 100644
--- a/tests/fonts_types.d.html
+++ b/tests/fonts_types.d.html
@@ -11,3 +11,5 @@
<span class="type">void</span> <span class="function-name">foo</span>(<span
class="keyword">in</span> <span class="type">Type</span> <span
class="variable-name">var</span>);
<span class="type">void</span> <span class="function-name">foo</span>(<span
class="keyword">out</span> <span class="type">Type</span> <span
class="variable-name">var</span>);
+
+<span class="keyword">static</span> <span class="type">string</span>[<span
class="type">string</span>] <span class="function-name">applyEnv</span>(<span
class="keyword">in</span> <span class="type">string</span>[<span
class="type">string</span>] <span class="variable-name">target</span>, <span
class="keyword">in</span> <span class="type">string</span>[<span
class="type">string</span>] <span class="variable-name">source</span>);
- [nongnu] elpa/d-mode b4496fc 300/346: Conditionally compile out code for newer Emacs versions, (continued)
- [nongnu] elpa/d-mode b4496fc 300/346: Conditionally compile out code for newer Emacs versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4b3cf20 305/346: Be more restrictive when recognizing lambdas, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 6624fcb 326/346: Unbreak indentation of access labels, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1931ec9 330/346: Merge pull request #103 from CyberShadow/pull-20201201-111620, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode daaa518 336/346: Migrate from Travis CI to GitHub Actions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 203ef14 335/346: Don't call easy-menu-add on Emacs 28+, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 80fad30 345/346: Merge pull request #108 from CyberShadow/github-actions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e42c1c1 340/346: Implement r"..." string literal syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode dee393b 228/346: Fix setting the mode menu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ac898c0 245/346: Fix parsing of scope-statements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 459732e 243/346: Fix parsing associative arrays in function types,
ELPA Syncer <=
- [nongnu] elpa/d-mode 362be11 250/346: Fix imenu false positive with e.g. private{...}, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ea32e73 264/346: Makefile: Test byte-compiled version, too, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 979c946 256/346: Fix testing multiple nested imenu entries, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8ffe5ac 265/346: Remove doxygen-font-lock-*, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 80f2019 261/346: Don't nest imenu to arbitrary depths, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode bdd5d78 281/346: Replace d-forward-decl-or-cast-1 implementation with a custom one, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 02d1c7f 290/346: tests: Add more binary operation tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 09ecdaa 303/346: Add "make coverage", ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 166fac8 313/346: Fix fontification of second foreach variable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 0d45ab2 315/346: Fix brace stack logic creating unbalanced stacks, ELPA Syncer, 2021/08/29