mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 14:40:54 -08:00
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.
This commit is contained in:
parent
ec2bd7dd5c
commit
fcd2d14db1
1 changed files with 0 additions and 3 deletions
|
|
@ -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'.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue