Skip to content

Commit 589aa28

Browse files
nir9chrisbra
authored andcommitted
runtime(javascript): add "as" as a reserved keyword to syntax script
closes: #17912 Signed-off-by: Nir Lichtman <nir@lichtman.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 9662f33 commit 589aa28

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

runtime/syntax/javascript.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
" 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
1212
" 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
1313
" 2024 Aug 14: fix a few stylistic issues (#15480)
14+
" 2025 Aug 07: as is a reserved keyword (#17912)
1415

1516
" tuning parameters:
1617
" unlet javaScript_fold
@@ -65,9 +66,9 @@ syn keyword javaScriptLabel case default
6566
syn keyword javaScriptException try catch finally throw
6667
syn keyword javaScriptMessage alert confirm prompt status
6768
syn keyword javaScriptGlobal self window top parent
68-
syn keyword javaScriptMember document event location
69+
syn keyword javaScriptMember document event location
6970
syn keyword javaScriptDeprecated escape unescape
70-
syn keyword javaScriptReserved abstract 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
71+
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
7172
syn keyword javaScriptModifier static
7273

7374
syn cluster javaScriptEmbededExpr contains=javaScriptBoolean,javaScriptNull,javaScriptIdentifier,javaScriptStringD,javaScriptStringS,javaScriptStringT
@@ -126,7 +127,7 @@ hi def link javaScriptException Exception
126127
hi def link javaScriptMessage Keyword
127128
hi def link javaScriptGlobal Keyword
128129
hi def link javaScriptMember Keyword
129-
hi def link javaScriptDeprecated Exception
130+
hi def link javaScriptDeprecated Exception
130131
hi def link javaScriptReserved Keyword
131132
hi def link javaScriptModifier StorageClass
132133
hi def link javaScriptDebug Debug

0 commit comments

Comments
 (0)