From unknown Sat Jun 14 05:03:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46924: "of" should be in js--keywords-re in js-mode Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Mar 2021 15:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 46924@debbugs.gnu.org X-Debbugs-Original-To: bug-emacs Received: via spool by submit@debbugs.gnu.org id=B.161487122529934 (code B ref -1); Thu, 04 Mar 2021 15:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Mar 2021 15:20:25 +0000 Received: from localhost ([127.0.0.1]:59947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHpm5-0007mj-0L for submit@debbugs.gnu.org; Thu, 04 Mar 2021 10:20:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:35468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHpm2-0007mb-Sa for submit@debbugs.gnu.org; Thu, 04 Mar 2021 10:20:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHpm2-0005tD-LI for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 10:20:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33918) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHpm2-0004wn-C5 for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 10:20:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48078) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lHpm0-0005DU-Dd for bug-emacs@gnu.org; Thu, 04 Mar 2021 10:20:21 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:39349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHply-0004uz-Ba for bug-emacs@gnu.org; Thu, 04 Mar 2021 10:20:20 -0500 Received: by mail-oi1-x230.google.com with SMTP id z126so30465020oiz.6 for ; Thu, 04 Mar 2021 07:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=BaD3kLv3FO0RYZne+8l7apIDR45ffIpYE2WAxrZvyN0=; b=Z1YnO4YUNM5AFI8beYfkoaF9NiobdWeANbfpDB36gMwi/lJkd+sAcXznXejv7iK+r7 xiQv1sfvsBvpB7HKrDIib2CC2UknCu+FjaIIqNzJfLC5+3yEr+MvtmiBIDrJtrL2UeJN mmzVxWrWNSsAJanoFNusaqqRPTSpmtip2lEXE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BaD3kLv3FO0RYZne+8l7apIDR45ffIpYE2WAxrZvyN0=; b=QsFS2vV84UabCDf0Sb7bJ/VM+CsqLilrKBEVUb1UWdlLYfHOdcJIzGtDGFuAthOVrk B41dGXat0sn2P7Q1CAmpslDfFqhdG0xizreoQ/0TCk6mEcPVgnDGGj7Im4tBzQMHx/EN qCqSt3/r8DWVU5pfxnjh7uYUv/8J2dxSNUEotikHttZt/88AORf2oS9T0Va8MBI4nVMm Vl+kUIYDwISH+Y5ky3RKy34X/hZxTjZ5BGaaMXjyUkx4h/d2Z81FyfBpXK7n1gcjOaFU ElrR2Aeeo9ByzGxPZzAHxJi1ApcXpuQgZhH9mymbsTNnOzlHTm9K5zKod7WXT1GyXMY0 lCZA== X-Gm-Message-State: AOAM5321XHV5MnU+SESbbCayGW/ELxIbmByOAZa3Z9tvqGyUYBfQMdcl GzwNmsfVaD4Q43Vp2sr2wggoog9uGfuDALoudG5TXOb6vO0= X-Google-Smtp-Source: ABdhPJzO488uVAWJxj30Nvnn9CbeZlfOmIrB85K8ftSQu+TTcbYR+Ig3SOuAiUb+wxg9G40kVBD6a35NYxn+RcOl1+A= X-Received: by 2002:aca:c08b:: with SMTP id q133mr3271704oif.160.1614871216136; Thu, 04 Mar 2021 07:20:16 -0800 (PST) MIME-Version: 1.0 From: Reuben Thomas Date: Thu, 4 Mar 2021 15:20:05 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000323ac905bcb78148" Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=rrt@sc3d.org; helo=mail-oi1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --000000000000323ac905bcb78148 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable "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=E2=80=A6of" 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). --=20 https://rrt.sc3d.org --000000000000323ac905bcb78148 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"of" is not lexically a keywo= rd (as far as I can tell). However, in ECMAScript 2018 and later, it functi= ons as one (in the "for=E2=80=A6of" construction), so it should p= robably be treated as one by js-mode. Certainly, this seems to be common pr= actice, looking at samples of JavaScript online (including in the standard)= .

--
--000000000000323ac905bcb78148-- From unknown Sat Jun 14 05:03:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46924: "of" should be in js--keywords-re in js-mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Mar 2021 20:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Reuben Thomas Cc: 46924@debbugs.gnu.org Received: via spool by 46924-submit@debbugs.gnu.org id=B46924.16148893099990 (code B ref 46924); Thu, 04 Mar 2021 20:22:01 +0000 Received: (at 46924) by debbugs.gnu.org; 4 Mar 2021 20:21:49 +0000 Received: from localhost ([127.0.0.1]:60358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHuTl-0002b4-25 for submit@debbugs.gnu.org; Thu, 04 Mar 2021 15:21:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHuTj-0002aq-KI for 46924@debbugs.gnu.org; Thu, 04 Mar 2021 15:21:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=NWcxn/8X0kO3oldi+MFAB8MO4vQT+VqR/YEJOVzSQaA=; b=TpHB9xwTNocE08UZP/bYLKE0e2 CmEOlnoT6duOUm3hzXRbcAkYdJHQdyggQ+I6MmB/WAzdDN5UlKkxXahOS/mDRl0ETs6wpMR92HA3F poeMwk2azxrDkEpf/HKiDP1fyvgMR8faV0Lb8icfmJLYHFW7V1uHUQmhkiPS1Sgsgam0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHuTb-0006iD-04; Thu, 04 Mar 2021 21:21:41 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Trevor Horn's _Trevor Horn Reimagines The Eighties_: "The Power of Love (feat. Matt Cardle)" Date: Thu, 04 Mar 2021 21:21:37 +0100 In-Reply-To: (Reuben Thomas's message of "Thu, 4 Mar 2021 15:20:05 +0000") Message-ID: <87k0qmu0tq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Reuben Thomas 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 "=?UTF-8?Q?for=E2=80=A6of?=" > construction), so it should probably be treated as one by > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Reuben Thomas 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=E2=80=A6of" > 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. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 04 15:21:58 2021 Received: (at control) by debbugs.gnu.org; 4 Mar 2021 20:21:58 +0000 Received: from localhost ([127.0.0.1]:60361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHuTu-0002bU-9i for submit@debbugs.gnu.org; Thu, 04 Mar 2021 15:21:58 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHuTs-0002bF-Jk for control@debbugs.gnu.org; Thu, 04 Mar 2021 15:21:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Aa5XL5MebpLMqhKzAsbzNfyKi8au2MvkKzBEsi25C48=; b=LOQF69KTSw+9U2QIbkIeP7D7AI PtRFpDaGLdARzJ7EsGDPXr+Zq69pTmWLKpDOasZmFvFyEol6AeeK1mrlwBh2NbBQZtN6wVxYtiqaP dQVKkNHJe8NJuZravGbbTWupb7+ZRHXqcuaz5W433MXvzCrZS+YQu3xTdgGqxGioB7N4=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHuTl-0006iK-1I for control@debbugs.gnu.org; Thu, 04 Mar 2021 21:21:51 +0100 Date: Thu, 04 Mar 2021 21:21:47 +0100 Message-Id: <87im66u0tg.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46924 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 46924 fixed close 46924 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 46924 fixed close 46924 28.1 quit