[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rainbow-delimiters b3f87cfe99 072/188: Highlight delimiter
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rainbow-delimiters b3f87cfe99 072/188: Highlight delimiters even in already highlighted text. |
Date: |
Sat, 1 Jan 2022 00:58:53 -0500 (EST) |
branch: elpa/rainbow-delimiters
commit b3f87cfe999ff745185185dae7057b2de102aeae
Author: Fanael Linithien <fanael4@gmail.com>
Commit: Fanael Linithien <fanael4@gmail.com>
Highlight delimiters even in already highlighted text.
Fixes #10.
---
rainbow-delimiters.el | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index 704ac84ecf..ecb1143661 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -138,12 +138,6 @@
;; - Set up proper example defthemes for rainbow-delimiters faces.
;; - Intelligent support for other languages: Ruby, LaTeX tags, et al.
-;;; Issues:
-
-;; - Rainbow-delimiters mode does not appear to change the color of
-;; delimiters when Org-mode is also enabled.
-
-
;;; Code:
;; Note: some of the functions in this file have been inlined for speed.
@@ -423,11 +417,7 @@ The syntax table is constructed by the function
LOC is the location of the character to add text properties to.
DEPTH is the nested depth at LOC, which determines the face to use.
-MATCH is nil iff it's a mismatched closing delimiter.
-
-Sets text properties:
-`font-lock-face' to the appropriate delimiter face.
-`rear-nonsticky' to prevent color from bleeding into subsequent characters
typed by the user."
+MATCH is nil iff it's a mismatched closing delimiter."
(let ((delim-face (cond
((<= depth 0)
'rainbow-delimiters-unmatched-face)
@@ -435,10 +425,7 @@ Sets text properties:
'rainbow-delimiters-mismatched-face)
(t
(rainbow-delimiters-depth-face depth)))))
- ;; (when (eq depth -1) (message "Unmatched delimiter at char %s." loc))
- (add-text-properties loc (1+ loc)
- `(font-lock-face ,delim-face
- rear-nonsticky t))))
+ (font-lock-prepend-text-property loc (1+ loc) 'face delim-face)))
(defvar rainbow-delimiters-escaped-char-predicate nil)
(make-variable-buffer-local 'rainbow-delimiters-escaped-char-predicate)
- [nongnu] elpa/rainbow-delimiters 6345c1fa4b 040/188: Release rainbow-delimiters version 1.3.4 (2012-04-27)., (continued)
- [nongnu] elpa/rainbow-delimiters 6345c1fa4b 040/188: Release rainbow-delimiters version 1.3.4 (2012-04-27)., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 9d0683d77d 034/188: 6-15x Speed improvement by enhancing two key functions, see commit message for benchmarks., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 89b748e401 065/188: Make rainbow-delimiters-outermost-only-face-count customizable., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 4eae4bc56f 068/188: Reduce the amount of copy and paste in rainbow-delimiters-propertize-region., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 506fef695f 049/188: Allow the user to define the number of faces used only for the outermost level., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 5ab3135986 061/188: Fix a bug that caused (rainbow-delimiters-syntax-ppss 1) to return nil., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 43b02d2d20 075/188: Rename rainbow-delimiters-keywords., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters a095a77dc9 066/188: Correct the prefix of the rainbow-delimiters-faces group., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters d7946fdf94 078/188: Fix a typo in a comment., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 14e0f971f6 079/188: Call font-lock-{flush, fontify-buffer} only when font-lock-mode is on., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters b3f87cfe99 072/188: Highlight delimiters even in already highlighted text.,
ELPA Syncer <=
- [nongnu] elpa/rainbow-delimiters a37d19b415 082/188: Add a comment explaining the previous change., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 36efff58a8 081/188: Don't highlight delimiters inside comments starting with two chars., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 24f6c5767e 083/188: Release version 1.3.8., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 35eace73ca 084/188: Reuse parse-partial-sexp state in rainbow-delimiters-propertize., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters ddf7f179d3 085/188: Change defsubst -> defun., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 1305bca532 087/188: Use comment-search-forward to see if a delimiter starts a comment., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 6d488e566a 089/188: Test if comment-start-skip is non-nil before using it., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 3d425a85d3 094/188: Don't enable in Completion List Mode, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters ecacb319d3 093/188: Wrap the font-lock-fontify-buffer call with with-no-warnings., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 6cdf1f1c14 096/188: Merge pull request #38 from lunaryorn/patch-1, ELPA Syncer, 2022/01/01