@me0wo/opencode-darwin-arm64 0.0.0-stage → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/assets/@ff-labs/fff-bin-darwin-arm64/libfff_c.dylib +0 -0
  2. package/assets/@lydell/node-pty-darwin-arm64/LICENSE +69 -0
  3. package/assets/@lydell/node-pty-darwin-arm64/README.md +3 -0
  4. package/assets/@lydell/node-pty-darwin-arm64/lib/eventEmitter2.js +47 -0
  5. package/assets/@lydell/node-pty-darwin-arm64/lib/index.js +52 -0
  6. package/assets/@lydell/node-pty-darwin-arm64/lib/interfaces.js +7 -0
  7. package/assets/@lydell/node-pty-darwin-arm64/lib/terminal.js +190 -0
  8. package/assets/@lydell/node-pty-darwin-arm64/lib/types.js +7 -0
  9. package/assets/@lydell/node-pty-darwin-arm64/lib/unixTerminal.js +349 -0
  10. package/assets/@lydell/node-pty-darwin-arm64/lib/utils.js +39 -0
  11. package/assets/@lydell/node-pty-darwin-arm64/package.json +18 -0
  12. package/assets/@lydell/node-pty-darwin-arm64/prebuilds/darwin-arm64/pty.node +0 -0
  13. package/assets/@lydell/node-pty-darwin-arm64/prebuilds/darwin-arm64/spawn-helper +0 -0
  14. package/assets/@opencode/ui/audio/bip-bop-01.mp3 +0 -0
  15. package/assets/@opencode/ui/audio/bip-bop-03.mp3 +0 -0
  16. package/assets/@opencode/ui/audio/nope-03.mp3 +0 -0
  17. package/assets/@opencode/ui/audio/staplebops-06.mp3 +0 -0
  18. package/assets/@opencode/ui/audio/yup-01.mp3 +0 -0
  19. package/assets/@opentui/core/assets/javascript/highlights.scm +205 -0
  20. package/assets/@opentui/core/assets/javascript/tree-sitter-javascript.wasm +0 -0
  21. package/assets/@opentui/core/assets/markdown/highlights.scm +150 -0
  22. package/assets/@opentui/core/assets/markdown/injections.scm +27 -0
  23. package/assets/@opentui/core/assets/markdown/tree-sitter-markdown.wasm +0 -0
  24. package/assets/@opentui/core/assets/markdown_inline/highlights.scm +115 -0
  25. package/assets/@opentui/core/assets/markdown_inline/tree-sitter-markdown_inline.wasm +0 -0
  26. package/assets/@opentui/core/assets/typescript/highlights.scm +604 -0
  27. package/assets/@opentui/core/assets/typescript/tree-sitter-typescript.wasm +0 -0
  28. package/assets/@opentui/core/assets/typescriptreact/highlights.scm +758 -0
  29. package/assets/@opentui/core/assets/typescriptreact/tree-sitter-tsx.wasm +0 -0
  30. package/assets/@opentui/core/assets/zig/highlights.scm +284 -0
  31. package/assets/@opentui/core/assets/zig/tree-sitter-zig.wasm +0 -0
  32. package/assets/@opentui/core/parser.worker.js +4573 -0
  33. package/assets/@opentui/core-darwin-arm64/libopentui.dylib +0 -0
  34. package/assets/@parcel/watcher-darwin-arm64/watcher.node +0 -0
  35. package/assets/@silvia-odwyer/photon-node/photon_rs_bg.wasm +0 -0
  36. package/assets/@yuuang/ffi-rs-darwin-arm64/ffi-rs.darwin-arm64.node +0 -0
  37. package/assets/app-archive.bin +0 -0
  38. package/assets/opencode-pty/opencode-pty +0 -0
  39. package/assets/web-tree-sitter/tree-sitter.wasm +0 -0
  40. package/opencode-sea-shim.mjs +9 -0
  41. package/opencode.mjs +5128 -0
  42. package/package.json +10 -4
  43. package/README.md +0 -3
@@ -0,0 +1,349 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UnixTerminal = void 0;
17
+ /**
18
+ * Copyright (c) 2012-2015, Christopher Jeffrey (MIT License)
19
+ * Copyright (c) 2016, Daniel Imms (MIT License).
20
+ * Copyright (c) 2018, Microsoft Corporation (MIT License).
21
+ */
22
+ var fs = require("fs");
23
+ var path = require("path");
24
+ var tty = require("tty");
25
+ var terminal_1 = require("./terminal");
26
+ var utils_1 = require("./utils");
27
+ var native = utils_1.loadNativeModule('pty');
28
+ var pty = native.module;
29
+ var helperPath = native.dir + '/spawn-helper';
30
+ helperPath = path.resolve(__dirname, helperPath);
31
+ helperPath = helperPath.replace('app.asar', 'app.asar.unpacked');
32
+ helperPath = helperPath.replace('node_modules.asar', 'node_modules.asar.unpacked');
33
+ var DEFAULT_FILE = 'sh';
34
+ var DEFAULT_NAME = 'xterm';
35
+ var DESTROY_SOCKET_TIMEOUT_MS = 200;
36
+ var UnixTerminal = /** @class */ (function (_super) {
37
+ __extends(UnixTerminal, _super);
38
+ function UnixTerminal(file, args, opt) {
39
+ var _a, _b;
40
+ var _this = _super.call(this, opt) || this;
41
+ _this._boundClose = false;
42
+ _this._emittedClose = false;
43
+ if (typeof args === 'string') {
44
+ throw new Error('args as a string is not supported on unix.');
45
+ }
46
+ // Initialize arguments
47
+ args = args || [];
48
+ file = file || DEFAULT_FILE;
49
+ opt = opt || {};
50
+ opt.env = opt.env || process.env;
51
+ _this._cols = opt.cols || terminal_1.DEFAULT_COLS;
52
+ _this._rows = opt.rows || terminal_1.DEFAULT_ROWS;
53
+ var uid = (_a = opt.uid) !== null && _a !== void 0 ? _a : -1;
54
+ var gid = (_b = opt.gid) !== null && _b !== void 0 ? _b : -1;
55
+ var env = utils_1.assign({}, opt.env);
56
+ if (opt.env === process.env) {
57
+ _this._sanitizeEnv(env);
58
+ }
59
+ var cwd = opt.cwd || process.cwd();
60
+ env.PWD = cwd;
61
+ var name = opt.name || env.TERM || DEFAULT_NAME;
62
+ env.TERM = name;
63
+ var parsedEnv = _this._parseEnv(env);
64
+ var encoding = (opt.encoding === undefined ? 'utf8' : opt.encoding);
65
+ var onexit = function (code, signal) {
66
+ // XXX Sometimes a data event is emitted after exit. Wait til socket is
67
+ // destroyed.
68
+ if (!_this._emittedClose) {
69
+ if (_this._boundClose) {
70
+ return;
71
+ }
72
+ _this._boundClose = true;
73
+ // From macOS High Sierra 10.13.2 sometimes the socket never gets
74
+ // closed. A timeout is applied here to avoid the terminal never being
75
+ // destroyed when this occurs.
76
+ var timeout_1 = setTimeout(function () {
77
+ timeout_1 = null;
78
+ // Destroying the socket now will cause the close event to fire
79
+ _this._socket.destroy();
80
+ }, DESTROY_SOCKET_TIMEOUT_MS);
81
+ _this.once('close', function () {
82
+ if (timeout_1 !== null) {
83
+ clearTimeout(timeout_1);
84
+ }
85
+ _this.emit('exit', code, signal);
86
+ });
87
+ return;
88
+ }
89
+ _this.emit('exit', code, signal);
90
+ };
91
+ // fork
92
+ var term = pty.fork(file, args, parsedEnv, cwd, _this._cols, _this._rows, uid, gid, (encoding === 'utf8'), helperPath, onexit);
93
+ _this._socket = new tty.ReadStream(term.fd);
94
+ if (encoding !== null) {
95
+ _this._socket.setEncoding(encoding);
96
+ }
97
+ _this._writeStream = new CustomWriteStream(term.fd, (encoding || undefined));
98
+ // setup
99
+ _this._socket.on('error', function (err) {
100
+ // NOTE: fs.ReadStream gets EAGAIN twice at first:
101
+ if (err.code) {
102
+ if (~err.code.indexOf('EAGAIN')) {
103
+ return;
104
+ }
105
+ }
106
+ // close
107
+ _this._close();
108
+ // EIO on exit from fs.ReadStream:
109
+ if (!_this._emittedClose) {
110
+ _this._emittedClose = true;
111
+ _this.emit('close');
112
+ }
113
+ // EIO, happens when someone closes our child process: the only process in
114
+ // the terminal.
115
+ // node < 0.6.14: errno 5
116
+ // node >= 0.6.14: read EIO
117
+ if (err.code) {
118
+ if (~err.code.indexOf('errno 5') || ~err.code.indexOf('EIO')) {
119
+ return;
120
+ }
121
+ }
122
+ // throw anything else
123
+ if (_this.listeners('error').length < 2) {
124
+ throw err;
125
+ }
126
+ });
127
+ _this._pid = term.pid;
128
+ _this._fd = term.fd;
129
+ _this._pty = term.pty;
130
+ _this._file = file;
131
+ _this._name = name;
132
+ _this._readable = true;
133
+ _this._writable = true;
134
+ _this._socket.on('close', function () {
135
+ if (_this._emittedClose) {
136
+ return;
137
+ }
138
+ _this._emittedClose = true;
139
+ _this._close();
140
+ _this.emit('close');
141
+ });
142
+ _this._forwardEvents();
143
+ return _this;
144
+ }
145
+ Object.defineProperty(UnixTerminal.prototype, "master", {
146
+ get: function () { return this._master; },
147
+ enumerable: false,
148
+ configurable: true
149
+ });
150
+ Object.defineProperty(UnixTerminal.prototype, "slave", {
151
+ get: function () { return this._slave; },
152
+ enumerable: false,
153
+ configurable: true
154
+ });
155
+ UnixTerminal.prototype._write = function (data) {
156
+ this._writeStream.write(data);
157
+ };
158
+ Object.defineProperty(UnixTerminal.prototype, "fd", {
159
+ /* Accessors */
160
+ get: function () { return this._fd; },
161
+ enumerable: false,
162
+ configurable: true
163
+ });
164
+ Object.defineProperty(UnixTerminal.prototype, "ptsName", {
165
+ get: function () { return this._pty; },
166
+ enumerable: false,
167
+ configurable: true
168
+ });
169
+ /**
170
+ * openpty
171
+ */
172
+ UnixTerminal.open = function (opt) {
173
+ var self = Object.create(UnixTerminal.prototype);
174
+ opt = opt || {};
175
+ if (arguments.length > 1) {
176
+ opt = {
177
+ cols: arguments[1],
178
+ rows: arguments[2]
179
+ };
180
+ }
181
+ var cols = opt.cols || terminal_1.DEFAULT_COLS;
182
+ var rows = opt.rows || terminal_1.DEFAULT_ROWS;
183
+ var encoding = (opt.encoding === undefined ? 'utf8' : opt.encoding);
184
+ // open
185
+ var term = pty.open(cols, rows);
186
+ self._master = new tty.ReadStream(term.master);
187
+ if (encoding !== null) {
188
+ self._master.setEncoding(encoding);
189
+ }
190
+ self._master.resume();
191
+ self._slave = new tty.ReadStream(term.slave);
192
+ if (encoding !== null) {
193
+ self._slave.setEncoding(encoding);
194
+ }
195
+ self._slave.resume();
196
+ self._socket = self._master;
197
+ self._pid = -1;
198
+ self._fd = term.master;
199
+ self._pty = term.pty;
200
+ self._file = process.argv[0] || 'node';
201
+ self._name = process.env.TERM || '';
202
+ self._readable = true;
203
+ self._writable = true;
204
+ self._socket.on('error', function (err) {
205
+ self._close();
206
+ if (self.listeners('error').length < 2) {
207
+ throw err;
208
+ }
209
+ });
210
+ self._socket.on('close', function () {
211
+ self._close();
212
+ });
213
+ return self;
214
+ };
215
+ UnixTerminal.prototype.destroy = function () {
216
+ var _this = this;
217
+ this._close();
218
+ // Need to close the read stream so node stops reading a dead file
219
+ // descriptor. Then we can safely SIGHUP the shell.
220
+ this._socket.once('close', function () {
221
+ _this.kill('SIGHUP');
222
+ });
223
+ this._socket.destroy();
224
+ this._writeStream.dispose();
225
+ };
226
+ UnixTerminal.prototype.kill = function (signal) {
227
+ try {
228
+ process.kill(this.pid, signal || 'SIGHUP');
229
+ }
230
+ catch (e) { /* swallow */ }
231
+ };
232
+ Object.defineProperty(UnixTerminal.prototype, "process", {
233
+ /**
234
+ * Gets the name of the process.
235
+ */
236
+ get: function () {
237
+ if (process.platform === 'darwin') {
238
+ var title = pty.process(this._fd);
239
+ return (title !== 'kernel_task' && title !== 'spawn_helper') ? title : this._file;
240
+ }
241
+ return pty.process(this._fd, this._pty) || this._file;
242
+ },
243
+ enumerable: false,
244
+ configurable: true
245
+ });
246
+ /**
247
+ * TTY
248
+ */
249
+ UnixTerminal.prototype.resize = function (cols, rows, pixelSize) {
250
+ var _a, _b;
251
+ if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
252
+ throw new Error('resizing must be done using positive cols and rows');
253
+ }
254
+ var pixelWidth = (_a = pixelSize === null || pixelSize === void 0 ? void 0 : pixelSize.width) !== null && _a !== void 0 ? _a : 0;
255
+ var pixelHeight = (_b = pixelSize === null || pixelSize === void 0 ? void 0 : pixelSize.height) !== null && _b !== void 0 ? _b : 0;
256
+ pty.resize(this._fd, cols, rows, pixelWidth, pixelHeight);
257
+ this._cols = cols;
258
+ this._rows = rows;
259
+ };
260
+ UnixTerminal.prototype.clear = function () {
261
+ };
262
+ UnixTerminal.prototype._sanitizeEnv = function (env) {
263
+ // Make sure we didn't start our server from inside tmux.
264
+ delete env['TMUX'];
265
+ delete env['TMUX_PANE'];
266
+ // Make sure we didn't start our server from inside screen.
267
+ // http://web.mit.edu/gnu/doc/html/screen_20.html
268
+ delete env['STY'];
269
+ delete env['WINDOW'];
270
+ // Delete some variables that might confuse our terminal.
271
+ delete env['WINDOWID'];
272
+ delete env['TERMCAP'];
273
+ delete env['COLUMNS'];
274
+ delete env['LINES'];
275
+ };
276
+ return UnixTerminal;
277
+ }(terminal_1.Terminal));
278
+ exports.UnixTerminal = UnixTerminal;
279
+ /**
280
+ * A custom write stream that writes directly to a file descriptor with proper
281
+ * handling of backpressure and errors. This avoids some event loop exhaustion
282
+ * issues that can occur when using the standard APIs in Node.
283
+ */
284
+ var CustomWriteStream = /** @class */ (function () {
285
+ function CustomWriteStream(_fd, _encoding) {
286
+ this._fd = _fd;
287
+ this._encoding = _encoding;
288
+ this._writeQueue = [];
289
+ }
290
+ CustomWriteStream.prototype.dispose = function () {
291
+ clearImmediate(this._writeImmediate);
292
+ this._writeImmediate = undefined;
293
+ };
294
+ CustomWriteStream.prototype.write = function (data) {
295
+ // Writes are put in a queue and processed asynchronously in order to handle
296
+ // backpressure from the kernel buffer.
297
+ var buffer = typeof data === 'string'
298
+ ? Buffer.from(data, this._encoding)
299
+ : Buffer.from(data);
300
+ if (buffer.byteLength !== 0) {
301
+ this._writeQueue.push({ buffer: buffer, offset: 0 });
302
+ if (this._writeQueue.length === 1) {
303
+ this._processWriteQueue();
304
+ }
305
+ }
306
+ };
307
+ CustomWriteStream.prototype._processWriteQueue = function () {
308
+ var _this = this;
309
+ this._writeImmediate = undefined;
310
+ if (this._writeQueue.length === 0) {
311
+ return;
312
+ }
313
+ var task = this._writeQueue[0];
314
+ // Write to the underlying file descriptor and handle it directly, rather
315
+ // than using the `net.Socket`/`tty.WriteStream` wrappers which swallow and
316
+ // mask errors like EAGAIN and can cause the thread to block indefinitely.
317
+ fs.write(this._fd, task.buffer, task.offset, function (err, written) {
318
+ if (err) {
319
+ if ('code' in err && err.code === 'EAGAIN') {
320
+ // `setImmediate` is used to yield to the event loop and re-attempt
321
+ // the write later.
322
+ _this._writeImmediate = setImmediate(function () { return _this._processWriteQueue(); });
323
+ }
324
+ else {
325
+ // Stop processing immediately on unexpected error and log
326
+ _this._writeQueue.length = 0;
327
+ console.error('Unhandled pty write error', err);
328
+ }
329
+ return;
330
+ }
331
+ task.offset += written;
332
+ if (task.offset >= task.buffer.byteLength) {
333
+ _this._writeQueue.shift();
334
+ }
335
+ // Since there is more room in the kernel buffer, we can continue to write
336
+ // until we hit EAGAIN or exhaust the queue.
337
+ //
338
+ // Note that old versions of bash, like v3.2 which ships in macOS, appears
339
+ // to have a bug in its readline implementation that causes data
340
+ // corruption when writes to the pty happens too quickly. Instead of
341
+ // trying to workaround that we just accept it so that large pastes are as
342
+ // fast as possible.
343
+ // Context: https://github.com/microsoft/node-pty/issues/833
344
+ _this._processWriteQueue();
345
+ });
346
+ };
347
+ return CustomWriteStream;
348
+ }());
349
+ //# sourceMappingURL=unixTerminal.js.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) 2017, Daniel Imms (MIT License).
4
+ * Copyright (c) 2018, Microsoft Corporation (MIT License).
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.loadNativeModule = exports.assign = void 0;
8
+ function assign(target) {
9
+ var sources = [];
10
+ for (var _i = 1; _i < arguments.length; _i++) {
11
+ sources[_i - 1] = arguments[_i];
12
+ }
13
+ sources.forEach(function (source) { return Object.keys(source).forEach(function (key) { return target[key] = source[key]; }); });
14
+ return target;
15
+ }
16
+ exports.assign = assign;
17
+ function loadNativeModule(name) {
18
+ // Check build, debug, and then prebuilds.
19
+ var dirs = ['build/Release', 'build/Debug', "prebuilds/" + process.platform + "-" + process.arch];
20
+ // Check relative to the parent dir for unbundled and then the current dir for bundled
21
+ var relative = ['..', '.'];
22
+ var lastError;
23
+ for (var _i = 0, dirs_1 = dirs; _i < dirs_1.length; _i++) {
24
+ var d = dirs_1[_i];
25
+ for (var _a = 0, relative_1 = relative; _a < relative_1.length; _a++) {
26
+ var r = relative_1[_a];
27
+ var dir = r + "/" + d;
28
+ try {
29
+ return { dir: dir, module: require(dir + "/" + name + ".node") };
30
+ }
31
+ catch (e) {
32
+ lastError = e;
33
+ }
34
+ }
35
+ }
36
+ throw new Error("Failed to load native module: " + name + ".node, checked: " + dirs.join(', ') + ": " + lastError);
37
+ }
38
+ exports.loadNativeModule = loadNativeModule;
39
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@lydell/node-pty-darwin-arm64",
3
+ "version": "1.2.0-beta.12",
4
+ "description": "The node-pty package, stripped down only for darwin-arm64.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/lydell/node-pty.git"
8
+ },
9
+ "license": "MIT",
10
+ "type": "commonjs",
11
+ "exports": "./lib/index.js",
12
+ "os": [
13
+ "darwin"
14
+ ],
15
+ "cpu": [
16
+ "arm64"
17
+ ]
18
+ }
@@ -0,0 +1,205 @@
1
+ ; Query from: https://raw.githubusercontent.com/tree-sitter/tree-sitter-javascript/refs/heads/master/queries/highlights.scm
2
+ ; Variables
3
+ ;----------
4
+
5
+ (identifier) @variable
6
+
7
+ ; Properties
8
+ ;-----------
9
+
10
+ (property_identifier) @property
11
+
12
+ ; Function and method definitions
13
+ ;--------------------------------
14
+
15
+ (function_expression
16
+ name: (identifier) @function)
17
+ (function_declaration
18
+ name: (identifier) @function)
19
+ (method_definition
20
+ name: (property_identifier) @function.method)
21
+
22
+ (pair
23
+ key: (property_identifier) @function.method
24
+ value: [(function_expression) (arrow_function)])
25
+
26
+ (assignment_expression
27
+ left: (member_expression
28
+ property: (property_identifier) @function.method)
29
+ right: [(function_expression) (arrow_function)])
30
+
31
+ (variable_declarator
32
+ name: (identifier) @function
33
+ value: [(function_expression) (arrow_function)])
34
+
35
+ (assignment_expression
36
+ left: (identifier) @function
37
+ right: [(function_expression) (arrow_function)])
38
+
39
+ ; Function and method calls
40
+ ;--------------------------
41
+
42
+ (call_expression
43
+ function: (identifier) @function)
44
+
45
+ (call_expression
46
+ function: (member_expression
47
+ property: (property_identifier) @function.method))
48
+
49
+ ; Special identifiers
50
+ ;--------------------
51
+
52
+ ((identifier) @constructor
53
+ (#match? @constructor "^[A-Z]"))
54
+
55
+ ([
56
+ (identifier)
57
+ (shorthand_property_identifier)
58
+ (shorthand_property_identifier_pattern)
59
+ ] @constant
60
+ (#match? @constant "^[A-Z_][A-Z\\d_]+$"))
61
+
62
+ ((identifier) @variable.builtin
63
+ (#match? @variable.builtin "^(arguments|module|console|window|document)$")
64
+ (#is-not? local))
65
+
66
+ ((identifier) @function.builtin
67
+ (#eq? @function.builtin "require")
68
+ (#is-not? local))
69
+
70
+ ; Literals
71
+ ;---------
72
+
73
+ (this) @variable.builtin
74
+ (super) @variable.builtin
75
+
76
+ [
77
+ (true)
78
+ (false)
79
+ (null)
80
+ (undefined)
81
+ ] @constant.builtin
82
+
83
+ (comment) @comment
84
+
85
+ [
86
+ (string)
87
+ (template_string)
88
+ ] @string
89
+
90
+ (regex) @string.special
91
+ (number) @number
92
+
93
+ ; Tokens
94
+ ;-------
95
+
96
+ [
97
+ ";"
98
+ (optional_chain)
99
+ "."
100
+ ","
101
+ ] @punctuation.delimiter
102
+
103
+ [
104
+ "-"
105
+ "--"
106
+ "-="
107
+ "+"
108
+ "++"
109
+ "+="
110
+ "*"
111
+ "*="
112
+ "**"
113
+ "**="
114
+ "/"
115
+ "/="
116
+ "%"
117
+ "%="
118
+ "<"
119
+ "<="
120
+ "<<"
121
+ "<<="
122
+ "="
123
+ "=="
124
+ "==="
125
+ "!"
126
+ "!="
127
+ "!=="
128
+ "=>"
129
+ ">"
130
+ ">="
131
+ ">>"
132
+ ">>="
133
+ ">>>"
134
+ ">>>="
135
+ "~"
136
+ "^"
137
+ "&"
138
+ "|"
139
+ "^="
140
+ "&="
141
+ "|="
142
+ "&&"
143
+ "||"
144
+ "??"
145
+ "&&="
146
+ "||="
147
+ "??="
148
+ ] @operator
149
+
150
+ [
151
+ "("
152
+ ")"
153
+ "["
154
+ "]"
155
+ "{"
156
+ "}"
157
+ ] @punctuation.bracket
158
+
159
+ (template_substitution
160
+ "${" @punctuation.special
161
+ "}" @punctuation.special) @embedded
162
+
163
+ [
164
+ "as"
165
+ "async"
166
+ "await"
167
+ "break"
168
+ "case"
169
+ "catch"
170
+ "class"
171
+ "const"
172
+ "continue"
173
+ "debugger"
174
+ "default"
175
+ "delete"
176
+ "do"
177
+ "else"
178
+ "export"
179
+ "extends"
180
+ "finally"
181
+ "for"
182
+ "from"
183
+ "function"
184
+ "get"
185
+ "if"
186
+ "import"
187
+ "in"
188
+ "instanceof"
189
+ "let"
190
+ "new"
191
+ "of"
192
+ "return"
193
+ "set"
194
+ "static"
195
+ "switch"
196
+ "target"
197
+ "throw"
198
+ "try"
199
+ "typeof"
200
+ "var"
201
+ "void"
202
+ "while"
203
+ "with"
204
+ "yield"
205
+ ] @keyword