[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 083954e 19/27: Restore compatibility with earlier Emacsen
From: |
Dmitry Gutov |
Subject: |
[elpa] master 083954e 19/27: Restore compatibility with earlier Emacsen |
Date: |
Sat, 29 Oct 2016 00:04:19 +0000 (UTC) |
branch: master
commit 083954e5c39b2cc10cfc12192099e76e2b84b072
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Restore compatibility with earlier Emacsen
#2
---
highlight-escape-sequences.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/highlight-escape-sequences.el b/highlight-escape-sequences.el
index 7780035..8245b76 100644
--- a/highlight-escape-sequences.el
+++ b/highlight-escape-sequences.el
@@ -103,7 +103,7 @@ Currently handles:
(and ?x (repeat 2 xdigit))
(and ?u (repeat 4 xdigit))
;; (any "\"\'\\bfnrtv")
- any))))) ;; deprecated
+ not-newline))))) ;; deprecated
"Regexp to match JavaScript escape sequences.
Currently handles:
@@ -124,7 +124,7 @@ Currently handles:
(0+ (1+ space)
(repeat 1 6 xdigit))
?})))
- any)))))
+ not-newline)))))
"Regexp to match Ruby escape sequences.
Currently handles:
@@ -145,8 +145,12 @@ Currently doesn't handle \\C-, \\M-, etc.")
(if (fboundp 'ruby-syntax-expansion-allowed-p)
(ruby-syntax-expansion-allowed-p state)
(memq term '(?\" ?/ ?\n ?` t))))
- (add-face-text-property (match-beginning 1) (match-end 1)
'hes-escape-backslash-face)
- (add-face-text-property (match-beginning 2) (match-end 2)
'hes-escape-sequence-face)
+ ;; TODO: Switch to `add-face-text-property' when we're
+ ;; fine with only supporting Emacs 24.4 and up.
+ (font-lock-prepend-text-property (match-beginning 1) (match-end 1)
+ 'face 'hes-escape-backslash-face)
+ (font-lock-prepend-text-property (match-beginning 2) (match-end 2)
+ 'face 'hes-escape-sequence-face)
nil))
prepend))))
- [elpa] master 74340d0 02/27: hes-ruby-keywords, fallback predicate: Allow in backquoted literals, (continued)
- [elpa] master 74340d0 02/27: hes-ruby-keywords, fallback predicate: Allow in backquoted literals, Dmitry Gutov, 2016/10/28
- [elpa] master 4425527 04/27: hes-simple-mode setter: Fix initialization; turn on when needed, Dmitry Gutov, 2016/10/28
- [elpa] master f7a0074 06/27: Wrong words on the screenshot, Dmitry Gutov, 2016/10/28
- [elpa] master 0df3e63 12/27: Remove explicit group, Dmitry Gutov, 2016/10/28
- [elpa] master 6bc14c4 16/27: Beautify hes-ruby-escape-sequence-keywords, Dmitry Gutov, 2016/10/28
- [elpa] master 828cdbb 08/27: Improve regexp and add two faces, Dmitry Gutov, 2016/10/28
- [elpa] master fc8f4e7 01/27: Initial commit, Dmitry Gutov, 2016/10/28
- [elpa] master 8098664 05/27: Add readme and screenshot, Dmitry Gutov, 2016/10/28
- [elpa] master 5d45ca5 13/27: Fix the Author: header, Dmitry Gutov, 2016/10/28
- [elpa] master a031ee2 20/27: Add Emacs Lisp and Clojure (same as Java), Dmitry Gutov, 2016/10/28
- [elpa] master 083954e 19/27: Restore compatibility with earlier Emacsen,
Dmitry Gutov <=
- [elpa] master 20d3190 22/27: Update copyright, Dmitry Gutov, 2016/10/28
- [elpa] master 02b8d09 10/27: Add more specific regexps, Dmitry Gutov, 2016/10/28
- [elpa] master 9c80a93 18/27: Merge pull request #1 from dev-plvlml/master, Dmitry Gutov, 2016/10/28
- [elpa] master 72c3cdc 07/27: Change wording, Dmitry Gutov, 2016/10/28
- [elpa] master 1e79174 11/27: Fix extra indent, Dmitry Gutov, 2016/10/28
- [elpa] master fa6dd96 24/27: Delete the obsolete alias, Dmitry Gutov, 2016/10/28
- [elpa] master ffb8c5d 21/27: Merge pull request #3 from plexus/add-elisp-clojure, Dmitry Gutov, 2016/10/28
- [elpa] master 0e74c8c 27/27: Add hes to externals-list, Dmitry Gutov, 2016/10/28
- [elpa] master fc206ba 17/27: Untabify indents, Dmitry Gutov, 2016/10/28
- [elpa] master c3f28f2 25/27: Shorten some lines, Dmitry Gutov, 2016/10/28