[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master fcd2d14db1: js--font-lock-keywords-2: Remove the 'for each' match
From: |
Dmitry Gutov |
Subject: |
master fcd2d14db1: js--font-lock-keywords-2: Remove the 'for each' matcher |
Date: |
Tue, 9 Aug 2022 20:36:54 -0400 (EDT) |
branch: master
commit fcd2d14db1c42add0b6aa09ac8b99cd9229596ec
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
js--font-lock-keywords-2: Remove the 'for each' matcher
* lisp/progmodes/js.el (js--font-lock-keywords-2):
Remove the 'for each' matcher. First, because it was slow
(bug#56682), and second: the 'for each' syntax was only present in
Mozilla's dialect of JavaScript (added in version 1.5), and has
been deprecated for a decade now.
---
lisp/progmodes/js.el | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 2eefcf44dc..d2c24a7581 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -307,9 +307,6 @@ Match group 1 is the name of the macro.")
(defconst js--font-lock-keywords-2
(append js--font-lock-keywords-1
(list (list js--keyword-re 1 font-lock-keyword-face)
- (list "\\_<for\\_>"
- "\\s-+\\(each\\)\\_>" nil nil
- (list 1 'font-lock-keyword-face))
(cons js--basic-type-re font-lock-type-face)
(cons js--constant-re font-lock-constant-face)))
"Level two font lock keywords for `js-mode'.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master fcd2d14db1: js--font-lock-keywords-2: Remove the 'for each' matcher,
Dmitry Gutov <=