bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#46924: "of" should be in js--keywords-re in js-mode


From: Lars Ingebrigtsen
Subject: bug#46924: "of" should be in js--keywords-re in js-mode
Date: Thu, 04 Mar 2021 21:21:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Reuben Thomas <rrt@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





reply via email to

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