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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46924 in the body.
You can then email your comments to 46924 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46924; Package emacs. (Thu, 04 Mar 2021 15:21:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Reuben Thomas <rrt <at> sc3d.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Mar 2021 15:21:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: bug-emacs <bug-emacs <at> gnu.org>
Subject: "of" should be in js--keywords-re in js-mode
Date: Thu, 4 Mar 2021 15:20:05 +0000
[Message part 1 (text/plain, inline)]
"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).

-- 
https://rrt.sc3d.org
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46924; Package emacs. (Thu, 04 Mar 2021 20:22:01 GMT) Full text and rfc822 format available.

Message #8 received at 46924 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 46924 <at> debbugs.gnu.org
Subject: Re: 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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 04 Mar 2021 20:22:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 46924 <at> debbugs.gnu.org and Reuben Thomas <rrt <at> sc3d.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 04 Mar 2021 20:22:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Apr 2021 11:24:05 GMT) Full text and rfc822 format available.

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.