branch: elpa/highlight-parentheses commit 52a8d364474b41462ad771d91a68bcec4d8af828 Author: Tim Perkins <tpr...@gmail.com> Commit: Tim Perkins <tpr...@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))