From 2d435224689ab8b02b64ce78b6e9d061fe48df22 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 4 Mar 2021 21:21:21 +0100 Subject: [PATCH] Add "of" as a keyword in js-mode * lisp/progmodes/js.el (js--keyword-re): Add the "of" of "for ... of" in ECMAScript 2018 (bug#46924). --- lisp/progmodes/js.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 21bda086801..c233dcebe19 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -282,7 +282,7 @@ Match group 1 is the name of the macro.") "continue" "debugger" "default" "delete" "do" "else" "enum" "export" "extends" "final" "finally" "for" "function" "goto" "if" "implements" "import" "in" - "instanceof" "interface" "native" "new" "package" + "instanceof" "interface" "native" "new" "of" "package" "private" "protected" "public" "return" "static" "super" "switch" "synchronized" "throw" "throws" "transient" "try" "typeof" "var" "void" "let" -- 2.39.2