annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
1 " Vim syntax file
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
2 " Language: JavaScript
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
4 " Updaters: Scott Shattuck (ss) <ss@technicalpursuit.com>
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
5 " URL: http://www.fleiner.com/vim/syntax/javascript.vim
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
6 " Changes: (ss) added keywords, reserved words, and other identifiers
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
7 " (ss) repaired several quoting and grouping glitches
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
8 " (ss) fixed regex parsing issue with multiple qualifiers [gi]
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
9 " (ss) additional factoring of keywords, globals, and members
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
10 " Last Change: 2022 Jun 09
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
11 " 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
12 " 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
13 " 2024 Aug 14: fix a few stylistic issues (#15480)
745
a02f25ddadfe [vendor] update
nanaya <me@nanaya.net>
parents: 726
diff changeset
14 " 2025 Aug 07: as is a reserved keyword (#17912)
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
15
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
16 " tuning parameters:
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
17 " unlet javaScript_fold
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
18
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
19 if !exists("main_syntax")
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
20 " quit when a syntax file was already loaded
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
21 if exists("b:current_syntax")
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
22 finish
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
23 endif
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
24 let main_syntax = 'javascript'
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
25 elseif exists("b:current_syntax") && b:current_syntax == "javascript"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
26 finish
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
27 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
28
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
29 let s:cpo_save = &cpo
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
30 set cpo&vim
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
31
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
32
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
33 syn keyword javaScriptCommentTodo TODO FIXME XXX TBD contained
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
34 syn match javaScriptLineComment "\/\/.*" contains=@Spell,javaScriptCommentTodo
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
35 syn match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
36 syn region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
37 syn match javaScriptSpecial "\\\d\d\d\|\\."
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
38 syn region javaScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=javaScriptSpecial,@htmlPreproc
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
39 syn region javaScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=javaScriptSpecial,@htmlPreproc
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
40 syn region javaScriptStringT start=+`+ skip=+\\\\\|\\`+ end=+`+ contains=javaScriptSpecial,javaScriptEmbed,@htmlPreproc
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
41
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
42 syn region javaScriptEmbed start=+${+ end=+}+ contains=@javaScriptEmbededExpr
629
035b23bb15da Update syntaxes
nanaya <me@nanaya.pro>
parents: 612
diff changeset
43
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
44 " number handling by Christopher Leonard chris.j.leonard@gmx.com
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
45 syn match javaScriptSpecialCharacter "'\\.'"
688
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
46 syn match javaScriptNumber "\<0[bB][0-1]\+\(_[0-1]\+\)*\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
47 syn match javaScriptNumber "\<0[oO][0-7]\+\(_[0-7]\+\)*\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
48 syn match javaScriptNumber "\<0\([0-7]\+\(_[0-7]\+\)*\)\?\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
49 syn match javaScriptNumber "\<0[xX][0-9a-fA-F]\+\(_[0-9a-fA-F]\+\)*\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
50 syn match javaScriptNumber "\<\d\+\(_\d\+\)*[eE][+-]\?\d\+\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
51 syn match javaScriptNumber "\<[1-9]\d*\(_\d\+\)*\(\.\(\d\+\(_\d\+\)*\([eE][+-]\?\d\+\)\?\)\?\)\?\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
52 syn match javaScriptNumber "\<\(\d\+\(_\d\+\)*\)\?\.\d\+\(_\d\+\)*\([eE][+-]\?\d\+\)\?\>"
17cacf387f7c Update vendor
nanaya <me@nanaya.pro>
parents: 661
diff changeset
53 syn match javaScriptNumber "\<\d\+\(_\d\+\)*\.\(\d\+\(_\d\+\)*\([eE][+-]\?\d\+\)\?\)\?\>"
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
54 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
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
55
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
56 syn keyword javaScriptConditional if else switch
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
57 syn keyword javaScriptRepeat while for do in of
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
58 syn keyword javaScriptBranch break continue
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
59 syn keyword javaScriptOperator new delete instanceof typeof
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
60 syn keyword javaScriptType Array Boolean Date Function Number Object String RegExp
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
61 syn keyword javaScriptStatement return with await yield
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
62 syn keyword javaScriptBoolean true false
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
63 syn keyword javaScriptNull null undefined
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
64 syn keyword javaScriptIdentifier arguments this
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
65 syn keyword javaScriptLabel case default
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
66 syn keyword javaScriptException try catch finally throw
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
67 syn keyword javaScriptMessage alert confirm prompt status
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
68 syn keyword javaScriptGlobal self window top parent
745
a02f25ddadfe [vendor] update
nanaya <me@nanaya.net>
parents: 726
diff changeset
69 syn keyword javaScriptMember document event location
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
70 syn keyword javaScriptDeprecated escape unescape
745
a02f25ddadfe [vendor] update
nanaya <me@nanaya.net>
parents: 726
diff changeset
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
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
72 syn keyword javaScriptModifier static
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
73
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
74 syn cluster javaScriptEmbededExpr contains=javaScriptBoolean,javaScriptNull,javaScriptIdentifier,javaScriptStringD,javaScriptStringS,javaScriptStringT
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
75
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
76 if exists("javaScript_fold")
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
77 syn match javaScriptFunction "\<function\>"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
78 syn region javaScriptFunctionFold start="\<function\>.*[^};]$" end="^\z1}.*$" transparent fold keepend
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
79
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
80 syn sync match javaScriptSync grouphere javaScriptFunctionFold "\<function\>"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
81 syn sync match javaScriptSync grouphere NONE "^}"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
82
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
83 setlocal foldmethod=syntax
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
84 setlocal foldtext=getline(v:foldstart)
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
85 else
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
86 syn keyword javaScriptFunction function
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
87 syn match javaScriptBraces "[{}\[\]]"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
88 syn match javaScriptParens "[()]"
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
89 endif
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
90
642
c548e83e4c57 [vim syntax] Update from upstream
nanaya <me@nanaya.pro>
parents: 634
diff changeset
91 if main_syntax == "javascript"
c548e83e4c57 [vim syntax] Update from upstream
nanaya <me@nanaya.pro>
parents: 634
diff changeset
92 syn sync fromstart
c548e83e4c57 [vim syntax] Update from upstream
nanaya <me@nanaya.pro>
parents: 634
diff changeset
93 syn sync maxlines=100
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
94
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
95 syn sync ccomment javaScriptComment
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
96 endif
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
97
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
98 " Define the default highlighting.
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
99 " Only when an item doesn't have highlighting yet
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
100 hi def link javaScriptComment Comment
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
101 hi def link javaScriptLineComment Comment
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
102 hi def link javaScriptCommentTodo Todo
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
103 hi def link javaScriptSpecial Special
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
104 hi def link javaScriptStringS String
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
105 hi def link javaScriptStringD String
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
106 hi def link javaScriptStringT String
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
107 hi def link javaScriptCharacter Character
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
108 hi def link javaScriptSpecialCharacter javaScriptSpecial
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
109 hi def link javaScriptNumber Number
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
110 hi def link javaScriptConditional Conditional
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
111 hi def link javaScriptRepeat Repeat
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
112 hi def link javaScriptBranch Conditional
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
113 hi def link javaScriptOperator Operator
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
114 hi def link javaScriptType Type
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
115 hi def link javaScriptStatement Statement
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
116 hi def link javaScriptFunction Keyword
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
117 hi def link javaScriptBraces Function
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
118 hi def link javaScriptError Error
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
119 hi def link javaScrParenError javaScriptError
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
120 hi def link javaScriptNull Keyword
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
121 hi def link javaScriptBoolean Boolean
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
122 hi def link javaScriptRegexpString String
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
123
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
124 hi def link javaScriptIdentifier Identifier
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
125 hi def link javaScriptLabel Label
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
126 hi def link javaScriptException Exception
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
127 hi def link javaScriptMessage Keyword
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
128 hi def link javaScriptGlobal Keyword
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
129 hi def link javaScriptMember Keyword
745
a02f25ddadfe [vendor] update
nanaya <me@nanaya.net>
parents: 726
diff changeset
130 hi def link javaScriptDeprecated Exception
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
131 hi def link javaScriptReserved Keyword
726
78469331407e Update syntaxes
nanaya <me@nanaya.net>
parents: 688
diff changeset
132 hi def link javaScriptModifier StorageClass
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
133 hi def link javaScriptDebug Debug
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
134 hi def link javaScriptConstant Label
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
135 hi def link javaScriptEmbed Special
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
136
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
137
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
138
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
139 let b:current_syntax = "javascript"
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
140 if main_syntax == 'javascript'
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
141 unlet main_syntax
604
d4d316db35d7 Add latestest javascript
nanaya <me@nanaya.pro>
parents:
diff changeset
142 endif
634
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
143 let &cpo = s:cpo_save
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
144 unlet s:cpo_save
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
145
ced2ee9efd9f Update various syntaxes to the ones in vim repo
nanaya <me@nanaya.pro>
parents: 629
diff changeset
146 " vim: ts=8