From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ruslan Bekenev Newsgroups: gmane.emacs.bugs Subject: bug#26750: [PATCH] add missing keywords to js-mode Date: Fri, 12 May 2017 14:12:32 +0300 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="591598a0_2841737b_8ce6" X-Trace: blaine.gmane.org 1494603555 16401 195.159.176.226 (12 May 2017 15:39:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 May 2017 15:39:15 +0000 (UTC) To: 26750@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 12 17:39:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Ces-0004AF-HU for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 May 2017 17:39:10 +0200 Original-Received: from localhost ([::1]:54239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9Cey-0000T5-3b for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 May 2017 11:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9Cen-0000Po-TA for bug-gnu-emacs@gnu.org; Fri, 12 May 2017 11:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9Cek-0006QY-KI for bug-gnu-emacs@gnu.org; Fri, 12 May 2017 11:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9Cek-0006Pe-Gl for bug-gnu-emacs@gnu.org; Fri, 12 May 2017 11:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d9Cek-0004JP-0F for bug-gnu-emacs@gnu.org; Fri, 12 May 2017 11:39:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Ruslan Bekenev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2017 15:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26750-submit@debbugs.gnu.org id=B26750.149460351916544 (code B ref 26750); Fri, 12 May 2017 15:39:01 +0000 Original-Received: (at 26750) by debbugs.gnu.org; 12 May 2017 15:38:39 +0000 Original-Received: from localhost ([127.0.0.1]:41154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9CeN-0004Im-EE for submit@debbugs.gnu.org; Fri, 12 May 2017 11:38:39 -0400 Original-Received: from mail-wr0-f182.google.com ([209.85.128.182]:35453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d98Uy-0004Wy-Rg for 26750@debbugs.gnu.org; Fri, 12 May 2017 07:12:41 -0400 Original-Received: by mail-wr0-f182.google.com with SMTP id z52so42159837wrc.2 for <26750@debbugs.gnu.org>; Fri, 12 May 2017 04:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=syKQU/ogAlsBVCm3gs5Igh6zaZW0fadDFRnl8UHOS10=; b=XXDyF9ahDBaw8pw5aCUGe9zt98hW/JJgVt96ErO95M3PeN1qrI32nUGE343MrdnEsw OOf/2BqBR4fWjJWIQ5BEuzsoI3Yq1yqmMkCKY+VZutsAwMfCuYwivLjcTMdl2kPCDi59 oPtbjU+gLwLoOaGpS4LOnC1DtHMrf5gAy4DoaqAXlq1Hlsd379LWdcmmblMbcE9WoUOQ XJHPxkT0+y0rLXbIINi6zOdcTDDCtVvEgRyMcFJj74MwkUTojxgIiZiZuhCGzR341J3a 86YRdxHqxITqzcToW2Kh3aXP5xlhnU1+vHyMiFVg0zEEHYH/Y0krrY5Dp7+EVrgHtn7G cj5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=syKQU/ogAlsBVCm3gs5Igh6zaZW0fadDFRnl8UHOS10=; b=l+P75ESxob0BCR3dh7wUfdyypGV2030jBnAzFo09MC9lSbVS1ck92pIdTmjGFRmagv 8ZWkUWNjlrrNJuanfe389MK9UpaAfpep+oT+yPpmaG5v1lI+k5quYpoKX4VE2h9LnT9Q dy/uw8LCzk4xVrrrHgTSkIY29NlubyI/rFfC/NvonyYD8PZBudd7y7/BRTxvv1PE5ns2 hd0VBE8Bj3+yJx8u6UkWApLBkLDL928ZoxZfCuKFvG0A3spyoCmNOL6lDTopLnQ9JYkP ubZjrDiJesmqOq4prpTJWtnbtz2hNZpmh6rpB1YDj/GNsUoDWql5/QMqxEBCGUCQq7QF y2rw== X-Gm-Message-State: AODbwcCBV4ndEuTU4mOYirx+yY42X5HnD6BSIg7N0JA4vIFxbpZjQFFz 8xPmD4ZCYbTCiARk X-Received: by 10.46.13.1 with SMTP id 1mr957884ljn.134.1494587554819; Fri, 12 May 2017 04:12:34 -0700 (PDT) Original-Received: from Ruslans-MacBook-Air.local.mail (broadband-skytelecom-185-52-28-15.clients.kubtel.ru. [185.52.28.15]) by smtp.gmail.com with ESMTPSA id f26sm520979lji.23.2017.05.12.04.12.33 for <26750@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 04:12:34 -0700 (PDT) X-Mailer: Airmail (424) X-Mailman-Approved-At: Fri, 12 May 2017 11:38:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132460 Archived-At: --591598a0_2841737b_8ce6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. It is my first contribution.=C2=A0 I hope everything is correct with this PATCH and submission itself.=C2=A0= In this patch added two missed keywords to =60js--keyword-re=60 which are= =60as=60 and =60of=60.=C2=A0 =60async=60 and =60await=60 are already there.=C2=A0 --- =C2=A0lisp/progmodes/js.el =7C 4 ++-- =C2=A01 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index bae9e52bf0..02e63986d6 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el =40=40 -278,11 +278,11 =40=40 Match group 1 is the name of the macro.=22)= =C2=A0(defconst js--keyword-re =C2=A0 =C2=A0(js--regexp-opt-symbol - =C2=A0 '(=22abstract=22 =22async=22 =22await=22 =22break=22 =22case=22 = =22catch=22 =22class=22 =22const=22 + =C2=A0 '(=22abstract=22 =22as=22 =22async=22 =22await=22 =22break=22 =22= case=22 =22catch=22 =22class=22 =22const=22 =C2=A0 =C2=A0 =C2=A0 =22continue=22 =22debugger=22 =22default=22 =22delet= e=22 =22do=22 =22else=22 =C2=A0 =C2=A0 =C2=A0 =22enum=22 =22export=22 =22extends=22 =22final=22 =22= finally=22 =22for=22 =C2=A0 =C2=A0 =C2=A0 =22function=22 =22goto=22 =22if=22 =22implements=22 = =22import=22 =22in=22 - =C2=A0 =C2=A0 =22instanceof=22 =22interface=22 =22native=22 =22new=22 =22= package=22 + =C2=A0 =C2=A0 =22instanceof=22 =22interface=22 =22native=22 =22new=22 =22= package=22 =22of=22 =C2=A0 =C2=A0 =C2=A0 =22private=22 =22protected=22 =22public=22 =22return= =22 =22static=22 =C2=A0 =C2=A0 =C2=A0 =22super=22 =22switch=22 =22synchronized=22 =22throw= =22 =C2=A0 =C2=A0 =C2=A0 =22throws=22 =22transient=22 =22try=22 =22typeof=22 = =22var=22 =22void=22 =22let=22 -- --=C2=A0 Ruslan Bekenev --591598a0_2841737b_8ce6 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline