[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode f2b4aec 205/346: Fix fontification of "a in b" expr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode f2b4aec 205/346: Fix fontification of "a in b" expressions |
Date: |
Sun, 29 Aug 2021 11:00:31 -0400 (EDT) |
branch: elpa/d-mode
commit f2b4aeca8961ba7db65bbde8192e005021ed9f72
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Fix fontification of "a in b" expressions
Don't put "in" in c-modifier-kwds for this reason, as it's also an
infix operator.
---
d-mode.el | 6 +++---
tests/fonts.d | 3 +++
tests/fonts.d.html | 3 +++
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 53b2894..e4ac593 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: 201909081425
+;; Version: 201909081431
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "24.3"))
@@ -252,7 +252,7 @@ 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 '("abstract" "deprecated" "extern"
- "final" "in" "out" "lazy" "mixin" "override" "private"
+ "final" "out" "lazy" "mixin" "override" "private"
"protected" "public" "ref" "scope" "static" "synchronized"
"volatile" "__vector"))
@@ -385,7 +385,7 @@ The expression is added to `compilation-error-regexp-alist'
and
(c-lang-defconst c-other-kwds
;; Keywords not accounted for by any other `*-kwds' language constant.
- d '("__gshared" "__traits" "assert" "cast" "is" "nothrow" "pure" "ref"
+ d '("__gshared" "__traits" "assert" "cast" "in" "is" "nothrow" "pure" "ref"
"sizeof" "typeid" "typeof"))
diff --git a/tests/fonts.d b/tests/fonts.d
index 3c4ce87..27601ae 100644
--- a/tests/fonts.d
+++ b/tests/fonts.d
@@ -3,4 +3,7 @@
void main()
{
assert(true);
+
+ string[string] aa; string s;
+ assert(s in aa);
}
diff --git a/tests/fonts.d.html b/tests/fonts.d.html
index 8096111..6582a32 100644
--- a/tests/fonts.d.html
+++ b/tests/fonts.d.html
@@ -3,4 +3,7 @@
<span class="type">void</span> <span class="function-name">main</span>()
{
<span class="keyword">assert</span>(<span class="constant">true</span>);
+
+ <span class="type">string</span>[<span class="type">string</span>]
<span class="variable-name">aa</span>; <span class="type">string</span> <span
class="variable-name">s</span>;
+ <span class="keyword">assert</span>(s <span class="keyword">in</span>
aa);
}
- [nongnu] elpa/d-mode 1afddc7 190/346: Fix a typo in a regex, (continued)
- [nongnu] elpa/d-mode 1afddc7 190/346: Fix a typo in a regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 382a677 195/346: Use c-major-mode-is, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9edcfbd 197/346: Remove unused bits from d-in-knr-argdecl, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 175c6e5 193/346: Fix indentation of function constraints/contracts?, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5fdba4e 202/346: Add pragma keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 51b1af1 203/346: Fix K&R region detection and body-less function declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b5fb492 204/346: Fix fontification of manifest (enum) constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e52434e 218/346: d-mode-test.el: Save actual result to file in case of mismatch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 609816b 219/346: tests: Move d-forward-type tests to new test file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4d9f9ce 211/346: Drop support for Emacs 24, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f2b4aec 205/346: Fix fontification of "a in b" expressions,
ELPA Syncer <=
- [nongnu] elpa/d-mode f69e94e 207/346: Change test suite enumeration and activation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b0a59de 214/346: Fix mis-parsing of concatenating two variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 445c696 210/346: Implement a more complete description for D type syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ed0de34 222/346: Refactor "this" (constructor) handling, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode aaa704a 216/346: Fix coverage issues in d-forward-type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 572d707 221/346: Improve comprehension of constness and storage classes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 64afe5f 206/346: .travis.yml: Test against more Emacs versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 02733b0 223/346: Remove some redundant progns, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c9febb3 299/346: d-mode-test: Always ignore .res files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2d4bc7d 318/346: Update comments, ELPA Syncer, 2021/08/29