File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ syntax match jsModuleComma contained /,/ skipwhite skipempty nextgroup=
5454syntax region jsString start =+ \z (["']\) + skip =+ \\\% (\z 1\| $\) + end =+ \z 1+ end =+ $+ contains =jsSpecial extend
5555syntax region jsTemplateString start =+ `+ skip =+ \\ `+ end =+ `+ contains =jsTemplateExpression,jsSpecial extend
5656syntax match jsTaggedTemplate / \<\K\k *\z e`/ nextgroup =jsTemplateString
57- syntax match jsNumber / \c\<\% (\d\+\% (e[+-]\=\d\+\)\=\| 0b[01]\+\| 0o\o\+\| 0x\% (\x\| _\)\+\)\> /
57+ syntax match jsNumber / \c\<\% (\d\+\% (e[+-]\=\d\+\)\=\| 0b[01]\+\| 0o\o\+\| 0x\% (\x\| _\)\+\) n \= \>/
5858syntax keyword jsNumber Infinity
5959syntax match jsFloat / \c\<\% (\d\+\.\d\+\|\d\+\.\|\.\d\+\)\% (e[+-]\=\d\+\)\=\> /
6060
@@ -110,7 +110,7 @@ syntax keyword jsAsyncKeyword async await
110110syntax match jsSwitchColon contained / ::\@ !/ skipwhite skipempty nextgroup =jsSwitchBlock
111111
112112" Keywords
113- syntax keyword jsGlobalObjects ArrayBuffer Array BigInt64Array BigUint64Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray Boolean Buffer Collator DataView Date DateTimeFormat Function Intl Iterator JSON Map Set WeakMap WeakRef WeakSet Math Number NumberFormat Object ParallelArray Promise Proxy Reflect RegExp String Symbol Uint8ClampedArray WebAssembly console document fetch window
113+ syntax keyword jsGlobalObjects ArrayBuffer Array BigInt BigInt64Array BigUint64Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray Boolean Buffer Collator DataView Date DateTimeFormat Function Intl Iterator JSON Map Set WeakMap WeakRef WeakSet Math Number NumberFormat Object ParallelArray Promise Proxy Reflect RegExp String Symbol Uint8ClampedArray WebAssembly console document fetch window
114114syntax keyword jsGlobalNodeObjects module exports global process __dirname __filename
115115syntax match jsGlobalNodeObjects / \< require\> / containedin =jsFuncCall
116116syntax keyword jsExceptions Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError
You can’t perform that action at this time.
0 commit comments