diff options
| author | Stefan Monnier | 2005-11-20 18:07:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-11-20 18:07:19 +0000 |
| commit | 1793ac759fab732d4e5b2242b17ab9e1f797810f (patch) | |
| tree | 4a1a3ca1a4bb92bb8345278c1865b9a5b1459ad9 | |
| parent | 602ad1ad2d9ed69178f9f6fda3e1c6b7ec264a59 (diff) | |
| download | emacs-1793ac759fab732d4e5b2242b17ab9e1f797810f.tar.gz emacs-1793ac759fab732d4e5b2242b17ab9e1f797810f.zip | |
(show-paren-function): Allow new paren-class info.
| -rw-r--r-- | lisp/paren.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index a1cc12712f7..ece3ed3c606 100644 --- a/lisp/paren.el +++ b/lisp/paren.el | |||
| @@ -181,7 +181,12 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time." | |||
| 181 | (cdr (syntax-after beg))) | 181 | (cdr (syntax-after beg))) |
| 182 | (eq (char-after beg) | 182 | (eq (char-after beg) |
| 183 | ;; This can give nil. | 183 | ;; This can give nil. |
| 184 | (cdr (syntax-after (1- end))))))))))))) | 184 | (cdr (syntax-after (1- end)))) |
| 185 | ;; The cdr might hold a new paren-class | ||
| 186 | ;; info rather than a matching-char info, | ||
| 187 | ;; in which case the two CDRs should match. | ||
| 188 | (eq (cdr (syntax-after (1- end))) | ||
| 189 | (cdr (syntax-after beg)))))))))))) | ||
| 185 | ;; | 190 | ;; |
| 186 | ;; Highlight the other end of the sexp, or unhighlight if none. | 191 | ;; Highlight the other end of the sexp, or unhighlight if none. |
| 187 | (if (not pos) | 192 | (if (not pos) |