aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/javascript.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-12 13:31:47 -0500
committerGitHub <noreply@github.com>2020-12-12 13:31:47 -0500
commit257c0f89a926b76a6a8d95ea8bd45a707a47bbb4 (patch)
tree55d28a9d15828b1e84aaae02e304ca6623c7086c /runtime/syntax/javascript.vim
parent4f9e7a512dc606ddaff6dbfd78328077d685960d (diff)
parent4fa6aa90ad91f3828da82fe1ba1a063890928e94 (diff)
downloadrneovim-257c0f89a926b76a6a8d95ea8bd45a707a47bbb4.tar.gz
rneovim-257c0f89a926b76a6a8d95ea8bd45a707a47bbb4.tar.bz2
rneovim-257c0f89a926b76a6a8d95ea8bd45a707a47bbb4.zip
Merge pull request #13523 from janlazo/javascript-runtime
Update Javascript runtime
Diffstat (limited to 'runtime/syntax/javascript.vim')
-rw-r--r--runtime/syntax/javascript.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/syntax/javascript.vim b/runtime/syntax/javascript.vim
index 78714d0170..8a5e10b261 100644
--- a/runtime/syntax/javascript.vim
+++ b/runtime/syntax/javascript.vim
@@ -7,7 +7,7 @@
" (ss) repaired several quoting and grouping glitches
" (ss) fixed regex parsing issue with multiple qualifiers [gi]
" (ss) additional factoring of keywords, globals, and members
-" Last Change: 2018 Jul 28
+" Last Change: 2020 May 14
" 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
" 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
@@ -48,7 +48,7 @@ syn keyword javaScriptRepeat while for do in
syn keyword javaScriptBranch break continue
syn keyword javaScriptOperator new delete instanceof typeof
syn keyword javaScriptType Array Boolean Date Function Number Object String RegExp
-syn keyword javaScriptStatement return with
+syn keyword javaScriptStatement return with await
syn keyword javaScriptBoolean true false
syn keyword javaScriptNull null undefined
syn keyword javaScriptIdentifier arguments this var let
@@ -58,7 +58,7 @@ syn keyword javaScriptMessage alert confirm prompt status
syn keyword javaScriptGlobal self window top parent
syn keyword javaScriptMember document event location
syn keyword javaScriptDeprecated escape unescape
-syn keyword javaScriptReserved abstract boolean byte char class const debugger double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile
+syn keyword javaScriptReserved abstract boolean byte char class const debugger double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile async
syn cluster javaScriptEmbededExpr contains=javaScriptBoolean,javaScriptNull,javaScriptIdentifier,javaScriptStringD,javaScriptStringS,javaScriptStringT
@@ -77,10 +77,10 @@ else
syn match javaScriptParens "[()]"
endif
-syn sync fromstart
-syn sync maxlines=100
-
if main_syntax == "javascript"
+ syn sync fromstart
+ syn sync maxlines=100
+
syn sync ccomment javaScriptComment
endif