[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bison-mode f52263f 18/29: Simplifying font-lock variables.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bison-mode f52263f 18/29: Simplifying font-lock variables. |
Date: |
Sun, 29 Aug 2021 10:58:43 -0400 (EDT) |
branch: elpa/bison-mode
commit f52263fa394ef8288bc3659080aca46e818c0606
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Wilfred Hughes <me@wilfred.me.uk>
Simplifying font-lock variables.
---
bison-mode.el | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/bison-mode.el b/bison-mode.el
index 790ccbd..552a901 100644
--- a/bison-mode.el
+++ b/bison-mode.el
@@ -143,22 +143,15 @@ key's electric variable")
"non-nil means use an electric greater-than")
-(defvar bison-font-lock-keywords-1 c-font-lock-keywords
- "Basic highlighting for Bison mode.")
-
-(defvar bison-font-lock-keywords-2
+(defconst bison-font-lock-keywords
(append
(list
(cons (concat "^\\(" (regexp-opt bison--declarers) "\\)")
'(1 font-lock-keyword-face))
)
- bison-font-lock-keywords-1)
- "Gaudy highlighting for Bison mode.")
-
-(defvar bison-font-lock-keywords bison-font-lock-keywords-2
+ c-font-lock-keywords)
"Default expressions to highlight in Bison mode")
-
;; *************** utilities ***************
(defun just-no-space ()
@@ -241,11 +234,7 @@ and \(point\)"
comment-end "*/")
(make-local-variable 'font-lock-keywords)
(setq font-lock-keywords nil)
- (make-local-variable 'font-lock-defaults)
- (setq font-lock-defaults '((bison-font-lock-keywords
- bison-font-lock-keywords-1
- bison-font-lock-keywords-2)
- nil nil nil)))
+ (set (make-local-variable 'font-lock-defaults) '(bison-font-lock-keywords)))
;; *************** section parsers ***************
- [nongnu] elpa/bison-mode 0de3ce2 15/29: Removing some commented-out debugging code., (continued)
- [nongnu] elpa/bison-mode 0de3ce2 15/29: Removing some commented-out debugging code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 0434673 04/29: Removing dependency on flex-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 25d6d91 06/29: More checkdoc fixes., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 3a7fd59 08/29: Fix byte-compile warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 9dcb46e 02/29: Checking in the current state of bison-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode bd0d1eb 03/29: Making checkdoc happier., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 4c3ede9 05/29: Removing make-regexp dependency., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 13622b4 13/29: Removing unnecessary require (define-derived-mode is autoloaded)., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 57339f2 16/29: Adding a changelog., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 4fd075f 17/29: Automatically start bison-mode in .y and .l files., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode f52263f 18/29: Simplifying font-lock variables.,
ELPA Syncer <=
- [nongnu] elpa/bison-mode c29fd9b 19/29: Fix #3., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 3509f18 20/29: Removing commented-out code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 314af3b 24/29: autoload jison (#8), ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 7776bb5 26/29: Convert all user-definable defvar into defcustom in bison-mode defgroup., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 61eba0f 27/29: Properly namespace functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 1193903 28/29: Roll version to reflect changelog, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 4f2e203 29/29: Roll version now 0.3 is tagged, ELPA Syncer, 2021/08/29