aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/javascript.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-08-18 13:44:04 +0900
committerChristian Clason <c.clason@uni-graz.at>2023-08-18 07:48:42 +0200
commitf0b3defecb4eb1c33bed1c5b2761fc3f7ff5f99b (patch)
tree6e342828edfea3e5db470334a253d74159128e8e /runtime/syntax/javascript.vim
parent71ad771ea4b77119abcff706b9666fa534963819 (diff)
downloadrneovim-f0b3defecb4eb1c33bed1c5b2761fc3f7ff5f99b.tar.gz
rneovim-f0b3defecb4eb1c33bed1c5b2761fc3f7ff5f99b.tar.bz2
rneovim-f0b3defecb4eb1c33bed1c5b2761fc3f7ff5f99b.zip
vim-patch:a5988f582e48
Keywords 'of' and 'yield' for Javascript. (vim/vim#7873) * Keyword 'of' in for...of statement. * Keyword 'yield' for generator function. https://github.com/vim/vim/commit/a5988f582e482150023862052d41e5215253a3de Co-authored-by: Yuri Klimov <yuri@klimov.net>
Diffstat (limited to 'runtime/syntax/javascript.vim')
-rw-r--r--runtime/syntax/javascript.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/javascript.vim b/runtime/syntax/javascript.vim
index e513137984..cb2d16e2a7 100644
--- a/runtime/syntax/javascript.vim
+++ b/runtime/syntax/javascript.vim
@@ -52,11 +52,11 @@ syn match javaScriptNumber "\<\d\+\(_\d\+\)*\.\(\d\+\(_\d\+\)*\([eE]
syn region javaScriptRegexpString start=+[,(=+]\s*/[^/*]+ms=e-1,me=e-1 skip=+\\\\\|\\/+ end=+/[gimuys]\{0,2\}\s*$+ end=+/[gimuys]\{0,2\}\s*[+;.,)\]}]+me=e-1 end=+/[gimuys]\{0,2\}\s\+\/+me=e-1 contains=@htmlPreproc,javaScriptComment oneline
syn keyword javaScriptConditional if else switch
-syn keyword javaScriptRepeat while for do in
+syn keyword javaScriptRepeat while for do in of
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 await
+syn keyword javaScriptStatement return with await yield
syn keyword javaScriptBoolean true false
syn keyword javaScriptNull null undefined
syn keyword javaScriptIdentifier arguments this var let