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


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)]

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.