Skip to content

Commit a7225e4

Browse files
committed
Fix jsGlobalNodeObjects and jsFuncCall priority
Give jsGlobalNodeObjects a higher priority that can therefore be targeted if desired.
1 parent afbe284 commit a7225e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ syntax match jsSwitchColon contained /:/ skipwhite skipempty nextgro
114114
" Keywords
115115
syntax keyword jsGlobalObjects Array Boolean Date Function Iterator Number Object Symbol Map WeakMap Set RegExp String Proxy Promise Buffer ParallelArray ArrayBuffer DataView Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray JSON Math console document window Intl Collator DateTimeFormat NumberFormat
116116
syntax keyword jsGlobalNodeObjects module exports global process
117-
syntax match jsGlobalNodeObjects /require/ contains=jsFuncCall
117+
syntax match jsGlobalNodeObjects /require/ containedin=jsFuncCall
118118
syntax keyword jsExceptions Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError
119119
syntax keyword jsBuiltins decodeURI decodeURIComponent encodeURI encodeURIComponent eval isFinite isNaN parseFloat parseInt uneval
120120
" DISCUSS: How imporant is this, really? Perhaps it should be linked to an error because I assume the keywords are reserved?

0 commit comments

Comments
 (0)