unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46924: "of" should be in js--keywords-re in js-mode
@ 2021-03-04 15:20 Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-03-04 20:21 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-03-04 15:20 UTC (permalink / raw)
  To: 46924

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

"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

[-- Attachment #2: Type: text/html, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-04 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 15:20 bug#46924: "of" should be in js--keywords-re in js-mode Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-04 20:21 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).