emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/highlight-parentheses 52a8d36 33/49: Added other brackets,


From: ELPA Syncer
Subject: [nongnu] elpa/highlight-parentheses 52a8d36 33/49: Added other brackets, so it works with other languages.
Date: Sun, 15 Aug 2021 03:57:48 -0400 (EDT)

branch: elpa/highlight-parentheses
commit 52a8d364474b41462ad771d91a68bcec4d8af828
Author: Tim Perkins <tprk77@gmail.com>
Commit: Tim Perkins <tprk77@gmail.com>

    Added other brackets, so it works with other languages.
---
 highlight-parentheses.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/highlight-parentheses.el b/highlight-parentheses.el
index fcdb5ab..58f7481 100644
--- a/highlight-parentheses.el
+++ b/highlight-parentheses.el
@@ -109,9 +109,9 @@ This is used to prevent analyzing the same context over and 
over.")
       (save-excursion
         (ignore-errors
           (when hl-paren-highlight-adjacent
-            (cond ((eq ?\) (preceding-char))
+            (cond ((memq (preceding-char) '(?\) ?\} ?\]))
                    (backward-char 1))
-                  ((eq ?\( (following-char))
+                  ((memq (following-char) '(?\( ?\{ ?\[))
                    (forward-char 1))))
           (while (and (setq pos1 (cadr (syntax-ppss pos1)))
                       (cdr overlays))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]