comparison vendor/vim-syntax/javascript.vim @ 745:a02f25ddadfe default tip

[vendor] update
author nanaya <me@nanaya.net>
date Fri, 29 Aug 2025 21:11:41 +0900
parents 78469331407e
children
comparison
equal deleted inserted replaced
744:8d3ad5ae1ce4 745:a02f25ddadfe
9 " (ss) additional factoring of keywords, globals, and members 9 " (ss) additional factoring of keywords, globals, and members
10 " Last Change: 2022 Jun 09 10 " Last Change: 2022 Jun 09
11 " 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke) 11 " 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
12 " 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder) 12 " 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
13 " 2024 Aug 14: fix a few stylistic issues (#15480) 13 " 2024 Aug 14: fix a few stylistic issues (#15480)
14 " 2025 Aug 07: as is a reserved keyword (#17912)
14 15
15 " tuning parameters: 16 " tuning parameters:
16 " unlet javaScript_fold 17 " unlet javaScript_fold
17 18
18 if !exists("main_syntax") 19 if !exists("main_syntax")
63 syn keyword javaScriptIdentifier arguments this 64 syn keyword javaScriptIdentifier arguments this
64 syn keyword javaScriptLabel case default 65 syn keyword javaScriptLabel case default
65 syn keyword javaScriptException try catch finally throw 66 syn keyword javaScriptException try catch finally throw
66 syn keyword javaScriptMessage alert confirm prompt status 67 syn keyword javaScriptMessage alert confirm prompt status
67 syn keyword javaScriptGlobal self window top parent 68 syn keyword javaScriptGlobal self window top parent
68 syn keyword javaScriptMember document event location 69 syn keyword javaScriptMember document event location
69 syn keyword javaScriptDeprecated escape unescape 70 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
71 syn keyword javaScriptModifier static 72 syn keyword javaScriptModifier static
72 73
73 syn cluster javaScriptEmbededExpr contains=javaScriptBoolean,javaScriptNull,javaScriptIdentifier,javaScriptStringD,javaScriptStringS,javaScriptStringT 74 syn cluster javaScriptEmbededExpr contains=javaScriptBoolean,javaScriptNull,javaScriptIdentifier,javaScriptStringD,javaScriptStringS,javaScriptStringT
74 75
75 if exists("javaScript_fold") 76 if exists("javaScript_fold")
124 hi def link javaScriptLabel Label 125 hi def link javaScriptLabel Label
125 hi def link javaScriptException Exception 126 hi def link javaScriptException Exception
126 hi def link javaScriptMessage Keyword 127 hi def link javaScriptMessage Keyword
127 hi def link javaScriptGlobal Keyword 128 hi def link javaScriptGlobal Keyword
128 hi def link javaScriptMember Keyword 129 hi def link javaScriptMember Keyword
129 hi def link javaScriptDeprecated Exception 130 hi def link javaScriptDeprecated Exception
130 hi def link javaScriptReserved Keyword 131 hi def link javaScriptReserved Keyword
131 hi def link javaScriptModifier StorageClass 132 hi def link javaScriptModifier StorageClass
132 hi def link javaScriptDebug Debug 133 hi def link javaScriptDebug Debug
133 hi def link javaScriptConstant Label 134 hi def link javaScriptConstant Label
134 hi def link javaScriptEmbed Special 135 hi def link javaScriptEmbed Special