branch: scratch/editorconfig-cc commit 8271234c2739b8a7558f838f91c0c9dade3ff054 Author: 10sr <8.slas...@gmail.com> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Use -*- lexical-binding: t -*- https://github.com/melpa/melpa/blob/master/CONTRIBUTING.org#fixing-typical-problems --- editorconfig-conf-mode.el | 17 ++++++++++------- editorconfig-core-handle.el | 3 ++- editorconfig-core.el | 3 ++- editorconfig-fnmatch.el | 3 ++- editorconfig.el | 4 ++-- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/editorconfig-conf-mode.el b/editorconfig-conf-mode.el index 3bf305a65c..2a114e3bad 100644 --- a/editorconfig-conf-mode.el +++ b/editorconfig-conf-mode.el @@ -1,10 +1,11 @@ -;;; editorconfig-conf-mode.el --- Major mode for editing .editorconfig files +;;; editorconfig-conf-mode.el --- Major mode for editing .editorconfig files -*- lexical-binding: t -*- ;; Copyright (C) 2011-2019 EditorConfig Team ;; Author: EditorConfig Team <editorcon...@googlegroups.com> ;; URL: https://github.com/editorconfig/editorconfig-emacs#readme ;; Version: 0.7.14 +;; Package-Requires: ((emacs "24")) ;; See ;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors @@ -74,16 +75,18 @@ ;; Highlight all key values (dolist (key-value key-value-list) - (add-to-list - 'font-lock-value + (push `(,(format "[=:][ \t]*\\(%s\\)\\([ \t]\\|$\\)" key-value) - 1 font-lock-constant-face))) + 1 font-lock-constant-face) + font-lock-value + )) ;; Highlight all key properties (dolist (key-property key-property-list) - (add-to-list - 'font-lock-value + (push `(,(format "^[ \t]*\\(%s\\)[ \t]*[=:]" key-property) - 1 font-lock-builtin-face))) + 1 font-lock-builtin-face) + font-lock-value + )) (conf-mode-initialize "#" font-lock-value))) diff --git a/editorconfig-core-handle.el b/editorconfig-core-handle.el index 06e1169266..aebc21d2cf 100644 --- a/editorconfig-core-handle.el +++ b/editorconfig-core-handle.el @@ -1,10 +1,11 @@ -;;; editorconfig-core-handle.el --- Handle Class for EditorConfig File +;;; editorconfig-core-handle.el --- Handle Class for EditorConfig File -*- lexical-binding: t -*- ;; Copyright (C) 2011-2019 EditorConfig Team ;; Author: EditorConfig Team <editorcon...@googlegroups.com> ;; URL: https://github.com/editorconfig/editorconfig-emacs#readme ;; Version: 0.7.14 +;; Package-Requires: ((emacs "24")) ;; See ;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors diff --git a/editorconfig-core.el b/editorconfig-core.el index fd2435d319..ca19226ffd 100644 --- a/editorconfig-core.el +++ b/editorconfig-core.el @@ -1,10 +1,11 @@ -;;; editorconfig-core.el --- EditorConfig Core library in Emacs Lisp +;;; editorconfig-core.el --- EditorConfig Core library in Emacs Lisp -*- lexical-binding: t -*- ;; Copyright (C) 2011-2019 EditorConfig Team ;; Author: EditorConfig Team <editorcon...@googlegroups.com> ;; URL: https://github.com/editorconfig/editorconfig-emacs#readme ;; Version: 0.7.14 +;; Package-Requires: ((emacs "24")) ;; See ;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors diff --git a/editorconfig-fnmatch.el b/editorconfig-fnmatch.el index 0299678dfc..42dbd474c1 100644 --- a/editorconfig-fnmatch.el +++ b/editorconfig-fnmatch.el @@ -1,10 +1,11 @@ -;;; editorconfig-fnmatch.el --- Glob pattern matching in Emacs lisp +;;; editorconfig-fnmatch.el --- Glob pattern matching in Emacs lisp -*- lexical-binding: t -*- ;; Copyright (C) 2011-2019 EditorConfig Team ;; Author: EditorConfig Team <editorcon...@googlegroups.com> ;; URL: https://github.com/editorconfig/editorconfig-emacs#readme ;; Version: 0.7.14 +;; Package-Requires: ((emacs "24")) ;; See ;; https://github.com/editorconfig/editorconfig-emacs/graphs/contributors diff --git a/editorconfig.el b/editorconfig.el index 578ce109b9..f2b0dfb3b8 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -1,11 +1,11 @@ -;;; editorconfig.el --- EditorConfig Emacs Plugin +;;; editorconfig.el --- EditorConfig Emacs Plugin -*- lexical-binding: t -*- ;; Copyright (C) 2011-2019 EditorConfig Team ;; Author: EditorConfig Team <editorcon...@googlegroups.com> ;; Version: 0.7.14 ;; URL: https://github.com/editorconfig/editorconfig-emacs#readme -;; Package-Requires: ((cl-lib "0.5")) +;; Package-Requires: ((cl-lib "0.5") (emacs "24")) ;; See ;; http://github.com/editorconfig/editorconfig-emacs/graphs/contributors