[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 2682220 091/346: Merge branch 'dmakarov-master'
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 2682220 091/346: Merge branch 'dmakarov-master' |
Date: |
Sun, 29 Aug 2021 11:00:09 -0400 (EDT) |
branch: elpa/d-mode
commit 268222001113f1de8841f7227be6bce65945bcd7
Merge: fbd1f8b e19d704
Author: Russel Winder <russel@winder.org.uk>
Commit: Russel Winder <russel@winder.org.uk>
Merge branch 'dmakarov-master'
---
d-mode.el | 6 +++++-
tests/I0021.d | 3 +++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index 22cbc34..6b36223 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -534,9 +534,13 @@ Key bindings:
(c-run-mode-hooks 'c-mode-common-hook 'd-mode-hook)
(c-update-modeline)
(cc-imenu-init d-imenu-generic-expression)
+ ;; Generate a function that applies D-specific syntax properties.
+ ;; Concretely, inside back-quoted string literals the backslash
+ ;; character '\' is treated as a punctuation symbol. See help for
+ ;; syntax-propertize-rules function for more information.
(when (version<= "24.3" emacs-version)
(setq-local syntax-propertize-function
- (syntax-propertize-rules ("`\\(\\\\\\)`" (1 "."))))))
+ (syntax-propertize-rules ("`\\([^`]*\\(\\\\\\)[^`]*\\)+`" (2
"."))))))
;;----------------------------------------------------------------------------
;; "Hideous hacks" to support appropriate font-lock behaviour.
diff --git a/tests/I0021.d b/tests/I0021.d
new file mode 100644
index 0000000..090bae6
--- /dev/null
+++ b/tests/I0021.d
@@ -0,0 +1,3 @@
+// #run: (goto-char 74) (c-literal-limits)
+// #out: (72 . 77)
+auto x = `ab\`; // something else
- [nongnu] elpa/d-mode 27fbe66 065/346: Workaround for special case of 'else static if'., (continued)
- [nongnu] elpa/d-mode 27fbe66 065/346: Workaround for special case of 'else static if'., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 85a0900 067/346: Update the URL to the D main website., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5c5a2b1 071/346: Merge pull request #37 from dmakarov/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e2a1289 074/346: Remove duplicate keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 075c3e7 075/346: Fix indentation of 'else verbose' and 'else debug' statements., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a081749 079/346: Fix clean target., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4f2994b 082/346: Add more code to the I0039 test., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f184116 084/346: Borrow from cc-mode regression testsuit harness functions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 322250a 088/346: Merge pull request #46 from dmakarov/testing, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ed4ae58 086/346: Add MELPA badge., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2682220 091/346: Merge branch 'dmakarov-master',
ELPA Syncer <=
- [nongnu] elpa/d-mode 11cda40 093/346: Merge pull request #48 from dmakarov/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9a89656 102/346: Merge pull request #61 from CyberShadow/pull-20160327-114822, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 7d4d637 101/346: Merge pull request #57 from MartinNowak/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 829e54f 104/346: Merge pull request #63 from CyberShadow/pull-20160328-152643, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 71ab5eb 111/346: Update comments, and rolling release date/time. Add a tag to get a stable release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8d9be09 107/346: Correct README, as per Issue #66., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a967acd 113/346: Correct d-exceptions regexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode aba7187 117/346: Merge pull request #69 from CyberShadow/pull-20160611-224824, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 38127d8 125/346: README: Don't use testing branch in shield URLs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 03cd06c 130/346: tests: Add imenu test for 72d2022b606c1ce72bc3e09ecd0679fa057d9496, ELPA Syncer, 2021/08/29