diff options
| author | Dmitry Gutov | 2022-08-10 03:18:29 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2022-08-10 03:36:35 +0300 |
| commit | fcd2d14db1c42add0b6aa09ac8b99cd9229596ec (patch) | |
| tree | cbe3f399af6961cc494e77643799e66d76b5240e /lisp | |
| parent | ec2bd7dd5c68510130e7abf7e76361d776c4fe22 (diff) | |
| download | emacs-fcd2d14db1c42add0b6aa09ac8b99cd9229596ec.tar.gz emacs-fcd2d14db1c42add0b6aa09ac8b99cd9229596ec.zip | |
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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/js.el | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 2eefcf44dcf..d2c24a75810 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -307,9 +307,6 @@ Match group 1 is the name of the macro.") | |||
| 307 | (defconst js--font-lock-keywords-2 | 307 | (defconst js--font-lock-keywords-2 |
| 308 | (append js--font-lock-keywords-1 | 308 | (append js--font-lock-keywords-1 |
| 309 | (list (list js--keyword-re 1 font-lock-keyword-face) | 309 | (list (list js--keyword-re 1 font-lock-keyword-face) |
| 310 | (list "\\_<for\\_>" | ||
| 311 | "\\s-+\\(each\\)\\_>" nil nil | ||
| 312 | (list 1 'font-lock-keyword-face)) | ||
| 313 | (cons js--basic-type-re font-lock-type-face) | 310 | (cons js--basic-type-re font-lock-type-face) |
| 314 | (cons js--constant-re font-lock-constant-face))) | 311 | (cons js--constant-re font-lock-constant-face))) |
| 315 | "Level two font lock keywords for `js-mode'.") | 312 | "Level two font lock keywords for `js-mode'.") |