mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
(lisp--el-match-keyword): Use new font-lock-keyword symbol property
Add new `font-lock-keyword' symbol property, which does the opposite of the existing `no-font-lock-keyword'; allowing to highlight certain functions, like macros and special-forms, as opposed to allowing to not highlight certain macros. * lisp/emacs-lisp/lisp-mode.el (lisp--el-match-keyword): Use new `font-lock-keyword'.
This commit is contained in:
parent
cfc72c30b5
commit
9ced94569d
|
|
@ -271,7 +271,9 @@ to a package-local <package>-loaddefs.el file.")
|
|||
limit t)
|
||||
;; FIXME: Doesn't properly un-escape \ in the symbol name.
|
||||
(let ((sym (shorthands-intern-soft (match-string 1))))
|
||||
(when (and (or (special-form-p sym) (macrop sym))
|
||||
(when (and (or (special-form-p sym)
|
||||
(macrop sym)
|
||||
(get sym 'font-lock-keyword))
|
||||
(not (get sym 'no-font-lock-keyword))
|
||||
(lisp--el-funcall-position-p (match-beginning 0)))
|
||||
(throw 'found t))))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue