GNU bug report logs - #46924
"of" should be in js--keywords-re in js-mode

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Thu, 4 Mar 2021 15:21:01 UTC

Severity: minor

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 46924 <at> debbugs.gnu.org
Subject: bug#46924: "of" should be in js--keywords-re in js-mode
Date: Thu, 04 Mar 2021 21:21:37 +0100
Reuben Thomas <rrt <at> sc3d.org> writes:

> "of" is not lexically a keyword (as far as I can tell). However, in
> ECMAScript 2018 and later, it functions as one (in the "for…of"
> construction), so it should probably be treated as one by
> js-mode. Certainly, this seems to be common practice, looking at
> samples of JavaScript online (including in the standard).

Makes sense.  Now added to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.