@codingame/monaco-editor-wrapper 3.5.2 → 3.6.0
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.
- package/dist/COBOL.tmLanguage.js +22 -6
- package/dist/JavaScript.tmLanguage.js +2 -2
- package/dist/JavaScriptReact.tmLanguage.js +2 -2
- package/dist/TypeScript.tmLanguage.js +2 -2
- package/dist/TypeScriptReact.tmLanguage.js +2 -2
- package/dist/_monaco-editor_commonjs-external.js +8 -1
- package/dist/angular.js +6 -0
- package/dist/buildignore.r.js +5 -0
- package/dist/{COBOL.js → cobol.js} +2 -2
- package/dist/cobol2.js +71 -47
- package/dist/cpp.tmLanguage.js +808 -4380
- package/dist/cpptools.js +1896 -1867
- package/dist/css.tmLanguage.js +1 -1
- package/dist/d.js +3 -0
- package/dist/d3.js +369 -288
- package/dist/dart.js +37 -24
- package/dist/dart3.js +46 -6
- package/dist/features/extensionConfigurations.js +2 -1
- package/dist/features/jsonContribution.d.ts +1 -1
- package/dist/features/typescriptContribution.js +1 -1
- package/dist/go.mod.js +8 -0
- package/dist/go.mod.tmGrammar.js +182 -0
- package/dist/go.sum.tmGrammar.js +55 -0
- package/dist/go.work.js +8 -0
- package/dist/govulncheck.tmGrammar.js +138 -0
- package/dist/html.tmLanguage.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index2.js +89 -18
- package/dist/java2.js +80 -2
- package/dist/javascript.js +1 -1
- package/dist/javascriptreact.js +1 -1
- package/dist/lua.tmLanguage.js +104 -7
- package/dist/lua2.js +98 -26
- package/dist/main.js +151 -29
- package/dist/markdown-vue.js +1 -1
- package/dist/namespace.r.js +88 -0
- package/dist/ocaml3.js +8 -1
- package/dist/rbuildignore.js +39 -0
- package/dist/rnamespace.js +283 -0
- package/dist/scalameta.js +12 -5
- package/dist/shell-unix-bash.tmLanguage.js +1193 -528
- package/dist/solargraph.js +2 -2
- package/dist/sql.tmLanguage.js +134 -46
- package/dist/style.d.ts +1 -0
- package/dist/svelte.js +3 -1
- package/dist/svelte.svelte-vscode.js +11 -14
- package/dist/svlangserver.js +2 -2
- package/dist/tcl.tmlanguage.yaml.js +1 -1
- package/dist/theme-defaults~dark_plus_experimental.js +146 -0
- package/dist/theme-defaults~dark_vs.js +6 -2
- package/dist/theme-defaults~light_plus_experimental.js +159 -0
- package/dist/theme-defaults~light_vs.js +4 -2
- package/dist/tools/EditorOpenHandlerRegistry.d.ts +1 -1
- package/dist/typescript-language-features.js +48 -45
- package/dist/typescript.js +1 -1
- package/dist/typescriptreact.js +1 -1
- package/dist/volar-vue.js +51 -18
- package/dist/vscode-R.js +12 -1
- package/dist/vscode-go-go.js +276 -0
- package/dist/vscode-go.js +1604 -0
- package/dist/vscode-python.js +14 -9
- package/dist/vue-directives.js +1 -1
- package/dist/vue-interpolations.js +1 -1
- package/dist/vue-sfc-style-variable-injection.js +1 -1
- package/dist/vue.tmLanguage.js +44 -12
- package/dist/worker.d.ts +1 -1
- package/package.json +30 -27
- package/stats.html +2462 -329
- package/dist/COBOL Copybook.js +0 -6
- package/dist/cobol-snippets.js +0 -5
package/dist/dart.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
var name = "Dart";
|
|
2
|
+
var version = "1.1.1";
|
|
2
3
|
var fileTypes = [
|
|
3
4
|
"dart"
|
|
4
5
|
];
|
|
@@ -56,6 +57,9 @@ var patterns = [
|
|
|
56
57
|
{
|
|
57
58
|
include: "#constants-and-special-vars"
|
|
58
59
|
},
|
|
60
|
+
{
|
|
61
|
+
include: "#operators"
|
|
62
|
+
},
|
|
59
63
|
{
|
|
60
64
|
include: "#strings"
|
|
61
65
|
}
|
|
@@ -228,22 +232,26 @@ var repository = {
|
|
|
228
232
|
"class-identifier": {
|
|
229
233
|
patterns: [
|
|
230
234
|
{
|
|
231
|
-
match: "(
|
|
232
|
-
|
|
235
|
+
match: "(?<!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)",
|
|
236
|
+
name: "support.class.dart"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
match: "(?<!\\$)\\bvoid\\b(?!\\$)",
|
|
240
|
+
name: "storage.type.primitive.dart"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
begin: "(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b",
|
|
244
|
+
end: "(?!<)",
|
|
245
|
+
beginCaptures: {
|
|
233
246
|
"1": {
|
|
234
247
|
name: "support.class.dart"
|
|
235
|
-
},
|
|
236
|
-
"2": {
|
|
237
|
-
patterns: [
|
|
238
|
-
{
|
|
239
|
-
include: "#type-args"
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
"3": {
|
|
244
|
-
name: "storage.type.primitive.dart"
|
|
245
248
|
}
|
|
246
|
-
}
|
|
249
|
+
},
|
|
250
|
+
patterns: [
|
|
251
|
+
{
|
|
252
|
+
include: "#type-args"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
247
255
|
}
|
|
248
256
|
]
|
|
249
257
|
},
|
|
@@ -284,7 +292,7 @@ var repository = {
|
|
|
284
292
|
include: "#class-identifier"
|
|
285
293
|
},
|
|
286
294
|
{
|
|
287
|
-
match: "
|
|
295
|
+
match: ","
|
|
288
296
|
},
|
|
289
297
|
{
|
|
290
298
|
name: "keyword.declaration.dart",
|
|
@@ -320,8 +328,20 @@ var repository = {
|
|
|
320
328
|
},
|
|
321
329
|
{
|
|
322
330
|
name: "keyword.declaration.dart",
|
|
323
|
-
match: "(?<!\\$)\\b(abstract|class|enum|extends|extension|external|factory|implements|get|mixin|native|operator|set|typedef|with|covariant)\\b(?!\\$)"
|
|
331
|
+
match: "(?<!\\$)\\b(abstract|class|enum|extends|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
name: "storage.modifier.dart",
|
|
335
|
+
match: "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
|
|
324
336
|
},
|
|
337
|
+
{
|
|
338
|
+
name: "storage.type.primitive.dart",
|
|
339
|
+
match: "(?<!\\$)\\b(?:void|var)\\b(?!\\$)"
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
operators: {
|
|
344
|
+
patterns: [
|
|
325
345
|
{
|
|
326
346
|
name: "keyword.operator.dart",
|
|
327
347
|
match: "(?<!\\$)\\b(is\\!?)\\b(?!\\$)"
|
|
@@ -365,14 +385,6 @@ var repository = {
|
|
|
365
385
|
{
|
|
366
386
|
name: "keyword.operator.logical.dart",
|
|
367
387
|
match: "(!|&&|\\|\\|)"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
name: "storage.modifier.dart",
|
|
371
|
-
match: "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
name: "storage.type.primitive.dart",
|
|
375
|
-
match: "(?<!\\$)\\b(?:void|var)\\b(?!\\$)"
|
|
376
388
|
}
|
|
377
389
|
]
|
|
378
390
|
},
|
|
@@ -518,6 +530,7 @@ var information_for_contributors = [
|
|
|
518
530
|
];
|
|
519
531
|
var dart = {
|
|
520
532
|
name: name,
|
|
533
|
+
version: version,
|
|
521
534
|
fileTypes: fileTypes,
|
|
522
535
|
scopeName: scopeName,
|
|
523
536
|
foldingStartMarker: foldingStartMarker,
|
|
@@ -527,4 +540,4 @@ var dart = {
|
|
|
527
540
|
information_for_contributors: information_for_contributors
|
|
528
541
|
};
|
|
529
542
|
|
|
530
|
-
export { dart as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, name, patterns, repository, scopeName };
|
|
543
|
+
export { dart as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, name, patterns, repository, scopeName, version };
|
package/dist/dart3.js
CHANGED
|
@@ -85,9 +85,15 @@ var dart = [
|
|
|
85
85
|
"scope": 3
|
|
86
86
|
},
|
|
87
87
|
"dart.showTodos": {
|
|
88
|
-
"type":
|
|
88
|
+
"type": [
|
|
89
|
+
"boolean",
|
|
90
|
+
"array"
|
|
91
|
+
],
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
89
95
|
"default": true,
|
|
90
|
-
"description": "Whether to show TODOs in the Problems list.",
|
|
96
|
+
"description": "Whether to show TODOs in the Problems list. Can be a boolean to enable all TODO comments (TODO, FIXME, HACK, UNDONE) or an array of which types to enable. Older Dart SDKs may not support some TODO kinds.",
|
|
91
97
|
"scope": 3
|
|
92
98
|
},
|
|
93
99
|
"dart.useLegacyAnalyzerProtocol": {
|
|
@@ -256,6 +262,22 @@ var dart = [
|
|
|
256
262
|
"markdownDescription": "Whether to insert parentheses and placeholders for positional and required arguments during code completions when using LSP. This feature is automatically disabled if commit characters are enabled.",
|
|
257
263
|
"scope": 4
|
|
258
264
|
},
|
|
265
|
+
"dart.documentation": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"default": "full",
|
|
268
|
+
"enum": [
|
|
269
|
+
"full",
|
|
270
|
+
"summary",
|
|
271
|
+
"none"
|
|
272
|
+
],
|
|
273
|
+
"enumDescriptions": [
|
|
274
|
+
"Show full documentation",
|
|
275
|
+
"Show short documentatin summary",
|
|
276
|
+
"Do not show documentation"
|
|
277
|
+
],
|
|
278
|
+
"markdownDescription": "What level of documentation to show in Hovers and Code Completion details. This setting is only supported for Dart SDKs after v2.18.",
|
|
279
|
+
"scope": 3
|
|
280
|
+
},
|
|
259
281
|
"dart.doNotFormat": {
|
|
260
282
|
"type": "array",
|
|
261
283
|
"default": [],
|
|
@@ -292,7 +314,7 @@ var dart = [
|
|
|
292
314
|
"dart.lineLength": {
|
|
293
315
|
"type": "integer",
|
|
294
316
|
"default": 80,
|
|
295
|
-
"
|
|
317
|
+
"markdownDescription": "The maximum length of a line of code. This is used by the document formatter. If you change this value, you may wish to update `editor.rulers` (which draws vertical lines in the editor) in the `[\"dart\"]` section if your settings to match.",
|
|
296
318
|
"scope": 4
|
|
297
319
|
},
|
|
298
320
|
"dart.lspSnippetTextEdits": {
|
|
@@ -401,6 +423,15 @@ var dart = [
|
|
|
401
423
|
"description": "The programming language to use for iOS apps when creating new projects using the 'Flutter: New Project' command.",
|
|
402
424
|
"scope": 3
|
|
403
425
|
},
|
|
426
|
+
"dart.flutterCreatePlatforms": {
|
|
427
|
+
"type": "array",
|
|
428
|
+
"items": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
},
|
|
431
|
+
"default": null,
|
|
432
|
+
"description": "The platforms to enable for new projects created using the 'Flutter: New Project' command. If unset, all platforms will be enabled.",
|
|
433
|
+
"scope": 3
|
|
434
|
+
},
|
|
404
435
|
"dart.offline": {
|
|
405
436
|
"type": "boolean",
|
|
406
437
|
"default": false,
|
|
@@ -530,6 +561,12 @@ var dart = [
|
|
|
530
561
|
"description": "The path to a directory to save Flutter screenshots.",
|
|
531
562
|
"scope": 6
|
|
532
563
|
},
|
|
564
|
+
"dart.flutterRememberSelectedDevice": {
|
|
565
|
+
"type": "boolean",
|
|
566
|
+
"default": true,
|
|
567
|
+
"description": "Whether to remember which device was last (explicitly) selected for each project. When the remembered device is selected, it will prevent newly-connected mobile devices from being automatically selected (regardless of the `#dart.flutterSelectDeviceWhenConnected#` setting).",
|
|
568
|
+
"scope": 3
|
|
569
|
+
},
|
|
533
570
|
"dart.flutterSelectDeviceWhenConnected": {
|
|
534
571
|
"type": "boolean",
|
|
535
572
|
"default": true,
|
|
@@ -720,7 +757,7 @@ var dart = [
|
|
|
720
757
|
"dart.promptToGetPackages": {
|
|
721
758
|
"type": "boolean",
|
|
722
759
|
"default": true,
|
|
723
|
-
"description": "Whether to prompt to get packages when opening a project with out of date packages.",
|
|
760
|
+
"description": "Whether to prompt to get/upgrade packages when opening a project with missing/out of date packages.",
|
|
724
761
|
"scope": 4
|
|
725
762
|
},
|
|
726
763
|
"dart.pubAdditionalArgs": {
|
|
@@ -1039,8 +1076,11 @@ var dart = [
|
|
|
1039
1076
|
"scope": 3
|
|
1040
1077
|
},
|
|
1041
1078
|
"dart.daemonPort": {
|
|
1042
|
-
"type":
|
|
1043
|
-
|
|
1079
|
+
"type": [
|
|
1080
|
+
"null",
|
|
1081
|
+
"number"
|
|
1082
|
+
],
|
|
1083
|
+
"default": null,
|
|
1044
1084
|
"markdownDescription": "EXPERIMENTAL: The port where flutter daemon can be accessed if daemon is run remotely. This setting is intended for use by Google developers.",
|
|
1045
1085
|
"scope": 4
|
|
1046
1086
|
},
|
|
@@ -28,7 +28,8 @@ const loader = {
|
|
|
28
28
|
'solidity': async () => (await import( /* webpackChunkName: "configuration-registration-solidity" */ /* webpackMode: "lazy" */'../solidity3.js').then(module => module)).default,
|
|
29
29
|
'volar-vue': async () => (await import( /* webpackChunkName: "configuration-registration-volar-vue" */ /* webpackMode: "lazy" */'../volar-vue.js').then(module => module)).default,
|
|
30
30
|
'svelte.svelte-vscode': async () => (await import( /* webpackChunkName: "configuration-registration-svelte.svelte-vscode" */ /* webpackMode: "lazy" */'../svelte.svelte-vscode.js').then(module => module)).default,
|
|
31
|
-
'vscode-django': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-django" */ /* webpackMode: "lazy" */'../vscode-django.js').then(module => module)).default
|
|
31
|
+
'vscode-django': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-django" */ /* webpackMode: "lazy" */'../vscode-django.js').then(module => module)).default,
|
|
32
|
+
'vscode-go': async () => (await import( /* webpackChunkName: "configuration-registration-vscode-go" */ /* webpackMode: "lazy" */'../vscode-go.js').then(module => module)).default
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
async function loadConfigurationForExtension(extensionId) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'monaco-editor/esm/vs/language/json/monaco.contribution';
|
|
2
2
|
import * as monaco from 'monaco-editor';
|
|
3
3
|
import { Disposable } from 'vscode';
|
|
4
|
-
|
|
4
|
+
type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5
5
|
export declare function addJsonSchema(schema: Unpacked<NonNullable<monaco.languages.json.DiagnosticsOptions['schemas']>>): Disposable;
|
|
6
6
|
export {};
|
|
@@ -2,7 +2,7 @@ import 'monaco-editor/esm/vs/language/typescript/monaco.contribution';
|
|
|
2
2
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
3
3
|
import { r as registerWorkerLoader } from '../worker.js';
|
|
4
4
|
|
|
5
|
-
var typescriptGlobal = "// Declare \"static\" methods in Error\ninterface ErrorConstructor {\n /** Create .stack property on a target object */\n captureStackTrace(targetObject: object, constructorOpt?: Function): void;\n\n /**\n * Optional override for formatting stack traces\n *\n * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces\n */\n prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;\n\n stackTraceLimit: number;\n}\n\n/*-----------------------------------------------*\n * *\n * GLOBAL *\n * *\n ------------------------------------------------*/\n\n// For backwards compability\ninterface NodeRequire extends NodeJS.Require { }\ninterface RequireResolve extends NodeJS.RequireResolve { }\ninterface NodeModule extends NodeJS.Module { }\n\ndeclare var process: NodeJS.Process;\ndeclare var console: Console;\n\ndeclare var __filename: string;\ndeclare var __dirname: string;\n\ndeclare var require: NodeRequire;\ndeclare var module: NodeModule;\n\n// Same as module.exports\ndeclare var exports: any;\n\n/**\n * Only available if `--expose-gc` is passed to the process.\n */\ndeclare var gc: undefined | (() => void);\n\n//#region borrowed\n// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.\n */\n abort(): void;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n}\n\ndeclare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}\n ? T\n : {\n prototype: AbortController;\n new(): AbortController;\n };\n\ndeclare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}\n ? T\n : {\n prototype: AbortSignal;\n new(): AbortSignal;\n
|
|
5
|
+
var typescriptGlobal = "// Declare \"static\" methods in Error\ninterface ErrorConstructor {\n /** Create .stack property on a target object */\n captureStackTrace(targetObject: object, constructorOpt?: Function): void;\n\n /**\n * Optional override for formatting stack traces\n *\n * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces\n */\n prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;\n\n stackTraceLimit: number;\n}\n\n/*-----------------------------------------------*\n * *\n * GLOBAL *\n * *\n ------------------------------------------------*/\n\n// For backwards compability\ninterface NodeRequire extends NodeJS.Require { }\ninterface RequireResolve extends NodeJS.RequireResolve { }\ninterface NodeModule extends NodeJS.Module { }\n\ndeclare var process: NodeJS.Process;\ndeclare var console: Console;\n\ndeclare var __filename: string;\ndeclare var __dirname: string;\n\ndeclare var require: NodeRequire;\ndeclare var module: NodeModule;\n\n// Same as module.exports\ndeclare var exports: any;\n\n/**\n * Only available if `--expose-gc` is passed to the process.\n */\ndeclare var gc: undefined | (() => void);\n\n//#region borrowed\n// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.\n */\n abort(): void;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n}\n\ndeclare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}\n ? T\n : {\n prototype: AbortController;\n new(): AbortController;\n };\n\ndeclare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}\n ? T\n : {\n prototype: AbortSignal;\n new(): AbortSignal;\n abort(reason?: any): AbortSignal;\n timeout(milliseconds: number): AbortSignal;\n };\n//#endregion borrowed\n\n//#region ArrayLike.at()\ninterface RelativeIndexable<T> {\n /**\n * Takes an integer value and returns the item at that index,\n * allowing for positive and negative integers.\n * Negative integers count back from the last item in the array.\n */\n at(index: number): T | undefined;\n}\ninterface String extends RelativeIndexable<string> {}\ninterface Array<T> extends RelativeIndexable<T> {}\ninterface ReadonlyArray<T> extends RelativeIndexable<T> {}\ninterface Int8Array extends RelativeIndexable<number> {}\ninterface Uint8Array extends RelativeIndexable<number> {}\ninterface Uint8ClampedArray extends RelativeIndexable<number> {}\ninterface Int16Array extends RelativeIndexable<number> {}\ninterface Uint16Array extends RelativeIndexable<number> {}\ninterface Int32Array extends RelativeIndexable<number> {}\ninterface Uint32Array extends RelativeIndexable<number> {}\ninterface Float32Array extends RelativeIndexable<number> {}\ninterface Float64Array extends RelativeIndexable<number> {}\ninterface BigInt64Array extends RelativeIndexable<bigint> {}\ninterface BigUint64Array extends RelativeIndexable<bigint> {}\n//#endregion ArrayLike.at() end\n\n/**\n * @since v17.0.0\n *\n * Creates a deep clone of an object.\n */\ndeclare function structuredClone<T>(\n value: T,\n transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },\n): T;\n\n/*----------------------------------------------*\n* *\n* GLOBAL INTERFACES *\n* *\n*-----------------------------------------------*/\ndeclare namespace NodeJS {\n interface CallSite {\n /**\n * Value of \"this\"\n */\n getThis(): unknown;\n\n /**\n * Type of \"this\" as a string.\n * This is the name of the function stored in the constructor field of\n * \"this\", if available. Otherwise the object's [[Class]] internal\n * property.\n */\n getTypeName(): string | null;\n\n /**\n * Current function\n */\n getFunction(): Function | undefined;\n\n /**\n * Name of the current function, typically its name property.\n * If a name property is not available an attempt will be made to try\n * to infer a name from the function's context.\n */\n getFunctionName(): string | null;\n\n /**\n * Name of the property [of \"this\" or one of its prototypes] that holds\n * the current function\n */\n getMethodName(): string | null;\n\n /**\n * Name of the script [if this function was defined in a script]\n */\n getFileName(): string | null;\n\n /**\n * Current line number [if this function was defined in a script]\n */\n getLineNumber(): number | null;\n\n /**\n * Current column number [if this function was defined in a script]\n */\n getColumnNumber(): number | null;\n\n /**\n * A call site object representing the location where eval was called\n * [if this function was created using a call to eval]\n */\n getEvalOrigin(): string | undefined;\n\n /**\n * Is this a toplevel invocation, that is, is \"this\" the global object?\n */\n isToplevel(): boolean;\n\n /**\n * Does this call take place in code defined by a call to eval?\n */\n isEval(): boolean;\n\n /**\n * Is this call in native V8 code?\n */\n isNative(): boolean;\n\n /**\n * Is this a constructor call?\n */\n isConstructor(): boolean;\n }\n\n interface ErrnoException extends Error {\n errno?: number | undefined;\n code?: string | undefined;\n path?: string | undefined;\n syscall?: string | undefined;\n }\n\n interface ReadableStream extends EventEmitter {\n readable: boolean;\n read(size?: number): string | Buffer;\n setEncoding(encoding: BufferEncoding): this;\n pause(): this;\n resume(): this;\n isPaused(): boolean;\n pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;\n unpipe(destination?: WritableStream): this;\n unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;\n wrap(oldStream: ReadableStream): this;\n [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;\n }\n\n interface WritableStream extends EventEmitter {\n writable: boolean;\n write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;\n write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;\n end(cb?: () => void): this;\n end(data: string | Uint8Array, cb?: () => void): this;\n end(str: string, encoding?: BufferEncoding, cb?: () => void): this;\n }\n\n interface ReadWriteStream extends ReadableStream, WritableStream { }\n\n interface RefCounted {\n ref(): this;\n unref(): this;\n }\n\n type TypedArray =\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigUint64Array\n | BigInt64Array\n | Float32Array\n | Float64Array;\n type ArrayBufferView = TypedArray | DataView;\n\n interface Require {\n (id: string): any;\n resolve: RequireResolve;\n cache: Dict<NodeModule>;\n /**\n * @deprecated\n */\n extensions: RequireExtensions;\n main: Module | undefined;\n }\n\n interface RequireResolve {\n (id: string, options?: { paths?: string[] | undefined; }): string;\n paths(request: string): string[] | null;\n }\n\n interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {\n '.js': (m: Module, filename: string) => any;\n '.json': (m: Module, filename: string) => any;\n '.node': (m: Module, filename: string) => any;\n }\n interface Module {\n /**\n * `true` if the module is running during the Node.js preload\n */\n isPreloading: boolean;\n exports: any;\n require: Require;\n id: string;\n filename: string;\n loaded: boolean;\n /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */\n parent: Module | null | undefined;\n children: Module[];\n /**\n * @since v11.14.0\n *\n * The directory name of the module. This is usually the same as the path.dirname() of the module.id.\n */\n path: string;\n paths: string[];\n }\n\n interface Dict<T> {\n [key: string]: T | undefined;\n }\n\n interface ReadOnlyDict<T> {\n readonly [key: string]: T | undefined;\n }\n}\n";
|
|
6
6
|
|
|
7
7
|
var typescriptConsole = "/**\n * The `console` module provides a simple debugging console that is similar to the\n * JavaScript console mechanism provided by web browsers.\n *\n * The module exports two specific components:\n *\n * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream.\n * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`.\n *\n * _**Warning**_: The global console object's methods are neither consistently\n * synchronous like the browser APIs they resemble, nor are they consistently\n * asynchronous like all other Node.js streams. See the `note on process I/O` for\n * more information.\n *\n * Example using the global `console`:\n *\n * ```js\n * console.log('hello world');\n * // Prints: hello world, to stdout\n * console.log('hello %s', 'world');\n * // Prints: hello world, to stdout\n * console.error(new Error('Whoops, something bad happened'));\n * // Prints error message and stack trace to stderr:\n * // Error: Whoops, something bad happened\n * // at [eval]:5:15\n * // at Script.runInThisContext (node:vm:132:18)\n * // at Object.runInThisContext (node:vm:309:38)\n * // at node:internal/process/execution:77:19\n * // at [eval]-wrapper:6:22\n * // at evalScript (node:internal/process/execution:76:60)\n * // at node:internal/main/eval_string:23:3\n *\n * const name = 'Will Robinson';\n * console.warn(`Danger ${name}! Danger!`);\n * // Prints: Danger Will Robinson! Danger!, to stderr\n * ```\n *\n * Example using the `Console` class:\n *\n * ```js\n * const out = getStreamSomehow();\n * const err = getStreamSomehow();\n * const myConsole = new console.Console(out, err);\n *\n * myConsole.log('hello world');\n * // Prints: hello world, to out\n * myConsole.log('hello %s', 'world');\n * // Prints: hello world, to out\n * myConsole.error(new Error('Whoops, something bad happened'));\n * // Prints: [Error: Whoops, something bad happened], to err\n *\n * const name = 'Will Robinson';\n * myConsole.warn(`Danger ${name}! Danger!`);\n * // Prints: Danger Will Robinson! Danger!, to err\n * ```\n * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/console.js)\n */\ndeclare module 'console' {\n import console = require('node:console');\n export = console;\n}\ndeclare module 'node:console' {\n import { InspectOptions } from 'node:util';\n global {\n // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build\n interface Console {\n Console: console.ConsoleConstructor;\n /**\n * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only\n * writes a message and does not otherwise affect execution. The output always\n * starts with `\"Assertion failed\"`. If provided, `message` is formatted using `util.format()`.\n *\n * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens.\n *\n * ```js\n * console.assert(true, 'does nothing');\n *\n * console.assert(false, 'Whoops %s work', 'didn\\'t');\n * // Assertion failed: Whoops didn't work\n *\n * console.assert();\n * // Assertion failed\n * ```\n * @since v0.1.101\n * @param value The value tested for being truthy.\n * @param message All arguments besides `value` are used as error message.\n */\n assert(value: any, message?: string, ...optionalParams: any[]): void;\n /**\n * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the\n * TTY. When `stdout` is not a TTY, this method does nothing.\n *\n * The specific operation of `console.clear()` can vary across operating systems\n * and terminal types. For most Linux operating systems, `console.clear()`operates similarly to the `clear` shell command. On Windows, `console.clear()`will clear only the output in the\n * current terminal viewport for the Node.js\n * binary.\n * @since v8.3.0\n */\n clear(): void;\n /**\n * Maintains an internal counter specific to `label` and outputs to `stdout` the\n * number of times `console.count()` has been called with the given `label`.\n *\n * ```js\n * > console.count()\n * default: 1\n * undefined\n * > console.count('default')\n * default: 2\n * undefined\n * > console.count('abc')\n * abc: 1\n * undefined\n * > console.count('xyz')\n * xyz: 1\n * undefined\n * > console.count('abc')\n * abc: 2\n * undefined\n * > console.count()\n * default: 3\n * undefined\n * >\n * ```\n * @since v8.3.0\n * @param label The display label for the counter.\n */\n count(label?: string): void;\n /**\n * Resets the internal counter specific to `label`.\n *\n * ```js\n * > console.count('abc');\n * abc: 1\n * undefined\n * > console.countReset('abc');\n * undefined\n * > console.count('abc');\n * abc: 1\n * undefined\n * >\n * ```\n * @since v8.3.0\n * @param label The display label for the counter.\n */\n countReset(label?: string): void;\n /**\n * The `console.debug()` function is an alias for {@link log}.\n * @since v8.0.0\n */\n debug(message?: any, ...optionalParams: any[]): void;\n /**\n * Uses `util.inspect()` on `obj` and prints the resulting string to `stdout`.\n * This function bypasses any custom `inspect()` function defined on `obj`.\n * @since v0.1.101\n */\n dir(obj: any, options?: InspectOptions): void;\n /**\n * This method calls `console.log()` passing it the arguments received.\n * This method does not produce any XML formatting.\n * @since v8.0.0\n */\n dirxml(...data: any[]): void;\n /**\n * Prints to `stderr` with newline. Multiple arguments can be passed, with the\n * first used as the primary message and all additional used as substitution\n * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`).\n *\n * ```js\n * const code = 5;\n * console.error('error #%d', code);\n * // Prints: error #5, to stderr\n * console.error('error', code);\n * // Prints: error 5, to stderr\n * ```\n *\n * If formatting elements (e.g. `%d`) are not found in the first string then `util.inspect()` is called on each argument and the resulting string\n * values are concatenated. See `util.format()` for more information.\n * @since v0.1.100\n */\n error(message?: any, ...optionalParams: any[]): void;\n /**\n * Increases indentation of subsequent lines by spaces for `groupIndentation`length.\n *\n * If one or more `label`s are provided, those are printed first without the\n * additional indentation.\n * @since v8.5.0\n */\n group(...label: any[]): void;\n /**\n * An alias for {@link group}.\n * @since v8.5.0\n */\n groupCollapsed(...label: any[]): void;\n /**\n * Decreases indentation of subsequent lines by spaces for `groupIndentation`length.\n * @since v8.5.0\n */\n groupEnd(): void;\n /**\n * The `console.info()` function is an alias for {@link log}.\n * @since v0.1.100\n */\n info(message?: any, ...optionalParams: any[]): void;\n /**\n * Prints to `stdout` with newline. Multiple arguments can be passed, with the\n * first used as the primary message and all additional used as substitution\n * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`).\n *\n * ```js\n * const count = 5;\n * console.log('count: %d', count);\n * // Prints: count: 5, to stdout\n * console.log('count:', count);\n * // Prints: count: 5, to stdout\n * ```\n *\n * See `util.format()` for more information.\n * @since v0.1.100\n */\n log(message?: any, ...optionalParams: any[]): void;\n /**\n * Try to construct a table with the columns of the properties of `tabularData`(or use `properties`) and rows of `tabularData` and log it. Falls back to just\n * logging the argument if it can’t be parsed as tabular.\n *\n * ```js\n * // These can't be parsed as tabular data\n * console.table(Symbol());\n * // Symbol()\n *\n * console.table(undefined);\n * // undefined\n *\n * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);\n * // ┌─────────┬─────┬─────┐\n * // │ (index) │ a │ b │\n * // ├─────────┼─────┼─────┤\n * // │ 0 │ 1 │ 'Y' │\n * // │ 1 │ 'Z' │ 2 │\n * // └─────────┴─────┴─────┘\n *\n * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);\n * // ┌─────────┬─────┐\n * // │ (index) │ a │\n * // ├─────────┼─────┤\n * // │ 0 │ 1 │\n * // │ 1 │ 'Z' │\n * // └─────────┴─────┘\n * ```\n * @since v10.0.0\n * @param properties Alternate properties for constructing the table.\n */\n table(tabularData: any, properties?: ReadonlyArray<string>): void;\n /**\n * Starts a timer that can be used to compute the duration of an operation. Timers\n * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in\n * suitable time units to `stdout`. For example, if the elapsed\n * time is 3869ms, `console.timeEnd()` displays \"3.869s\".\n * @since v0.1.104\n */\n time(label?: string): void;\n /**\n * Stops a timer that was previously started by calling {@link time} and\n * prints the result to `stdout`:\n *\n * ```js\n * console.time('100-elements');\n * for (let i = 0; i < 100; i++) {}\n * console.timeEnd('100-elements');\n * // prints 100-elements: 225.438ms\n * ```\n * @since v0.1.104\n */\n timeEnd(label?: string): void;\n /**\n * For a timer that was previously started by calling {@link time}, prints\n * the elapsed time and other `data` arguments to `stdout`:\n *\n * ```js\n * console.time('process');\n * const value = expensiveProcess1(); // Returns 42\n * console.timeLog('process', value);\n * // Prints \"process: 365.227ms 42\".\n * doExpensiveProcess2(value);\n * console.timeEnd('process');\n * ```\n * @since v10.7.0\n */\n timeLog(label?: string, ...data: any[]): void;\n /**\n * Prints to `stderr` the string `'Trace: '`, followed by the `util.format()` formatted message and stack trace to the current position in the code.\n *\n * ```js\n * console.trace('Show me');\n * // Prints: (stack trace will vary based on where trace is called)\n * // Trace: Show me\n * // at repl:2:9\n * // at REPLServer.defaultEval (repl.js:248:27)\n * // at bound (domain.js:287:14)\n * // at REPLServer.runBound [as eval] (domain.js:300:12)\n * // at REPLServer.<anonymous> (repl.js:412:12)\n * // at emitOne (events.js:82:20)\n * // at REPLServer.emit (events.js:169:7)\n * // at REPLServer.Interface._onLine (readline.js:210:10)\n * // at REPLServer.Interface._line (readline.js:549:8)\n * // at REPLServer.Interface._ttyWrite (readline.js:826:14)\n * ```\n * @since v0.1.104\n */\n trace(message?: any, ...optionalParams: any[]): void;\n /**\n * The `console.warn()` function is an alias for {@link error}.\n * @since v0.1.100\n */\n warn(message?: any, ...optionalParams: any[]): void;\n // --- Inspector mode only ---\n /**\n * This method does not display anything unless used in the inspector.\n * Starts a JavaScript CPU profile with an optional label.\n */\n profile(label?: string): void;\n /**\n * This method does not display anything unless used in the inspector.\n * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.\n */\n profileEnd(label?: string): void;\n /**\n * This method does not display anything unless used in the inspector.\n * Adds an event with the label `label` to the Timeline panel of the inspector.\n */\n timeStamp(label?: string): void;\n }\n /**\n * The `console` module provides a simple debugging console that is similar to the\n * JavaScript console mechanism provided by web browsers.\n *\n * The module exports two specific components:\n *\n * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream.\n * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`.\n *\n * _**Warning**_: The global console object's methods are neither consistently\n * synchronous like the browser APIs they resemble, nor are they consistently\n * asynchronous like all other Node.js streams. See the `note on process I/O` for\n * more information.\n *\n * Example using the global `console`:\n *\n * ```js\n * console.log('hello world');\n * // Prints: hello world, to stdout\n * console.log('hello %s', 'world');\n * // Prints: hello world, to stdout\n * console.error(new Error('Whoops, something bad happened'));\n * // Prints error message and stack trace to stderr:\n * // Error: Whoops, something bad happened\n * // at [eval]:5:15\n * // at Script.runInThisContext (node:vm:132:18)\n * // at Object.runInThisContext (node:vm:309:38)\n * // at node:internal/process/execution:77:19\n * // at [eval]-wrapper:6:22\n * // at evalScript (node:internal/process/execution:76:60)\n * // at node:internal/main/eval_string:23:3\n *\n * const name = 'Will Robinson';\n * console.warn(`Danger ${name}! Danger!`);\n * // Prints: Danger Will Robinson! Danger!, to stderr\n * ```\n *\n * Example using the `Console` class:\n *\n * ```js\n * const out = getStreamSomehow();\n * const err = getStreamSomehow();\n * const myConsole = new console.Console(out, err);\n *\n * myConsole.log('hello world');\n * // Prints: hello world, to out\n * myConsole.log('hello %s', 'world');\n * // Prints: hello world, to out\n * myConsole.error(new Error('Whoops, something bad happened'));\n * // Prints: [Error: Whoops, something bad happened], to err\n *\n * const name = 'Will Robinson';\n * myConsole.warn(`Danger ${name}! Danger!`);\n * // Prints: Danger Will Robinson! Danger!, to err\n * ```\n * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/console.js)\n */\n namespace console {\n interface ConsoleConstructorOptions {\n stdout: NodeJS.WritableStream;\n stderr?: NodeJS.WritableStream | undefined;\n ignoreErrors?: boolean | undefined;\n colorMode?: boolean | 'auto' | undefined;\n inspectOptions?: InspectOptions | undefined;\n /**\n * Set group indentation\n * @default 2\n */\n groupIndentation?: number | undefined;\n }\n interface ConsoleConstructor {\n prototype: Console;\n new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console;\n new (options: ConsoleConstructorOptions): Console;\n }\n }\n var console: Console;\n }\n export = globalThis.console;\n}\n";
|
|
8
8
|
|
package/dist/go.mod.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
var scopeName = "go.mod";
|
|
2
|
+
var patterns = [
|
|
3
|
+
{
|
|
4
|
+
include: "#comments"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
include: "#directive"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
include: "#invalid"
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
var repository = {
|
|
14
|
+
directive: {
|
|
15
|
+
patterns: [
|
|
16
|
+
{
|
|
17
|
+
comment: "Multi-Line directive",
|
|
18
|
+
begin: "(\\w+)\\s*\\(",
|
|
19
|
+
beginCaptures: {
|
|
20
|
+
"1": {
|
|
21
|
+
name: "keyword.go.mod"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
end: "\\)",
|
|
25
|
+
patterns: [
|
|
26
|
+
{
|
|
27
|
+
include: "#arguments"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
comment: "Single-Line directive",
|
|
33
|
+
match: "(\\w+)\\s*(.*)",
|
|
34
|
+
captures: {
|
|
35
|
+
"1": {
|
|
36
|
+
name: "keyword.go.mod"
|
|
37
|
+
},
|
|
38
|
+
"2": {
|
|
39
|
+
patterns: [
|
|
40
|
+
{
|
|
41
|
+
include: "#arguments"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"arguments": {
|
|
50
|
+
patterns: [
|
|
51
|
+
{
|
|
52
|
+
include: "#comments"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
include: "#double_quoted_string"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
include: "#raw_quoted_string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
include: "#operator"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
include: "#semver"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
include: "#unquoted_string"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
comments: {
|
|
72
|
+
patterns: [
|
|
73
|
+
{
|
|
74
|
+
begin: "//",
|
|
75
|
+
beginCaptures: {
|
|
76
|
+
"0": {
|
|
77
|
+
name: "punctuation.definition.comment.go.mod"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
end: "$",
|
|
81
|
+
name: "comment.line.double-slash.go.mod"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
operator: {
|
|
86
|
+
match: "(=>)",
|
|
87
|
+
name: "operator.go.mod"
|
|
88
|
+
},
|
|
89
|
+
unquoted_string: {
|
|
90
|
+
comment: "Unquoted string",
|
|
91
|
+
match: "([^\\s/]|/(?!/))+",
|
|
92
|
+
name: "string.unquoted.go.mod"
|
|
93
|
+
},
|
|
94
|
+
double_quoted_string: {
|
|
95
|
+
comment: "Interpreted string literals",
|
|
96
|
+
begin: "\"",
|
|
97
|
+
beginCaptures: {
|
|
98
|
+
"0": {
|
|
99
|
+
name: "punctuation.definition.string.begin.go.mod"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
end: "\"",
|
|
103
|
+
endCaptures: {
|
|
104
|
+
"0": {
|
|
105
|
+
name: "punctuation.definition.string.end.go.mod"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
name: "string.quoted.double",
|
|
109
|
+
patterns: [
|
|
110
|
+
{
|
|
111
|
+
include: "#string_escaped_char"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
include: "#string_placeholder"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
raw_quoted_string: {
|
|
119
|
+
comment: "Raw string literals",
|
|
120
|
+
begin: "`",
|
|
121
|
+
beginCaptures: {
|
|
122
|
+
"0": {
|
|
123
|
+
name: "punctuation.definition.string.begin.go.mod"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
end: "`",
|
|
127
|
+
endCaptures: {
|
|
128
|
+
"0": {
|
|
129
|
+
name: "punctuation.definition.string.end.go.mod"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
name: "string.quoted.raw",
|
|
133
|
+
patterns: [
|
|
134
|
+
{
|
|
135
|
+
include: "#string_placeholder"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
semver: {
|
|
140
|
+
comment: "Semver version strings (v1.2.3)",
|
|
141
|
+
match: "v(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z-]+(?:\\.[\\da-z-]+)*)?(?:\\+[\\da-z-]+(?:\\.[\\da-z-]+)*)?",
|
|
142
|
+
name: "constant.language.go.mod"
|
|
143
|
+
},
|
|
144
|
+
string_escaped_char: {
|
|
145
|
+
patterns: [
|
|
146
|
+
{
|
|
147
|
+
match: "\\\\([0-7]{3}|[abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})",
|
|
148
|
+
name: "constant.character.escape.go.mod"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
match: "\\\\[^0-7xuUabfnrtv\\'\"]",
|
|
152
|
+
name: "invalid.illegal.unknown-escape.go.mod"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
string_placeholder: {
|
|
157
|
+
patterns: [
|
|
158
|
+
{
|
|
159
|
+
match: "%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGsp]",
|
|
160
|
+
name: "constant.other.placeholder.go.mod"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
invalid: {
|
|
165
|
+
comment: "invalid",
|
|
166
|
+
match: ".*",
|
|
167
|
+
name: "invalid.illegal.unknown.go.mod"
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var information_for_contributors = [
|
|
171
|
+
"This file has been converted from https://github.com/golang/vscode-go/blob/master/",
|
|
172
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
173
|
+
"Once accepted there, we are happy to receive an update request."
|
|
174
|
+
];
|
|
175
|
+
var go_mod_tmGrammar = {
|
|
176
|
+
scopeName: scopeName,
|
|
177
|
+
patterns: patterns,
|
|
178
|
+
repository: repository,
|
|
179
|
+
information_for_contributors: information_for_contributors
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export { go_mod_tmGrammar as default, information_for_contributors, patterns, repository, scopeName };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var scopeName = "go.sum";
|
|
2
|
+
var patterns = [
|
|
3
|
+
{
|
|
4
|
+
include: "#checksum"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
include: "#semver"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
include: "#unquoted_string"
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
var repository = {
|
|
14
|
+
checksum: {
|
|
15
|
+
comment: "Checksum",
|
|
16
|
+
match: "h1:([^\\s]+)=",
|
|
17
|
+
captures: {
|
|
18
|
+
"1": {
|
|
19
|
+
patterns: [
|
|
20
|
+
{
|
|
21
|
+
match: "[a-zA-Z\\d+\\/]{43}",
|
|
22
|
+
name: "string.unquoted.go.sum"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
match: ".*",
|
|
26
|
+
name: "invalid.illegal.unknown-hash.go.sum"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
semver: {
|
|
33
|
+
comment: "Semver version strings (v1.2.3)",
|
|
34
|
+
match: "v(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z-]+(?:\\.[\\da-z-]+)*)?(?:\\+[\\da-z-]+(?:\\.[\\da-z-]+)*)?",
|
|
35
|
+
name: "constant.language.go.sum"
|
|
36
|
+
},
|
|
37
|
+
unquoted_string: {
|
|
38
|
+
comment: "Unquoted string",
|
|
39
|
+
match: "[^\\s]+",
|
|
40
|
+
name: "string.unquoted.go.sum"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var information_for_contributors = [
|
|
44
|
+
"This file has been converted from https://github.com/golang/vscode-go/blob/master/",
|
|
45
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
46
|
+
"Once accepted there, we are happy to receive an update request."
|
|
47
|
+
];
|
|
48
|
+
var go_sum_tmGrammar = {
|
|
49
|
+
scopeName: scopeName,
|
|
50
|
+
patterns: patterns,
|
|
51
|
+
repository: repository,
|
|
52
|
+
information_for_contributors: information_for_contributors
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { go_sum_tmGrammar as default, information_for_contributors, patterns, repository, scopeName };
|