Fix #'(lambda ...) font locking

* lisp/emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p):
Fontize #'(lambda ...) better (bug#23465).
This commit is contained in:
Anders Lindgren 2020-08-19 14:19:12 +02:00 committed by Lars Ingebrigtsen
parent a7291a9fb9
commit dd6fa00fa3

View file

@ -200,7 +200,9 @@
(save-excursion
(ignore-errors
(goto-char pos)
(or (eql (char-before) ?\')
;; '(lambda ..) is not a funcall position, but #'(lambda ...) is.
(or (and (eql (char-before) ?\')
(not (eql (char-before (1- (point))) ?#)))
(let* ((ppss (syntax-ppss))
(paren-posns (nth 9 ppss))
(parent