[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode dd3d682 225/352: Fix Emacs 23 error.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode dd3d682 225/352: Fix Emacs 23 error. |
Date: |
Sun, 29 Aug 2021 11:22:50 -0400 (EDT) |
branch: elpa/julia-mode
commit dd3d6825d667cf8eafe4d860b2c64d80ec6e5030
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@gmail.com>
Fix Emacs 23 error.
This constant is only used in Emacs 24+, and `syntax-propertize-rules`
is not defined in Emacs 23.
---
julia-mode.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 7cf2f56..916a274 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -278,14 +278,15 @@ Based on `python-syntax-stringify'."
(put-text-property string-start-pos (1+ string-start-pos)
'syntax-table (string-to-syntax "|"))))))
-(defconst julia-syntax-propertize-function
- (syntax-propertize-rules
- ("\"\"\""
- (0 (ignore (julia-stringify-triple-quote))))
- (julia-char-regex
- (1 "\"") ; Treat ' as a string delimiter.
- (2 ".") ; Don't highlight anything between.
- (3 "\"")))) ; Treat the last " in """ as a string delimiter.
+(unless (< emacs-major-version 24)
+ (defconst julia-syntax-propertize-function
+ (syntax-propertize-rules
+ ("\"\"\""
+ (0 (ignore (julia-stringify-triple-quote))))
+ (julia-char-regex
+ (1 "\"") ; Treat ' as a string delimiter.
+ (2 ".") ; Don't highlight anything between.
+ (3 "\""))))) ; Treat the last " in """ as a string delimiter.
(defun julia-in-comment ()
"Return non-nil if point is inside a comment.
- [nongnu] elpa/julia-mode 70d6482 160/352: `throw` and `error` are built-in functions that we should highlight., (continued)
- [nongnu] elpa/julia-mode 70d6482 160/352: `throw` and `error` are built-in functions that we should highlight., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ba5ba4c 168/352: Highlight function names when defined with the assignment syntax., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode caab4dc 172/352: Respect the active region when indenting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e5f8145 191/352: Use a separate face for Julia macro invocations., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 493fb7f 192/352: note #8947 in julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 569d41a 206/352: julia-mode.el: stagedfunction, @[no]inline, indented functions, "=:symbol", ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6f075d7 224/352: Use syntax-propertize-function on Emacs 24., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 96499ff 209/352: Silence Emacs byte-compilation warnings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c982fd6 216/352: Changed name of Emacs buffer to *Julia*, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7c1603c 226/352: Use more common name for indentation setting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dd3d682 225/352: Fix Emacs 23 error.,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 64d86a4 215/352: Added customization options, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c7e3232 218/352: some tuple redesign follow-ups, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5ee867e 211/352: Changed inferior-julia function in contrib/julia-mode.el to apply, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0c6673a 212/352: Changed input method for Julia Emacs buffer to TeX, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6781ef1 220/352: Fix #11673, bad indent after comments ending in =, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0526f2f 242/352: Fix spelling of 'delimiter', ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2b15d76 256/352: bol, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7802452 263/352: Merge pull request #35 from tpapp/fix-10, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9c36479 264/352: Merge pull request #36 from JuliaEditorSupport/jb/typekeywords, ELPA Syncer, 2021/08/29