all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ruslan Bekenev <furyinbox@gmail.com>
To: 26750@debbugs.gnu.org
Subject: bug#26750: [PATCH] add missing keywords to js-mode
Date: Fri, 12 May 2017 14:12:32 +0300	[thread overview]
Message-ID: <etPan.591598a0.25ce87fd.8ce6@gmail.com> (raw)
In-Reply-To: <m2mvavkqpr.fsf@ceremony-paternal-broken.local.i-did-not-set--mail-host-address--so-tickle-me>

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

Hi. It is my first contribution. 
I hope everything is correct with this PATCH and submission itself. 
In this patch added two missed keywords to `js--keyword-re` which are `as` and `of`. 
`async` and `await` are already there. 

---
 lisp/progmodes/js.el | 4 ++--
 1 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
@@ -278,11 +278,11 @@ Match group 1 is the name of the macro.")

 (defconst js--keyword-re
   (js--regexp-opt-symbol
-   '("abstract" "async" "await" "break" "case" "catch" "class" "const"
+   '("abstract" "as" "async" "await" "break" "case" "catch" "class" "const"
      "continue" "debugger" "default" "delete" "do" "else"
      "enum" "export" "extends" "final" "finally" "for"
      "function" "goto" "if" "implements" "import" "in"
-     "instanceof" "interface" "native" "new" "package"
+     "instanceof" "interface" "native" "new" "package" "of"
      "private" "protected" "public" "return" "static"
      "super" "switch" "synchronized" "throw"
      "throws" "transient" "try" "typeof" "var" "void" "let"
--

-- 
Ruslan Bekenev


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

  reply	other threads:[~2017-05-12 11:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 19:23 bug#26750: 25.2; js-mode missing keywords Yuen Ho Wong
2017-05-12 11:12 ` Ruslan Bekenev [this message]
2018-04-28 21:08   ` bug#26750: [PATCH] add missing keywords to js-mode Noam Postavsky
2018-04-28 21:46     ` Jimmy Yuen Ho Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=etPan.591598a0.25ce87fd.8ce6@gmail.com \
    --to=furyinbox@gmail.com \
    --cc=26750@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.