syntax_test_js_support_builtin.js (12318B)
1 // SYNTAX TEST "Packages/JavaScript/JavaScript.sublime-syntax" 2 3 isNaN; 4 // ^^^^^ support.function - meta.function-call 5 6 isNaN(); 7 // ^^^^^^^ meta.function-call - meta.function-call.method 8 // ^^^^^ support.function 9 // ^^ meta.group 10 11 isNaN.call(); 12 // ^^^^^^^^^^^^ meta.function-call.method - meta.function-call meta.function-call 13 // ^^^^^ support.function 14 15 new Error(); 16 // ^^^^^ support.class.builtin 17 18 Array; 19 // ^^^^^ support.class.builtin 20 ArrayBuffer; 21 // ^^^^^^^^^^^ support.class.builtin 22 Boolean; 23 // ^^^^^^^ support.class.builtin 24 BigInt; 25 // ^^^^^^ support.class.builtin 26 BigInt64Array; 27 // ^^^^^^^^^^^^^ support.class.builtin 28 BigUint64Array; 29 // ^^^^^^^^^^^^^^ support.class.builtin 30 DataView; 31 // ^^^^^^^^ support.class.builtin 32 Date; 33 // ^^^^ support.class.builtin 34 Float32Array; 35 // ^^^^^^^^^^^^ support.class.builtin 36 Float64Array; 37 // ^^^^^^^^^^^^ support.class.builtin 38 Function; 39 // ^^^^^^^^ support.class.builtin 40 Int8Array; 41 // ^^^^^^^^^ support.class.builtin 42 Int16Array; 43 // ^^^^^^^^^^ support.class.builtin 44 Int32Array; 45 // ^^^^^^^^^^ support.class.builtin 46 Map; 47 // ^^^ support.class.builtin 48 Number; 49 // ^^^^^^ support.class.builtin 50 Object; 51 // ^^^^^^ support.class.builtin 52 Promise; 53 // ^^^^^^^ support.class.builtin 54 Proxy; 55 // ^^^^^ support.class.builtin 56 RegExp; 57 // ^^^^^^ support.class.builtin 58 Set; 59 // ^^^ support.class.builtin 60 String; 61 // ^^^^^^ support.class.builtin 62 Symbol; 63 // ^^^^^^ support.class.builtin 64 Uint8Array; 65 // ^^^^^^^^^^ support.class.builtin 66 Uint16Array; 67 // ^^^^^^^^^^^ support.class.builtin 68 Uint32Array; 69 // ^^^^^^^^^^^ support.class.builtin 70 Uint32ClampedArray; 71 // ^^^^^^^^^^^^^^^^^^ support.class.builtin 72 WeakMap; 73 // ^^^^^^^ support.class.builtin 74 WeakSet; 75 // ^^^^^^^ support.class.builtin 76 77 Error; 78 // ^^^^^ support.class.builtin 79 EvalError; 80 // ^^^^^^^^^ support.class.builtin 81 RangeError; 82 // ^^^^^^^^^^ support.class.builtin 83 ReferenceError; 84 // ^^^^^^^^^^^^^^ support.class.builtin 85 SyntaxError; 86 // ^^^^^^^^^^^ support.class.builtin 87 TypeError; 88 // ^^^^^^^^^ support.class.builtin 89 URIError; 90 // ^^^^^^^^ support.class.builtin 91 92 Atomics; 93 // ^^^^^^^ support.constant.builtin 94 Math; 95 // ^^^^ support.constant.builtin 96 JSON; 97 // ^^^^ support.constant.builtin 98 Reflect; 99 // ^^^^^^^ support.constant.builtin 100 101 eval; 102 // ^^^^ support.function 103 isFinite; 104 // ^^^^^^^^ support.function 105 isNaN; 106 // ^^^^^ support.function 107 parseFloat; 108 // ^^^^^^^^^^ support.function 109 parseInt; 110 // ^^^^^^^^ support.function 111 decodeURI; 112 // ^^^^^^^^^ support.function 113 decodeURIComponent; 114 // ^^^^^^^^^^^^^^^^^^ support.function 115 encodeURI; 116 // ^^^^^^^^^ support.function 117 encodeURIComponent; 118 // ^^^^^^^^^^^^^^^^^^ support.function 119 120 121 foo.constructor; 122 // ^^^^^^^^^^^ variable.language.constructor 123 foo.__proto__; 124 // ^^^^^^^^^ invalid.deprecated variable.language.prototype 125 foo.__defineGetter__; 126 // ^^^^^^^^^^^^^^^^ invalid.deprecated support.function 127 foo.__defineSetter__; 128 // ^^^^^^^^^^^^^^^^ invalid.deprecated support.function 129 foo.__lookupGetter__; 130 // ^^^^^^^^^^^^^^^^ invalid.deprecated support.function 131 132 foo.hasOwnProperty; 133 // ^^^^^^^^^^^^^^ support.function 134 foo.isPrototypeOf; 135 // ^^^^^^^^^^^^^ support.function 136 foo.propertyIsEnumerable; 137 // ^^^^^^^^^^^^^^^^^^^^ support.function 138 foo.toLocaleString; 139 // ^^^^^^^^^^^^^^ support.function 140 foo.toString; 141 // ^^^^^^^^ support.function 142 foo.valueOf; 143 // ^^^^^^^ support.function 144 145 Array.from; 146 // ^^^^ support.function.builtin 147 Array.isArray; 148 // ^^^^^^^ support.function.builtin 149 Array.of; 150 // ^^ support.function.builtin 151 152 ArrayBuffer.isView; 153 // ^^^^^^ support.function.builtin 154 155 Atomics.and; 156 // ^^^ support.function.builtin 157 Atomics.add; 158 // ^^^ support.function.builtin 159 Atomics.compareExchange; 160 // ^^^^^^^^^^^^^^^ support.function.builtin 161 Atomics.exchange; 162 // ^^^^^^^^ support.function.builtin 163 Atomics.isLockFree; 164 // ^^^^^^^^^^ support.function.builtin 165 Atomics.load; 166 // ^^^^ support.function.builtin 167 Atomics.or; 168 // ^^ support.function.builtin 169 Atomics.store; 170 // ^^^^^ support.function.builtin 171 Atomics.sub; 172 // ^^^ support.function.builtin 173 Atomics.wait; 174 // ^^^^ support.function.builtin 175 Atomics.wake; 176 // ^^^^ support.function.builtin 177 Atomics.xor; 178 // ^^^ support.function.builtin 179 180 BigInt.asUintN; 181 // ^^^^^^^ support.function.builtin 182 BigInt.asIntN; 183 // ^^^^^^ support.function.builtin 184 185 Date.now; 186 // ^^^ support.function.builtin 187 Date.parse; 188 // ^^^^^ support.function.builtin 189 Date.UTC; 190 // ^^^ support.function.builtin 191 192 JSON.parse; 193 // ^^^^^ support.function.builtin 194 JSON.stringify; 195 // ^^^^^^^^^ support.function.builtin 196 197 Math.E; 198 // ^ support.constant.builtin 199 Math.LN10; 200 // ^^^^ support.constant.builtin 201 Math.LN2; 202 // ^^^ support.constant.builtin 203 Math.LOG10E; 204 // ^^^^^^ support.constant.builtin 205 Math.LOG2E; 206 // ^^^^^ support.constant.builtin 207 Math.PI; 208 // ^^ support.constant.builtin 209 Math.SQRT1_2; 210 // ^^^^^^^ support.constant.builtin 211 Math.SQRT2; 212 // ^^^^^ support.constant.builtin 213 Math.abs; 214 // ^^^ support.function.builtin 215 Math.acos; 216 // ^^^^ support.function.builtin 217 Math.acosh; 218 // ^^^^^ support.function.builtin 219 Math.asin; 220 // ^^^^ support.function.builtin 221 Math.asin; 222 // ^^^^ support.function.builtin 223 Math.atan; 224 // ^^^^ support.function.builtin 225 Math.atanh; 226 // ^^^^^ support.function.builtin 227 Math.atan2; 228 // ^^^^^ support.function.builtin 229 Math.cbrt; 230 // ^^^^ support.function.builtin 231 Math.ceil; 232 // ^^^^ support.function.builtin 233 Math.clz32; 234 // ^^^^^ support.function.builtin 235 Math.cos; 236 // ^^^ support.function.builtin 237 Math.cosh; 238 // ^^^^ support.function.builtin 239 Math.exp; 240 // ^^^ support.function.builtin 241 Math.expm1; 242 // ^^^^^ support.function.builtin 243 Math.floor; 244 // ^^^^^ support.function.builtin 245 Math.fround; 246 // ^^^^^^ support.function.builtin 247 Math.hypot; 248 // ^^^^^ support.function.builtin 249 Math.imul; 250 // ^^^^ support.function.builtin 251 Math.log; 252 // ^^^ support.function.builtin 253 Math.log1p; 254 // ^^^^^ support.function.builtin 255 Math.log10; 256 // ^^^^^ support.function.builtin 257 Math.log2; 258 // ^^^^ support.function.builtin 259 Math.max; 260 // ^^^ support.function.builtin 261 Math.min; 262 // ^^^ support.function.builtin 263 Math.pow; 264 // ^^^ support.function.builtin 265 Math.random; 266 // ^^^^^^ support.function.builtin 267 Math.round; 268 // ^^^^^ support.function.builtin 269 Math.sign; 270 // ^^^^ support.function.builtin 271 Math.sin; 272 // ^^^ support.function.builtin 273 Math.sinh; 274 // ^^^^ support.function.builtin 275 Math.sqrt; 276 // ^^^^ support.function.builtin 277 Math.tan; 278 // ^^^ support.function.builtin 279 Math.tanh; 280 // ^^^^ support.function.builtin 281 Math.trunc; 282 // ^^^^^ support.function.builtin 283 284 Number.EPSILON; 285 // ^^^^^^^ support.constant.builtin 286 Number.MAX_SAFE_INTEGER; 287 // ^^^^^^^^^^^^^^^^ support.constant.builtin 288 Number.MAX_VALUE; 289 // ^^^^^^^^^ support.constant.builtin 290 Number.MIN_SAFE_INTEGER; 291 // ^^^^^^^^^^^^^^^^ support.constant.builtin 292 Number.MIN_VALUE; 293 // ^^^^^^^^^ support.constant.builtin 294 Number.NEGATIVE_INFINITY; 295 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 296 Number.POSITIVE_INFINITY; 297 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 298 Number.isFinite; 299 // ^^^^^^^^ support.function.builtin 300 Number.isInteger; 301 // ^^^^^^^^^ support.function.builtin 302 Number.isNaN; 303 // ^^^^^ support.function.builtin 304 Number.isSafeInteger; 305 // ^^^^^^^^^^^^^ support.function.builtin 306 Number.NaN; 307 // ^^^ support.function.builtin 308 Number.parseFloat; 309 // ^^^^^^^^^^ support.function.builtin 310 Number.parseInt; 311 // ^^^^^^^^ support.function.builtin 312 313 Object.assign; 314 // ^^^^^^ support.function.builtin 315 Object.create; 316 // ^^^^^^ support.function.builtin 317 Object.defineProperties; 318 // ^^^^^^^^^^^^^^^^ support.function.builtin 319 Object.defineProperty; 320 // ^^^^^^^^^^^^^^ support.function.builtin 321 Object.entries; 322 // ^^^^^^^ support.function.builtin 323 Object.freeze; 324 // ^^^^^^ support.function.builtin 325 Object.fromEntries; 326 // ^^^^^^^^^^^ support.function.builtin 327 Object.getOwnPropertyDescriptors; 328 // ^^^^^^^^^^^^^^^^^^^^^^^^^ support.function.builtin 329 Object.getOwnPropertyNames; 330 // ^^^^^^^^^^^^^^^^^^^ support.function.builtin 331 Object.getOwnPropertySymbols; 332 // ^^^^^^^^^^^^^^^^^^^^^ support.function.builtin 333 Object.getPrototypeOf; 334 // ^^^^^^^^^^^^^^ support.function.builtin 335 Object.is; 336 // ^^ support.function.builtin 337 Object.isExtensible; 338 // ^^^^^^^^^^^^ support.function.builtin 339 Object.isFrozen; 340 // ^^^^^^^^ support.function.builtin 341 Object.isSealed; 342 // ^^^^^^^^ support.function.builtin 343 Object.keys; 344 // ^^^^ support.function.builtin 345 Object.preventExtensions; 346 // ^^^^^^^^^^^^^^^^^ support.function.builtin 347 Object.seal; 348 // ^^^^ support.function.builtin 349 Object.setPrototypeOf; 350 // ^^^^^^^^^^^^^^ support.function.builtin 351 Object.values; 352 // ^^^^^^ support.function.builtin 353 Object.notABuiltin; 354 // ^^^^^^^^^^^ meta.property.object - support 355 356 Promise.all; 357 // ^^^ support.function.builtin 358 Promise.race; 359 // ^^^^ support.function.builtin 360 Promise.reject; 361 // ^^^^^^ support.function.builtin 362 Promise.resolve; 363 // ^^^^^^^ support.function.builtin 364 Promise.allSettled; 365 // ^^^^^^^^^^ support.function.builtin 366 Promise.any; 367 // ^^^ support.function.builtin 368 369 Reflect.apply; 370 // ^^^^^ support.function.builtin 371 Reflect.construct; 372 // ^^^^^^^^^ support.function.builtin 373 Reflect.defineProperty; 374 // ^^^^^^^^^^^^^^ support.function.builtin 375 Reflect.deleteProperty; 376 // ^^^^^^^^^^^^^^ support.function.builtin 377 Reflect.get; 378 // ^^^ support.function.builtin 379 Reflect.getOwnPropertyDescriptor; 380 // ^^^^^^^^^^^^^^^^^^^^^^^^ support.function.builtin 381 Reflect.getPrototypeOf; 382 // ^^^^^^^^^^^^^^ support.function.builtin 383 Reflect.has; 384 // ^^^ support.function.builtin 385 Reflect.isExtensible; 386 // ^^^^^^^^^^^^ support.function.builtin 387 Reflect.ownKeys; 388 // ^^^^^^^ support.function.builtin 389 Reflect.preventExtensions; 390 // ^^^^^^^^^^^^^^^^^ support.function.builtin 391 Reflect.set; 392 // ^^^ support.function.builtin 393 Reflect.setPrototypeOf; 394 // ^^^^^^^^^^^^^^ support.function.builtin 395 396 String.fromCharCode; 397 // ^^^^^^^^^^^^ support.function.builtin 398 String.fromCodePoint; 399 // ^^^^^^^^^^^^^ support.function.builtin 400 String.raw; 401 // ^^^ support.function.builtin 402 403 Symbol.asyncIterator; 404 // ^^^^^^^^^^^^^ support.constant.builtin 405 Symbol.hasInstance; 406 // ^^^^^^^^^^^ support.constant.builtin 407 Symbol.isConcatSpreadable; 408 // ^^^^^^^^^^^^^^^^^^ support.constant.builtin 409 Symbol.iterator; 410 // ^^^^^^^^ support.constant.builtin 411 Symbol.match; 412 // ^^^^^ support.constant.builtin 413 Symbol.replace; 414 // ^^^^^^^ support.constant.builtin 415 Symbol.search; 416 // ^^^^^^ support.constant.builtin 417 Symbol.species; 418 // ^^^^^^^ support.constant.builtin 419 Symbol.split; 420 // ^^^^^ support.constant.builtin 421 Symbol.toPrimitive; 422 // ^^^^^^^^^^^ support.constant.builtin 423 Symbol.toStringTag; 424 // ^^^^^^^^^^^ support.constant.builtin 425 Symbol.unscopeables; 426 // ^^^^^^^^^^^^ support.constant.builtin 427 Symbol.for; 428 // ^^^ support.function.builtin 429 Symbol.keyFor; 430 // ^^^^^^ support.function.builtin 431 Symbol.notABuiltin; 432 // ^^^^^^^^^^^ meta.property.object - support 433 434 BigInt64Array.BYTES_PER_ELEMENT; 435 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 436 BigUint64Array.BYTES_PER_ELEMENT; 437 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 438 Int8Array.BYTES_PER_ELEMENT; 439 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 440 Float32Array.BYTES_PER_ELEMENT; 441 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 442 Float64Array.BYTES_PER_ELEMENT; 443 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 444 Int8Array.BYTES_PER_ELEMENT; 445 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 446 Int16Array.BYTES_PER_ELEMENT; 447 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 448 Int32Array.BYTES_PER_ELEMENT; 449 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 450 Uint8Array.BYTES_PER_ELEMENT; 451 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 452 Uint16Array.BYTES_PER_ELEMENT; 453 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 454 Uint32Array.BYTES_PER_ELEMENT; 455 // ^^^^^^^^^^^^^^^^^ support.constant.builtin 456 Uint32ClampedArray.BYTES_PER_ELEMENT; 457 // ^^^^^^^^^^^^^^^^^ support.constant.builtin