]> git.eshelyaron.com Git - emacs.git/commitdiff
Add "of" as a keyword in js-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Mar 2021 20:21:21 +0000 (21:21 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Mar 2021 20:21:21 +0000 (21:21 +0100)
* lisp/progmodes/js.el (js--keyword-re): Add the "of" of "for
... of" in ECMAScript 2018 (bug#46924).

lisp/progmodes/js.el

index 21bda0868013df74270b29bd27d6a7d7cb15e549..c233dcebe1967432737d3b2a0bd24a780e2ff9c3 100644 (file)
@@ -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"