[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 5dbec4a 146/346: Convert backquote-in-backtick-stri
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 5dbec4a 146/346: Convert backquote-in-backtick-string regexp to rx |
Date: |
Sun, 29 Aug 2021 11:00:19 -0400 (EDT) |
branch: elpa/d-mode
commit 5dbec4aa1bb4133d6d813f93c7eda0f84d698b9a
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Convert backquote-in-backtick-string regexp to rx
---
d-mode.el | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index bb8848d..f08e3ef 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -602,8 +602,22 @@ Key bindings:
;; 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
("`[^\\\\`]*?\\(\\(\\\\\\)[^\\\\`]*?\\)+?`" (2 "."))))))
+ (setq-local
+ syntax-propertize-function
+ (syntax-propertize-rules
+ ((rx
+ "`"
+ (minimal-match
+ (zero-or-more
+ (not (any "`\\"))))
+ (minimal-match
+ (one-or-more
+ (submatch "\\")
+ (minimal-match
+ (zero-or-more
+ (not (any "`\\"))))))
+ "`")
+ (1 "."))))))
;;----------------------------------------------------------------------------
;; "Hideous hacks" to support appropriate font-lock behaviour.
- [nongnu] elpa/d-mode 7c3bcdc 124/346: tests: Split test for #72 to its own file, (continued)
- [nongnu] elpa/d-mode 7c3bcdc 124/346: tests: Split test for #72 to its own file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c881155 126/346: .travis.yml: Switch to a different PPA in order to test on Emacs 25, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode eb92e64 127/346: .travis.yml: Switch to emacs-travis.mk, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode fef0def 128/346: tests: Add basic imenu test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c6e2c9a 129/346: Convert d-imenu-method-name-pattern to rx expression, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 2fd4691 133/346: tests: Disable #35 indentation test on Emacs 24.3, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 671ee7c 135/346: tests: Tweak version condition for #35 test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode d219e0e 139/346: README: Update Coveralls badge, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 53eac10 140/346: tests: Test paren-less calls as well in test for issue #26, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5547400 142/346: Update package version, and link to script to do it automatically, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5dbec4a 146/346: Convert backquote-in-backtick-string regexp to rx,
ELPA Syncer <=
- [nongnu] elpa/d-mode daf5e05 149/346: Add basic fontification test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 8318eef 151/346: tests: Work around 24.3 oddity to fix fontification tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 0f3bf01 150/346: tests: Use an older variable name to fix pre-25.1 fontification tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 6db43b2 153/346: tests: Add additional tests for #30, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c9e0b97 154/346: tests: Improve imenu test machinery, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e26260c 156/346: Fix imenu for functions with multiple tail qualifiers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode fda6318 165/346: Fix imenu for structs/classes with protection specifiers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode d7f46a2 166/346: Add aliases to imenu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 98af62e 167/346: tests: Add test for #26 variant with compile- and run-time argument lists, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a97c92c 168/346: d-mode: Remove 'bit' from keyword list., ELPA Syncer, 2021/08/29