[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f88e21c 29/79: Ignore escaped characters.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master f88e21c 29/79: Ignore escaped characters. |
Date: |
Sun, 14 Jun 2015 00:05:28 +0000 |
branch: master
commit f88e21c28038ccbe46c8e87446a78da53b6c515b
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Ignore escaped characters.
---
context-coloring.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index 9b53fd1..61f5a31 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -668,7 +668,7 @@ provide visually \"instant\" updates at 60 frames per
second.")
(defun context-coloring-elisp-colorize-comments-and-strings-in-region (start
end)
(let (syntax-code)
(goto-char start)
- (while (> end (progn (skip-syntax-forward "^<\"" end)
+ (while (> end (progn (skip-syntax-forward "^<\"\\" end)
(point)))
(setq syntax-code (context-coloring-get-syntax-code))
(cond
@@ -676,13 +676,15 @@ provide visually \"instant\" updates at 60 frames per
second.")
(context-coloring-elisp-colorize-comment))
((= syntax-code context-coloring-STRING-QUOTE-CODE)
(context-coloring-elisp-colorize-string))
+ ((= syntax-code context-coloring-ESCAPE-CODE)
+ (forward-char 2))
(t
(forward-char))))))
(defun context-coloring-elisp-colorize-region (start end)
(let (syntax-code)
(goto-char start)
- (while (> end (progn (skip-syntax-forward "^()w_'<\"" end)
+ (while (> end (progn (skip-syntax-forward "^()w_'<\"\\" end)
(point)))
(setq syntax-code (context-coloring-get-syntax-code))
(cond
@@ -695,6 +697,8 @@ provide visually \"instant\" updates at 60 frames per
second.")
(context-coloring-elisp-colorize-comment))
((= syntax-code context-coloring-STRING-QUOTE-CODE)
(context-coloring-elisp-colorize-string))
+ ((= syntax-code context-coloring-ESCAPE-CODE)
+ (forward-char 2))
(t
(forward-char))))))
- [elpa] master 6090eb3 17/79: Pass quote test with recursive colorizer., (continued)
- [elpa] master 6090eb3 17/79: Pass quote test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master f1ed39f 21/79: Pass comment and string tests with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master d146af8 23/79: Fix string coloring., Jackson Ray Hamilton, 2015/06/13
- [elpa] master aaf4835 20/79: Remove let-varlist data structure. Cleanup., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 49265ab 25/79: Simplify comment and string parsing., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 52383b5 26/79: Handle octothorpes., Jackson Ray Hamilton, 2015/06/13
- [elpa] master a283883 24/79: Always colorize the remaining region., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 3d3c693 22/79: Pass interrupt test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 966bd20 31/79: Add test for escape characters., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 7ab01e3 30/79: Fix ignored test., Jackson Ray Hamilton, 2015/06/13
- [elpa] master f88e21c 29/79: Ignore escaped characters.,
Jackson Ray Hamilton <=
- [elpa] master e06f1a6 27/79: Color comments and strings inside quotes., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 5a8186b 34/79: Color comments and strings inside defuns., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 4b25191 28/79: Refactor benchmarks. Improve benchmark reliability., Jackson Ray Hamilton, 2015/06/13
- [elpa] master f3697c0 35/79: Strings are sexps., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 87893df 32/79: Support comma splicing., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 7167e93 19/79: Pass let and let* tests with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master af4f773 33/79: Colorize comments and strings inside backquotes., Jackson Ray Hamilton, 2015/06/13
- [elpa] master acaaf39 38/79: Add file statistics to benchmarks., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 8836df9 37/79: Add colorization times to logs., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 5661ed0 44/79: Document `:host' and `:port' properties., Jackson Ray Hamilton, 2015/06/13