emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2d43522: Add "of" as a keyword in js-mode


From: Lars Ingebrigtsen
Subject: master 2d43522: Add "of" as a keyword in js-mode
Date: Thu, 4 Mar 2021 15:21:34 -0500 (EST)

branch: master
commit 2d435224689ab8b02b64ce78b6e9d061fe48df22
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 21bda08..c233dce 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]