summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-02-23 23:57:59 -0700
committerTom Tromey <tom@tromey.com>2017-02-24 08:11:20 -0700
commit7b49bd44b70d0583e7e5989513b38e6f77e1c559 (patch)
tree3a133ca58650de4bb1dde4d80506f8fe96dba6af
parent91932fff1ded8ed3b4d39dd06891f26960153b9e (diff)
downloademacs-7b49bd44b70d0583e7e5989513b38e6f77e1c559.tar.gz
add "async" and "await" keywords
* lisp/progmodes/js.el (js--keyword-re): Add async, await.
-rw-r--r--lisp/progmodes/js.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index b42b2bca822..6e313dc51b7 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -277,7 +277,7 @@ Match group 1 is the name of the macro.")
(defconst js--keyword-re
(js--regexp-opt-symbol
- '("abstract" "break" "case" "catch" "class" "const"
+ '("abstract" "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"