Avoid evaluating file-local variables

* dev/examples.el: Move font-lock-keywords from "Local Variables"...
* dash.el (dash--keywords): ...to here, for dash-fontify-mode.
master
Basil L. Contovounesios 5 years ago
parent 3726eb17f3
commit 4fb9613314
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 7
      dash.el
  2. 4
      dev/examples.el

@ -2941,6 +2941,13 @@ structure such as plist or alist."
;; globally; detect and limit to their local anaphoric scope.
(,(concat "\\_<" (regexp-opt '("acc" "it" "it-index" "other")) "\\_>")
0 font-lock-variable-name-face)
;; Macros in dev/examples.el. Based on `lisp-mode-symbol-regexp'.
(,(concat "(" (regexp-opt '("defexamples" "def-example-group") t)
"\\_>[\t ]+\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)*\\)")
(1 font-lock-keyword-face)
(2 font-lock-function-name-face))
;; Symbols in dev/examples.el.
,(concat "\\_<" (regexp-opt '("=>" "~>" "!!>")) "\\_>")
;; Elisp macro fontification was static prior to Emacs 25.
,@(when (< emacs-major-version 25)
(let ((macs '("!cdr"

@ -1673,8 +1673,4 @@ value rather than consuming a list to produce a single value."
(equal (funcall (-compose (-prodfn f g) (-prodfn ff gg)) input3)
(funcall (-prodfn (-compose f ff) (-compose g gg)) input3)))) => t)))
;; Local Variables:
;; eval: (font-lock-add-keywords nil '(("defexamples\\|def-example-group\\| => \\| !!> \\| ~>" (0 'font-lock-keyword-face)) ("(defexamples[[:blank:]]+\\(.*\\)" (1 'font-lock-function-name-face))))
;; End:
;;; examples.el ends here

Loading…
Cancel
Save