[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode e81e5f7 147/346: Register our syntax-propertize-fun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode e81e5f7 147/346: Register our syntax-propertize-function before calling c-common-init |
Date: |
Sun, 29 Aug 2021 11:00:19 -0400 (EDT) |
branch: elpa/d-mode
commit e81e5f7d1e35fcafd3180cf1fded2a5eae955d69
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
Register our syntax-propertize-function before calling c-common-init
This fixes backtick fontification when initially opening a buffer in
Emacs 26 (#21).
---
d-mode.el | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index f08e3ef..9724631 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: 201610111121
+;; Version: 201610111435
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -592,11 +592,7 @@ Key bindings:
(c-init-language-vars d-mode)
(when (fboundp 'c-make-noise-macro-regexps)
(c-make-noise-macro-regexps))
- (c-common-init 'd-mode)
- (easy-menu-add d-menu)
- (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
@@ -617,7 +613,13 @@ Key bindings:
(zero-or-more
(not (any "`\\"))))))
"`")
- (1 "."))))))
+ (1 ".")))))
+
+ (c-common-init 'd-mode)
+ (easy-menu-add d-menu)
+ (c-run-mode-hooks 'c-mode-common-hook 'd-mode-hook)
+ (c-update-modeline)
+ (cc-imenu-init d-imenu-generic-expression))
;;----------------------------------------------------------------------------
;; "Hideous hacks" to support appropriate font-lock behaviour.
- [nongnu] elpa/d-mode 71ab5eb 111/346: Update comments, and rolling release date/time. Add a tag to get a stable release., (continued)
- [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
- [nongnu] elpa/d-mode 3e5a5d5 131/346: tests: Add test case for pull request #35, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode be57907 132/346: tests: Make do-one-test never throw, always return nil/t, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 441b866 134/346: tests: Actually test indentation for issue #39, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode baf1669 138/346: tests: Add tests for issue #26., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e81e5f7 147/346: Register our syntax-propertize-function before calling c-common-init,
ELPA Syncer <=
- [nongnu] elpa/d-mode 739a31e 160/346: Fix imenu for functions with line comments before the body, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e64d5fc 169/346: .travis.yml: Update with emacs-travis compatibility updates, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b5d936d 178/346: Fix imenu hang with unterminated function declaration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode df1edde 182/346: Fix imenu with extern declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 3f34028 185/346: Fix imenu with AtAttributes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b7dc06e 186/346: Fix imenu with function non-template arg list on own line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1ec5880 188/346: Fix another bug related to `-delimited strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 781a94d 068/346: Add doc-comment style that recognizes doxygen and D doc-comments., ELPA Syncer, 2021/08/29
- [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