runtime(javascript): add 'Symbol' as a type; add 'void' as a reserved word

Commit: 
https://github.com/vim/vim/commit/1fa6fed84628d2953bf9aa4558bb8a97b61219e1
Author: Ilia Dubovik <[email protected]>
Date:   Sun Jun 7 17:23:34 2026 +0000

    runtime(javascript): add 'Symbol' as a type; add 'void' as a reserved word
    
    closes: https://github.com/vim/vim/issues/20440
    
    Signed-off-by: Ilia Dubovik <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/syntax/javascript.vim b/runtime/syntax/javascript.vim
index c910a668a..912f99a95 100644
--- a/runtime/syntax/javascript.vim
+++ b/runtime/syntax/javascript.vim
@@ -6,7 +6,7 @@
 "                      Kevin Locke
 "                      LongJohnCoder
 "                      Devin Weaver
-" Last Change:         2026 Apr 26
+" Last Change:         2026 Jun 07
 
 " tuning parameters:
 " unlet javaScript_fold
@@ -59,7 +59,7 @@ syn keyword javaScriptConditional     if else switch
 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 javaScriptType             Array Boolean Date Function Number 
Object String RegExp Symbol
 syn keyword javaScriptStatement                return with await yield
 syn keyword javaScriptBoolean          true false
 syn keyword javaScriptNull             null undefined
@@ -70,7 +70,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 as boolean byte char class 
const debugger double enum export extends final float from goto implements 
import int interface let long native package private protected public short 
super synchronized throws transient var volatile async using
+syn keyword javaScriptReserved         abstract as boolean byte char class 
const debugger double enum export extends final float from goto implements 
import int interface let long native package private protected public short 
super synchronized throws transient var void volatile async using
 syn keyword javaScriptModifier  static
 
 syn cluster  javaScriptEmbededExpr     
contains=javaScriptBoolean,javaScriptNull,javaScriptIdentifier,javaScriptStringD,javaScriptStringS,javaScriptStringT

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wWHK0-003ACc-S5%40256bit.org.

Raspunde prin e-mail lui