diff options
| -rw-r--r-- | lisp/paren.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index e654cc2cc10..bc5c2f1f007 100644 --- a/lisp/paren.el +++ b/lisp/paren.el | |||
| @@ -171,9 +171,11 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time." | |||
| 171 | (let ((beg (min pos oldpos)) (end (max pos oldpos))) | 171 | (let ((beg (min pos oldpos)) (end (max pos oldpos))) |
| 172 | (when (/= (char-syntax (char-after beg)) ?\$) | 172 | (when (/= (char-syntax (char-after beg)) ?\$) |
| 173 | (setq mismatch | 173 | (setq mismatch |
| 174 | (not (eq (char-before end) | 174 | (not (eq (or (cdr (get-text-property (1- end) 'syntax-table)) |
| 175 | (char-before end)) | ||
| 175 | ;; This can give nil. | 176 | ;; This can give nil. |
| 176 | (matching-paren (char-after beg))))))))))) | 177 | (or (cdr (get-text-property beg 'syntax-table)) |
| 178 | (matching-paren (char-after beg)))))))))))) | ||
| 177 | ;; | 179 | ;; |
| 178 | ;; Highlight the other end of the sexp, or unhighlight if none. | 180 | ;; Highlight the other end of the sexp, or unhighlight if none. |
| 179 | (if (not pos) | 181 | (if (not pos) |