comparison vendor/vim-syntax/javascript.vim @ 612:b305f2ce5f88

Update vendored files
author nanaya <me@nanaya.pro>
date Mon, 02 Apr 2018 17:34:40 +0900
parents d4d316db35d7
children 035b23bb15da
comparison
equal deleted inserted replaced
611:96a7b2a3e774 612:b305f2ce5f88
33 syntax match shebang "^#!.*" 33 syntax match shebang "^#!.*"
34 hi link shebang Comment 34 hi link shebang Comment
35 35
36 " Statement Keywords {{{ 36 " Statement Keywords {{{
37 syntax keyword javaScriptSource import export from 37 syntax keyword javaScriptSource import export from
38 syntax keyword javaScriptIdentifier arguments this let var void yield async await 38 syntax keyword javaScriptIdentifier arguments this let var void yield async await const
39 syntax keyword javaScriptOperator delete new instanceof typeof 39 syntax keyword javaScriptOperator delete new instanceof typeof
40 syntax keyword javaScriptBoolean true false 40 syntax keyword javaScriptBoolean true false
41 syntax keyword javaScriptNull null undefined 41 syntax keyword javaScriptNull null undefined
42 syntax keyword javaScriptMessage alert confirm prompt status 42 syntax keyword javaScriptMessage alert confirm prompt status
43 syntax keyword javaScriptGlobal self top parent 43 syntax keyword javaScriptGlobal self top parent
48 syntax keyword javaScriptLabel case default 48 syntax keyword javaScriptLabel case default
49 syntax keyword javaScriptPrototype prototype 49 syntax keyword javaScriptPrototype prototype
50 syntax keyword javaScriptStatement return with 50 syntax keyword javaScriptStatement return with
51 syntax keyword javaScriptGlobalObjects Array Boolean Date Function Math Number Object RegExp String 51 syntax keyword javaScriptGlobalObjects Array Boolean Date Function Math Number Object RegExp String
52 syntax keyword javaScriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError 52 syntax keyword javaScriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError
53 syntax keyword javaScriptReserved abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public 53 syntax keyword javaScriptReserved abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws goto private transient debugger implements protected volatile double import public
54 "}}} 54 "}}}
55 " Comments {{{ 55 " Comments {{{
56 syntax keyword javaScriptCommentTodo TODO FIXME XXX TBD contained 56 syntax keyword javaScriptCommentTodo TODO FIXME XXX TBD OPTIMIZE HACK REVIEW contained
57 syntax match javaScriptLineComment "\/\/.*" contains=@Spell,javaScriptCommentTodo 57 syntax match javaScriptLineComment "\/\/.*" contains=@Spell,javaScriptCommentTodo
58 syntax match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" 58 syntax match javaScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
59 syntax region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo 59 syntax region javaScriptComment start="/\*" end="\*/" contains=@Spell,javaScriptCommentTodo
60 "}}} 60 "}}}
61 " JSDoc support {{{ 61 " JSDoc support {{{
166 endif 166 endif
167 "}}} 167 "}}}
168 " Function and arguments highlighting {{{ 168 " Function and arguments highlighting {{{
169 syntax keyword javaScriptFuncKeyword function contained 169 syntax keyword javaScriptFuncKeyword function contained
170 syntax region javaScriptFuncExp start=/\w\+\s\==\s\=function\>/ end="\([^)]*\)" contains=javaScriptFuncEq,javaScriptFuncKeyword,javaScriptFuncArg keepend 170 syntax region javaScriptFuncExp start=/\w\+\s\==\s\=function\>/ end="\([^)]*\)" contains=javaScriptFuncEq,javaScriptFuncKeyword,javaScriptFuncArg keepend
171 syntax match javaScriptFuncArg "\(([^()]*)\)" contains=javaScriptParens,javaScriptFuncComma contained 171 syntax match javaScriptFuncArg "\(([^()]*)\)" contains=javaScriptParens,javaScriptFuncComma,javaScriptComment contained
172 syntax match javaScriptFuncComma /,/ contained 172 syntax match javaScriptFuncComma /,/ contained
173 syntax match javaScriptFuncEq /=/ contained 173 syntax match javaScriptFuncEq /=/ contained
174 syntax region javaScriptFuncDef start="\<function\>" end="\([^)]*\)" contains=javaScriptFuncKeyword,javaScriptFuncArg keepend 174 syntax region javaScriptFuncDef start="\<function\>" end="\([^)]*\)" contains=javaScriptFuncKeyword,javaScriptFuncArg keepend
175 syntax match javaScriptObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\)\@=/ contains=javaScriptFunctionKey 175 syntax match javaScriptObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\)\@=/ contains=javaScriptFunctionKey
176 syntax match javaScriptFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\s*function\s*\)\@=/ contained 176 syntax match javaScriptFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\s*function\s*\)\@=/ contained