diff options
| author | Anders Lindgren | 2020-08-19 14:19:12 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-08-19 14:19:12 +0200 |
| commit | dd6fa00fa3108ffd9d9848310a51575aae85e25d (patch) | |
| tree | 47cd268848bf7937978b299a703f44df5b1f1277 | |
| parent | a7291a9fb979e117c3286d3cfa6d0d15557edace (diff) | |
| download | emacs-dd6fa00fa3108ffd9d9848310a51575aae85e25d.tar.gz emacs-dd6fa00fa3108ffd9d9848310a51575aae85e25d.zip | |
Fix #'(lambda ...) font locking
* lisp/emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p):
Fontize #'(lambda ...) better (bug#23465).
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index d0c28ec5dc7..584ed8c6f90 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -200,7 +200,9 @@ | |||
| 200 | (save-excursion | 200 | (save-excursion |
| 201 | (ignore-errors | 201 | (ignore-errors |
| 202 | (goto-char pos) | 202 | (goto-char pos) |
| 203 | (or (eql (char-before) ?\') | 203 | ;; '(lambda ..) is not a funcall position, but #'(lambda ...) is. |
| 204 | (or (and (eql (char-before) ?\') | ||
| 205 | (not (eql (char-before (1- (point))) ?#))) | ||
| 204 | (let* ((ppss (syntax-ppss)) | 206 | (let* ((ppss (syntax-ppss)) |
| 205 | (paren-posns (nth 9 ppss)) | 207 | (paren-posns (nth 9 ppss)) |
| 206 | (parent | 208 | (parent |