Add files using upload-large-folder tool
Browse files- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/python/python.js +362 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sb/sb.js +149 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/scala/scala.js +404 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/scheme/scheme.js +142 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/scss/scss.js +294 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/shell/shell.js +255 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/solidity/solidity.js +1401 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sophia/sophia.js +233 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sparql/sparql.js +235 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sql/sql.js +887 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/st/st.js +450 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/swift/swift.js +346 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/systemverilog/systemverilog.js +610 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/tcl/tcl.js +266 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/twig/twig.js +426 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/typescript/typescript.js +404 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/typespec/typespec.js +161 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/yaml/yaml.js +267 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/language/css/cssMode.js +2094 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/language/html/htmlMode.js +2110 -0
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/python/python.js
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/python/python", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __create = Object.create;
|
| 11 |
+
var __defProp = Object.defineProperty;
|
| 12 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 13 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 14 |
+
var __getProtoOf = Object.getPrototypeOf;
|
| 15 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 16 |
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
| 17 |
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
| 18 |
+
}) : x)(function(x) {
|
| 19 |
+
if (typeof require !== "undefined")
|
| 20 |
+
return require.apply(this, arguments);
|
| 21 |
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
| 22 |
+
});
|
| 23 |
+
var __commonJS = (cb, mod) => function __require2() {
|
| 24 |
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
| 25 |
+
};
|
| 26 |
+
var __export = (target, all) => {
|
| 27 |
+
for (var name in all)
|
| 28 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 29 |
+
};
|
| 30 |
+
var __copyProps = (to, from, except, desc) => {
|
| 31 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 32 |
+
for (let key of __getOwnPropNames(from))
|
| 33 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 34 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 35 |
+
}
|
| 36 |
+
return to;
|
| 37 |
+
};
|
| 38 |
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
| 39 |
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
| 40 |
+
// If the importer is in node compatibility mode or this is not an ESM
|
| 41 |
+
// file that has been converted to a CommonJS file using a Babel-
|
| 42 |
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
| 43 |
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
| 44 |
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
| 45 |
+
mod
|
| 46 |
+
));
|
| 47 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 48 |
+
|
| 49 |
+
// src/fillers/monaco-editor-core-amd.ts
|
| 50 |
+
var require_monaco_editor_core_amd = __commonJS({
|
| 51 |
+
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
| 52 |
+
var api = __toESM(__require("vs/editor/editor.api"));
|
| 53 |
+
module.exports = api;
|
| 54 |
+
}
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
// src/basic-languages/python/python.ts
|
| 58 |
+
var python_exports = {};
|
| 59 |
+
__export(python_exports, {
|
| 60 |
+
conf: () => conf,
|
| 61 |
+
language: () => language
|
| 62 |
+
});
|
| 63 |
+
|
| 64 |
+
// src/fillers/monaco-editor-core.ts
|
| 65 |
+
var monaco_editor_core_exports = {};
|
| 66 |
+
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
| 67 |
+
|
| 68 |
+
// src/basic-languages/python/python.ts
|
| 69 |
+
var conf = {
|
| 70 |
+
comments: {
|
| 71 |
+
lineComment: "#",
|
| 72 |
+
blockComment: ["'''", "'''"]
|
| 73 |
+
},
|
| 74 |
+
brackets: [
|
| 75 |
+
["{", "}"],
|
| 76 |
+
["[", "]"],
|
| 77 |
+
["(", ")"]
|
| 78 |
+
],
|
| 79 |
+
autoClosingPairs: [
|
| 80 |
+
{ open: "{", close: "}" },
|
| 81 |
+
{ open: "[", close: "]" },
|
| 82 |
+
{ open: "(", close: ")" },
|
| 83 |
+
{ open: '"', close: '"', notIn: ["string"] },
|
| 84 |
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
| 85 |
+
],
|
| 86 |
+
surroundingPairs: [
|
| 87 |
+
{ open: "{", close: "}" },
|
| 88 |
+
{ open: "[", close: "]" },
|
| 89 |
+
{ open: "(", close: ")" },
|
| 90 |
+
{ open: '"', close: '"' },
|
| 91 |
+
{ open: "'", close: "'" }
|
| 92 |
+
],
|
| 93 |
+
onEnterRules: [
|
| 94 |
+
{
|
| 95 |
+
beforeText: new RegExp(
|
| 96 |
+
"^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"
|
| 97 |
+
),
|
| 98 |
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
folding: {
|
| 102 |
+
offSide: true,
|
| 103 |
+
markers: {
|
| 104 |
+
start: new RegExp("^\\s*#region\\b"),
|
| 105 |
+
end: new RegExp("^\\s*#endregion\\b")
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
};
|
| 109 |
+
var language = {
|
| 110 |
+
defaultToken: "",
|
| 111 |
+
tokenPostfix: ".python",
|
| 112 |
+
keywords: [
|
| 113 |
+
// This section is the result of running
|
| 114 |
+
// `import keyword; for k in sorted(keyword.kwlist + keyword.softkwlist): print(" '" + k + "',")`
|
| 115 |
+
// in a Python REPL,
|
| 116 |
+
// though note that the output from Python 3 is not a strict superset of the
|
| 117 |
+
// output from Python 2.
|
| 118 |
+
"False",
|
| 119 |
+
// promoted to keyword.kwlist in Python 3
|
| 120 |
+
"None",
|
| 121 |
+
// promoted to keyword.kwlist in Python 3
|
| 122 |
+
"True",
|
| 123 |
+
// promoted to keyword.kwlist in Python 3
|
| 124 |
+
"_",
|
| 125 |
+
// new in Python 3.10
|
| 126 |
+
"and",
|
| 127 |
+
"as",
|
| 128 |
+
"assert",
|
| 129 |
+
"async",
|
| 130 |
+
// new in Python 3
|
| 131 |
+
"await",
|
| 132 |
+
// new in Python 3
|
| 133 |
+
"break",
|
| 134 |
+
"case",
|
| 135 |
+
// new in Python 3.10
|
| 136 |
+
"class",
|
| 137 |
+
"continue",
|
| 138 |
+
"def",
|
| 139 |
+
"del",
|
| 140 |
+
"elif",
|
| 141 |
+
"else",
|
| 142 |
+
"except",
|
| 143 |
+
"exec",
|
| 144 |
+
// Python 2, but not 3.
|
| 145 |
+
"finally",
|
| 146 |
+
"for",
|
| 147 |
+
"from",
|
| 148 |
+
"global",
|
| 149 |
+
"if",
|
| 150 |
+
"import",
|
| 151 |
+
"in",
|
| 152 |
+
"is",
|
| 153 |
+
"lambda",
|
| 154 |
+
"match",
|
| 155 |
+
// new in Python 3.10
|
| 156 |
+
"nonlocal",
|
| 157 |
+
// new in Python 3
|
| 158 |
+
"not",
|
| 159 |
+
"or",
|
| 160 |
+
"pass",
|
| 161 |
+
"print",
|
| 162 |
+
// Python 2, but not 3.
|
| 163 |
+
"raise",
|
| 164 |
+
"return",
|
| 165 |
+
"try",
|
| 166 |
+
"type",
|
| 167 |
+
// new in Python 3.12
|
| 168 |
+
"while",
|
| 169 |
+
"with",
|
| 170 |
+
"yield",
|
| 171 |
+
"int",
|
| 172 |
+
"float",
|
| 173 |
+
"long",
|
| 174 |
+
"complex",
|
| 175 |
+
"hex",
|
| 176 |
+
"abs",
|
| 177 |
+
"all",
|
| 178 |
+
"any",
|
| 179 |
+
"apply",
|
| 180 |
+
"basestring",
|
| 181 |
+
"bin",
|
| 182 |
+
"bool",
|
| 183 |
+
"buffer",
|
| 184 |
+
"bytearray",
|
| 185 |
+
"callable",
|
| 186 |
+
"chr",
|
| 187 |
+
"classmethod",
|
| 188 |
+
"cmp",
|
| 189 |
+
"coerce",
|
| 190 |
+
"compile",
|
| 191 |
+
"complex",
|
| 192 |
+
"delattr",
|
| 193 |
+
"dict",
|
| 194 |
+
"dir",
|
| 195 |
+
"divmod",
|
| 196 |
+
"enumerate",
|
| 197 |
+
"eval",
|
| 198 |
+
"execfile",
|
| 199 |
+
"file",
|
| 200 |
+
"filter",
|
| 201 |
+
"format",
|
| 202 |
+
"frozenset",
|
| 203 |
+
"getattr",
|
| 204 |
+
"globals",
|
| 205 |
+
"hasattr",
|
| 206 |
+
"hash",
|
| 207 |
+
"help",
|
| 208 |
+
"id",
|
| 209 |
+
"input",
|
| 210 |
+
"intern",
|
| 211 |
+
"isinstance",
|
| 212 |
+
"issubclass",
|
| 213 |
+
"iter",
|
| 214 |
+
"len",
|
| 215 |
+
"locals",
|
| 216 |
+
"list",
|
| 217 |
+
"map",
|
| 218 |
+
"max",
|
| 219 |
+
"memoryview",
|
| 220 |
+
"min",
|
| 221 |
+
"next",
|
| 222 |
+
"object",
|
| 223 |
+
"oct",
|
| 224 |
+
"open",
|
| 225 |
+
"ord",
|
| 226 |
+
"pow",
|
| 227 |
+
"print",
|
| 228 |
+
"property",
|
| 229 |
+
"reversed",
|
| 230 |
+
"range",
|
| 231 |
+
"raw_input",
|
| 232 |
+
"reduce",
|
| 233 |
+
"reload",
|
| 234 |
+
"repr",
|
| 235 |
+
"reversed",
|
| 236 |
+
"round",
|
| 237 |
+
"self",
|
| 238 |
+
"set",
|
| 239 |
+
"setattr",
|
| 240 |
+
"slice",
|
| 241 |
+
"sorted",
|
| 242 |
+
"staticmethod",
|
| 243 |
+
"str",
|
| 244 |
+
"sum",
|
| 245 |
+
"super",
|
| 246 |
+
"tuple",
|
| 247 |
+
"type",
|
| 248 |
+
"unichr",
|
| 249 |
+
"unicode",
|
| 250 |
+
"vars",
|
| 251 |
+
"xrange",
|
| 252 |
+
"zip",
|
| 253 |
+
"__dict__",
|
| 254 |
+
"__methods__",
|
| 255 |
+
"__members__",
|
| 256 |
+
"__class__",
|
| 257 |
+
"__bases__",
|
| 258 |
+
"__name__",
|
| 259 |
+
"__mro__",
|
| 260 |
+
"__subclasses__",
|
| 261 |
+
"__init__",
|
| 262 |
+
"__import__"
|
| 263 |
+
],
|
| 264 |
+
brackets: [
|
| 265 |
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
| 266 |
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
| 267 |
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
| 268 |
+
],
|
| 269 |
+
tokenizer: {
|
| 270 |
+
root: [
|
| 271 |
+
{ include: "@whitespace" },
|
| 272 |
+
{ include: "@numbers" },
|
| 273 |
+
{ include: "@strings" },
|
| 274 |
+
[/[,:;]/, "delimiter"],
|
| 275 |
+
[/[{}\[\]()]/, "@brackets"],
|
| 276 |
+
[/@[a-zA-Z_]\w*/, "tag"],
|
| 277 |
+
[
|
| 278 |
+
/[a-zA-Z_]\w*/,
|
| 279 |
+
{
|
| 280 |
+
cases: {
|
| 281 |
+
"@keywords": "keyword",
|
| 282 |
+
"@default": "identifier"
|
| 283 |
+
}
|
| 284 |
+
}
|
| 285 |
+
]
|
| 286 |
+
],
|
| 287 |
+
// Deal with white space, including single and multi-line comments
|
| 288 |
+
whitespace: [
|
| 289 |
+
[/\s+/, "white"],
|
| 290 |
+
[/(^#.*$)/, "comment"],
|
| 291 |
+
[/'''/, "string", "@endDocString"],
|
| 292 |
+
[/"""/, "string", "@endDblDocString"]
|
| 293 |
+
],
|
| 294 |
+
endDocString: [
|
| 295 |
+
[/[^']+/, "string"],
|
| 296 |
+
[/\\'/, "string"],
|
| 297 |
+
[/'''/, "string", "@popall"],
|
| 298 |
+
[/'/, "string"]
|
| 299 |
+
],
|
| 300 |
+
endDblDocString: [
|
| 301 |
+
[/[^"]+/, "string"],
|
| 302 |
+
[/\\"/, "string"],
|
| 303 |
+
[/"""/, "string", "@popall"],
|
| 304 |
+
[/"/, "string"]
|
| 305 |
+
],
|
| 306 |
+
// Recognize hex, negatives, decimals, imaginaries, longs, and scientific notation
|
| 307 |
+
numbers: [
|
| 308 |
+
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
|
| 309 |
+
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
|
| 310 |
+
],
|
| 311 |
+
// Recognize strings, including those broken across lines with \ (but not without)
|
| 312 |
+
strings: [
|
| 313 |
+
[/'$/, "string.escape", "@popall"],
|
| 314 |
+
[/f'{1,3}/, "string.escape", "@fStringBody"],
|
| 315 |
+
[/'/, "string.escape", "@stringBody"],
|
| 316 |
+
[/"$/, "string.escape", "@popall"],
|
| 317 |
+
[/f"{1,3}/, "string.escape", "@fDblStringBody"],
|
| 318 |
+
[/"/, "string.escape", "@dblStringBody"]
|
| 319 |
+
],
|
| 320 |
+
fStringBody: [
|
| 321 |
+
[/[^\\'\{\}]+$/, "string", "@popall"],
|
| 322 |
+
[/[^\\'\{\}]+/, "string"],
|
| 323 |
+
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
| 324 |
+
[/\\./, "string"],
|
| 325 |
+
[/'/, "string.escape", "@popall"],
|
| 326 |
+
[/\\$/, "string"]
|
| 327 |
+
],
|
| 328 |
+
stringBody: [
|
| 329 |
+
[/[^\\']+$/, "string", "@popall"],
|
| 330 |
+
[/[^\\']+/, "string"],
|
| 331 |
+
[/\\./, "string"],
|
| 332 |
+
[/'/, "string.escape", "@popall"],
|
| 333 |
+
[/\\$/, "string"]
|
| 334 |
+
],
|
| 335 |
+
fDblStringBody: [
|
| 336 |
+
[/[^\\"\{\}]+$/, "string", "@popall"],
|
| 337 |
+
[/[^\\"\{\}]+/, "string"],
|
| 338 |
+
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
| 339 |
+
[/\\./, "string"],
|
| 340 |
+
[/"/, "string.escape", "@popall"],
|
| 341 |
+
[/\\$/, "string"]
|
| 342 |
+
],
|
| 343 |
+
dblStringBody: [
|
| 344 |
+
[/[^\\"]+$/, "string", "@popall"],
|
| 345 |
+
[/[^\\"]+/, "string"],
|
| 346 |
+
[/\\./, "string"],
|
| 347 |
+
[/"/, "string.escape", "@popall"],
|
| 348 |
+
[/\\$/, "string"]
|
| 349 |
+
],
|
| 350 |
+
fStringDetail: [
|
| 351 |
+
[/[:][^}]+/, "string"],
|
| 352 |
+
[/[!][ars]/, "string"],
|
| 353 |
+
// only !a, !r, !s are supported by f-strings: https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
|
| 354 |
+
[/=/, "string"],
|
| 355 |
+
[/\}/, "identifier", "@pop"]
|
| 356 |
+
]
|
| 357 |
+
}
|
| 358 |
+
};
|
| 359 |
+
return __toCommonJS(python_exports);
|
| 360 |
+
})();
|
| 361 |
+
return moduleExports;
|
| 362 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sb/sb.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/sb/sb", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/sb/sb.ts
|
| 29 |
+
var sb_exports = {};
|
| 30 |
+
__export(sb_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "'"
|
| 37 |
+
},
|
| 38 |
+
brackets: [
|
| 39 |
+
["(", ")"],
|
| 40 |
+
["[", "]"],
|
| 41 |
+
["If", "EndIf"],
|
| 42 |
+
["While", "EndWhile"],
|
| 43 |
+
["For", "EndFor"],
|
| 44 |
+
["Sub", "EndSub"]
|
| 45 |
+
],
|
| 46 |
+
autoClosingPairs: [
|
| 47 |
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
| 48 |
+
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
| 49 |
+
{ open: "[", close: "]", notIn: ["string", "comment"] }
|
| 50 |
+
]
|
| 51 |
+
};
|
| 52 |
+
var language = {
|
| 53 |
+
defaultToken: "",
|
| 54 |
+
tokenPostfix: ".sb",
|
| 55 |
+
ignoreCase: true,
|
| 56 |
+
brackets: [
|
| 57 |
+
{ token: "delimiter.array", open: "[", close: "]" },
|
| 58 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 59 |
+
// Special bracket statement pairs
|
| 60 |
+
{ token: "keyword.tag-if", open: "If", close: "EndIf" },
|
| 61 |
+
{ token: "keyword.tag-while", open: "While", close: "EndWhile" },
|
| 62 |
+
{ token: "keyword.tag-for", open: "For", close: "EndFor" },
|
| 63 |
+
{ token: "keyword.tag-sub", open: "Sub", close: "EndSub" }
|
| 64 |
+
],
|
| 65 |
+
keywords: [
|
| 66 |
+
"Else",
|
| 67 |
+
"ElseIf",
|
| 68 |
+
"EndFor",
|
| 69 |
+
"EndIf",
|
| 70 |
+
"EndSub",
|
| 71 |
+
"EndWhile",
|
| 72 |
+
"For",
|
| 73 |
+
"Goto",
|
| 74 |
+
"If",
|
| 75 |
+
"Step",
|
| 76 |
+
"Sub",
|
| 77 |
+
"Then",
|
| 78 |
+
"To",
|
| 79 |
+
"While"
|
| 80 |
+
],
|
| 81 |
+
tagwords: ["If", "Sub", "While", "For"],
|
| 82 |
+
operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
|
| 83 |
+
// we include these common regular expressions
|
| 84 |
+
identifier: /[a-zA-Z_][\w]*/,
|
| 85 |
+
symbols: /[=><:+\-*\/%\.,]+/,
|
| 86 |
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 87 |
+
// The main tokenizer for our languages
|
| 88 |
+
tokenizer: {
|
| 89 |
+
root: [
|
| 90 |
+
// whitespace
|
| 91 |
+
{ include: "@whitespace" },
|
| 92 |
+
// classes
|
| 93 |
+
[/(@identifier)(?=[.])/, "type"],
|
| 94 |
+
// identifiers, tagwords, and keywords
|
| 95 |
+
[
|
| 96 |
+
/@identifier/,
|
| 97 |
+
{
|
| 98 |
+
cases: {
|
| 99 |
+
"@keywords": { token: "keyword.$0" },
|
| 100 |
+
"@operators": "operator",
|
| 101 |
+
"@default": "variable.name"
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
],
|
| 105 |
+
// methods, properties, and events
|
| 106 |
+
[
|
| 107 |
+
/([.])(@identifier)/,
|
| 108 |
+
{
|
| 109 |
+
cases: {
|
| 110 |
+
$2: ["delimiter", "type.member"],
|
| 111 |
+
"@default": ""
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
// numbers
|
| 116 |
+
[/\d*\.\d+/, "number.float"],
|
| 117 |
+
[/\d+/, "number"],
|
| 118 |
+
// delimiters and operators
|
| 119 |
+
[/[()\[\]]/, "@brackets"],
|
| 120 |
+
[
|
| 121 |
+
/@symbols/,
|
| 122 |
+
{
|
| 123 |
+
cases: {
|
| 124 |
+
"@operators": "operator",
|
| 125 |
+
"@default": "delimiter"
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
+
],
|
| 129 |
+
// strings
|
| 130 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 131 |
+
// non-teminated string
|
| 132 |
+
[/"/, "string", "@string"]
|
| 133 |
+
],
|
| 134 |
+
whitespace: [
|
| 135 |
+
[/[ \t\r\n]+/, ""],
|
| 136 |
+
[/(\').*$/, "comment"]
|
| 137 |
+
],
|
| 138 |
+
string: [
|
| 139 |
+
[/[^\\"]+/, "string"],
|
| 140 |
+
[/@escapes/, "string.escape"],
|
| 141 |
+
[/\\./, "string.escape.invalid"],
|
| 142 |
+
[/"C?/, "string", "@pop"]
|
| 143 |
+
]
|
| 144 |
+
}
|
| 145 |
+
};
|
| 146 |
+
return __toCommonJS(sb_exports);
|
| 147 |
+
})();
|
| 148 |
+
return moduleExports;
|
| 149 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/scala/scala.js
ADDED
|
@@ -0,0 +1,404 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/scala/scala", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/scala/scala.ts
|
| 29 |
+
var scala_exports = {};
|
| 30 |
+
__export(scala_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
/*
|
| 36 |
+
* `...` is allowed as an identifier.
|
| 37 |
+
* $ is allowed in identifiers.
|
| 38 |
+
* unary_<op> is allowed as an identifier.
|
| 39 |
+
* <name>_= is allowed as an identifier.
|
| 40 |
+
*/
|
| 41 |
+
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
| 42 |
+
comments: {
|
| 43 |
+
lineComment: "//",
|
| 44 |
+
blockComment: ["/*", "*/"]
|
| 45 |
+
},
|
| 46 |
+
brackets: [
|
| 47 |
+
["{", "}"],
|
| 48 |
+
["[", "]"],
|
| 49 |
+
["(", ")"]
|
| 50 |
+
],
|
| 51 |
+
autoClosingPairs: [
|
| 52 |
+
{ open: "{", close: "}" },
|
| 53 |
+
{ open: "[", close: "]" },
|
| 54 |
+
{ open: "(", close: ")" },
|
| 55 |
+
{ open: '"', close: '"' },
|
| 56 |
+
{ open: "'", close: "'" }
|
| 57 |
+
],
|
| 58 |
+
surroundingPairs: [
|
| 59 |
+
{ open: "{", close: "}" },
|
| 60 |
+
{ open: "[", close: "]" },
|
| 61 |
+
{ open: "(", close: ")" },
|
| 62 |
+
{ open: '"', close: '"' },
|
| 63 |
+
{ open: "'", close: "'" }
|
| 64 |
+
],
|
| 65 |
+
folding: {
|
| 66 |
+
markers: {
|
| 67 |
+
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
| 68 |
+
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
};
|
| 72 |
+
var language = {
|
| 73 |
+
tokenPostfix: ".scala",
|
| 74 |
+
// We can't easily add everything from Dotty, but we can at least add some of its keywords
|
| 75 |
+
keywords: [
|
| 76 |
+
"asInstanceOf",
|
| 77 |
+
"catch",
|
| 78 |
+
"class",
|
| 79 |
+
"classOf",
|
| 80 |
+
"def",
|
| 81 |
+
"do",
|
| 82 |
+
"else",
|
| 83 |
+
"extends",
|
| 84 |
+
"finally",
|
| 85 |
+
"for",
|
| 86 |
+
"foreach",
|
| 87 |
+
"forSome",
|
| 88 |
+
"if",
|
| 89 |
+
"import",
|
| 90 |
+
"isInstanceOf",
|
| 91 |
+
"macro",
|
| 92 |
+
"match",
|
| 93 |
+
"new",
|
| 94 |
+
"object",
|
| 95 |
+
"package",
|
| 96 |
+
"return",
|
| 97 |
+
"throw",
|
| 98 |
+
"trait",
|
| 99 |
+
"try",
|
| 100 |
+
"type",
|
| 101 |
+
"until",
|
| 102 |
+
"val",
|
| 103 |
+
"var",
|
| 104 |
+
"while",
|
| 105 |
+
"with",
|
| 106 |
+
"yield",
|
| 107 |
+
// Dotty-specific:
|
| 108 |
+
"given",
|
| 109 |
+
"enum",
|
| 110 |
+
"then"
|
| 111 |
+
],
|
| 112 |
+
// Dotty-specific:
|
| 113 |
+
softKeywords: ["as", "export", "extension", "end", "derives", "on"],
|
| 114 |
+
constants: ["true", "false", "null", "this", "super"],
|
| 115 |
+
modifiers: [
|
| 116 |
+
"abstract",
|
| 117 |
+
"final",
|
| 118 |
+
"implicit",
|
| 119 |
+
"lazy",
|
| 120 |
+
"override",
|
| 121 |
+
"private",
|
| 122 |
+
"protected",
|
| 123 |
+
"sealed"
|
| 124 |
+
],
|
| 125 |
+
// Dotty-specific:
|
| 126 |
+
softModifiers: ["inline", "opaque", "open", "transparent", "using"],
|
| 127 |
+
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
| 128 |
+
type: /(?:[A-Z][\w$]*)/,
|
| 129 |
+
// we include these common regular expressions
|
| 130 |
+
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
| 131 |
+
digits: /\d+(_+\d+)*/,
|
| 132 |
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
| 133 |
+
// C# style strings
|
| 134 |
+
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 135 |
+
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
| 136 |
+
// The main tokenizer for our languages
|
| 137 |
+
tokenizer: {
|
| 138 |
+
root: [
|
| 139 |
+
// strings
|
| 140 |
+
[/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
|
| 141 |
+
[/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
|
| 142 |
+
[/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
|
| 143 |
+
[/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
|
| 144 |
+
[/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
|
| 145 |
+
[/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
|
| 146 |
+
[/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
|
| 147 |
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
| 148 |
+
// numbers
|
| 149 |
+
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
| 150 |
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
| 151 |
+
[/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
|
| 152 |
+
[/(@digits)[fFdD]/, "number.float", "@allowMethod"],
|
| 153 |
+
[/(@digits)[lL]?/, "number", "@allowMethod"],
|
| 154 |
+
[/\b_\*/, "key"],
|
| 155 |
+
[/\b(_)\b/, "keyword", "@allowMethod"],
|
| 156 |
+
// identifiers and keywords
|
| 157 |
+
[/\bimport\b/, "keyword", "@import"],
|
| 158 |
+
[/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
|
| 159 |
+
[/\bcase\b/, "keyword", "@case"],
|
| 160 |
+
[/\bva[lr]\b/, "keyword", "@vardef"],
|
| 161 |
+
[
|
| 162 |
+
/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
|
| 163 |
+
["keyword", "white", "identifier"]
|
| 164 |
+
],
|
| 165 |
+
[/@name(?=[ \t]*:(?!:))/, "variable"],
|
| 166 |
+
[/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
|
| 167 |
+
[/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
|
| 168 |
+
[
|
| 169 |
+
/@name/,
|
| 170 |
+
{
|
| 171 |
+
cases: {
|
| 172 |
+
"@keywords": "keyword",
|
| 173 |
+
"@softKeywords": "keyword",
|
| 174 |
+
"@modifiers": "keyword.modifier",
|
| 175 |
+
"@softModifiers": "keyword.modifier",
|
| 176 |
+
"@constants": {
|
| 177 |
+
token: "constant",
|
| 178 |
+
next: "@allowMethod"
|
| 179 |
+
},
|
| 180 |
+
"@default": {
|
| 181 |
+
token: "identifier",
|
| 182 |
+
next: "@allowMethod"
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
+
],
|
| 187 |
+
[/@type/, "type", "@allowMethod"],
|
| 188 |
+
// whitespace
|
| 189 |
+
{ include: "@whitespace" },
|
| 190 |
+
// @ annotations.
|
| 191 |
+
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
|
| 192 |
+
// delimiters and operators
|
| 193 |
+
[/[{(]/, "@brackets"],
|
| 194 |
+
[/[})]/, "@brackets", "@allowMethod"],
|
| 195 |
+
[/\[/, "operator.square"],
|
| 196 |
+
[/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
|
| 197 |
+
[/]/, "operator.square"],
|
| 198 |
+
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
|
| 199 |
+
[/@symbols/, "operator"],
|
| 200 |
+
// delimiter: after number because of .\d floats
|
| 201 |
+
[/[;,\.]/, "delimiter"],
|
| 202 |
+
// symbols
|
| 203 |
+
[/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
|
| 204 |
+
// characters
|
| 205 |
+
[/'[^\\']'/, "string", "@allowMethod"],
|
| 206 |
+
[/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
|
| 207 |
+
[/'/, "string.invalid"]
|
| 208 |
+
],
|
| 209 |
+
import: [
|
| 210 |
+
[/;/, "delimiter", "@pop"],
|
| 211 |
+
[/^|$/, "", "@pop"],
|
| 212 |
+
[/[ \t]+/, "white"],
|
| 213 |
+
[/[\n\r]+/, "white", "@pop"],
|
| 214 |
+
[/\/\*/, "comment", "@comment"],
|
| 215 |
+
[/@name|@type/, "type"],
|
| 216 |
+
[/[(){}]/, "@brackets"],
|
| 217 |
+
[/[[\]]/, "operator.square"],
|
| 218 |
+
[/[\.,]/, "delimiter"]
|
| 219 |
+
],
|
| 220 |
+
allowMethod: [
|
| 221 |
+
[/^|$/, "", "@pop"],
|
| 222 |
+
[/[ \t]+/, "white"],
|
| 223 |
+
[/[\n\r]+/, "white", "@pop"],
|
| 224 |
+
[/\/\*/, "comment", "@comment"],
|
| 225 |
+
[/(?==>[\s\w([{])/, "keyword", "@pop"],
|
| 226 |
+
[
|
| 227 |
+
/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
|
| 228 |
+
{
|
| 229 |
+
cases: {
|
| 230 |
+
"@keywords": { token: "keyword", next: "@pop" },
|
| 231 |
+
"->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
|
| 232 |
+
"@default": { token: "@rematch", next: "@pop" }
|
| 233 |
+
}
|
| 234 |
+
}
|
| 235 |
+
],
|
| 236 |
+
["", "", "@pop"]
|
| 237 |
+
],
|
| 238 |
+
comment: [
|
| 239 |
+
[/[^\/*]+/, "comment"],
|
| 240 |
+
[/\/\*/, "comment", "@push"],
|
| 241 |
+
// nested comment
|
| 242 |
+
[/\*\//, "comment", "@pop"],
|
| 243 |
+
[/[\/*]/, "comment"]
|
| 244 |
+
],
|
| 245 |
+
case: [
|
| 246 |
+
[/\b_\*/, "key"],
|
| 247 |
+
[/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
|
| 248 |
+
[/\bif\b|=>/, "keyword", "@pop"],
|
| 249 |
+
[/`[^`]+`/, "identifier", "@allowMethod"],
|
| 250 |
+
[/@name/, "variable", "@allowMethod"],
|
| 251 |
+
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
| 252 |
+
{ include: "@root" }
|
| 253 |
+
],
|
| 254 |
+
vardef: [
|
| 255 |
+
[/\b_\*/, "key"],
|
| 256 |
+
[/\b(_|true|false|null|this|super)\b/, "keyword"],
|
| 257 |
+
[/@name/, "variable"],
|
| 258 |
+
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
| 259 |
+
[/=|:(?!:)/, "operator", "@pop"],
|
| 260 |
+
[/$/, "white", "@pop"],
|
| 261 |
+
{ include: "@root" }
|
| 262 |
+
],
|
| 263 |
+
string: [
|
| 264 |
+
[/[^\\"\n\r]+/, "string"],
|
| 265 |
+
[/@escapes/, "string.escape"],
|
| 266 |
+
[/\\./, "string.escape.invalid"],
|
| 267 |
+
[
|
| 268 |
+
/"/,
|
| 269 |
+
{
|
| 270 |
+
token: "string.quote",
|
| 271 |
+
bracket: "@close",
|
| 272 |
+
switchTo: "@allowMethod"
|
| 273 |
+
}
|
| 274 |
+
]
|
| 275 |
+
],
|
| 276 |
+
stringt: [
|
| 277 |
+
[/[^\\"\n\r]+/, "string"],
|
| 278 |
+
[/@escapes/, "string.escape"],
|
| 279 |
+
[/\\./, "string.escape.invalid"],
|
| 280 |
+
[/"(?=""")/, "string"],
|
| 281 |
+
[
|
| 282 |
+
/"""/,
|
| 283 |
+
{
|
| 284 |
+
token: "string.quote",
|
| 285 |
+
bracket: "@close",
|
| 286 |
+
switchTo: "@allowMethod"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
[/"/, "string"]
|
| 290 |
+
],
|
| 291 |
+
fstring: [
|
| 292 |
+
[/@escapes/, "string.escape"],
|
| 293 |
+
[
|
| 294 |
+
/"/,
|
| 295 |
+
{
|
| 296 |
+
token: "string.quote",
|
| 297 |
+
bracket: "@close",
|
| 298 |
+
switchTo: "@allowMethod"
|
| 299 |
+
}
|
| 300 |
+
],
|
| 301 |
+
[/\$\$/, "string"],
|
| 302 |
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
| 303 |
+
[/\$\{/, "operator", "@interp"],
|
| 304 |
+
[/%%/, "string"],
|
| 305 |
+
[
|
| 306 |
+
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
| 307 |
+
["metatag", "keyword.modifier", "number", "metatag"]
|
| 308 |
+
],
|
| 309 |
+
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
| 310 |
+
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
| 311 |
+
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
| 312 |
+
[/./, "string"]
|
| 313 |
+
],
|
| 314 |
+
fstringt: [
|
| 315 |
+
[/@escapes/, "string.escape"],
|
| 316 |
+
[/"(?=""")/, "string"],
|
| 317 |
+
[
|
| 318 |
+
/"""/,
|
| 319 |
+
{
|
| 320 |
+
token: "string.quote",
|
| 321 |
+
bracket: "@close",
|
| 322 |
+
switchTo: "@allowMethod"
|
| 323 |
+
}
|
| 324 |
+
],
|
| 325 |
+
[/\$\$/, "string"],
|
| 326 |
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
| 327 |
+
[/\$\{/, "operator", "@interp"],
|
| 328 |
+
[/%%/, "string"],
|
| 329 |
+
[
|
| 330 |
+
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
| 331 |
+
["metatag", "keyword.modifier", "number", "metatag"]
|
| 332 |
+
],
|
| 333 |
+
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
| 334 |
+
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
| 335 |
+
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
| 336 |
+
[/./, "string"]
|
| 337 |
+
],
|
| 338 |
+
sstring: [
|
| 339 |
+
[/@escapes/, "string.escape"],
|
| 340 |
+
[
|
| 341 |
+
/"/,
|
| 342 |
+
{
|
| 343 |
+
token: "string.quote",
|
| 344 |
+
bracket: "@close",
|
| 345 |
+
switchTo: "@allowMethod"
|
| 346 |
+
}
|
| 347 |
+
],
|
| 348 |
+
[/\$\$/, "string"],
|
| 349 |
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
| 350 |
+
[/\$\{/, "operator", "@interp"],
|
| 351 |
+
[/./, "string"]
|
| 352 |
+
],
|
| 353 |
+
sstringt: [
|
| 354 |
+
[/@escapes/, "string.escape"],
|
| 355 |
+
[/"(?=""")/, "string"],
|
| 356 |
+
[
|
| 357 |
+
/"""/,
|
| 358 |
+
{
|
| 359 |
+
token: "string.quote",
|
| 360 |
+
bracket: "@close",
|
| 361 |
+
switchTo: "@allowMethod"
|
| 362 |
+
}
|
| 363 |
+
],
|
| 364 |
+
[/\$\$/, "string"],
|
| 365 |
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
| 366 |
+
[/\$\{/, "operator", "@interp"],
|
| 367 |
+
[/./, "string"]
|
| 368 |
+
],
|
| 369 |
+
interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
|
| 370 |
+
rawstring: [
|
| 371 |
+
[/[^"]/, "string"],
|
| 372 |
+
[
|
| 373 |
+
/"/,
|
| 374 |
+
{
|
| 375 |
+
token: "string.quote",
|
| 376 |
+
bracket: "@close",
|
| 377 |
+
switchTo: "@allowMethod"
|
| 378 |
+
}
|
| 379 |
+
]
|
| 380 |
+
],
|
| 381 |
+
rawstringt: [
|
| 382 |
+
[/[^"]/, "string"],
|
| 383 |
+
[/"(?=""")/, "string"],
|
| 384 |
+
[
|
| 385 |
+
/"""/,
|
| 386 |
+
{
|
| 387 |
+
token: "string.quote",
|
| 388 |
+
bracket: "@close",
|
| 389 |
+
switchTo: "@allowMethod"
|
| 390 |
+
}
|
| 391 |
+
],
|
| 392 |
+
[/"/, "string"]
|
| 393 |
+
],
|
| 394 |
+
whitespace: [
|
| 395 |
+
[/[ \t\r\n]+/, "white"],
|
| 396 |
+
[/\/\*/, "comment", "@comment"],
|
| 397 |
+
[/\/\/.*$/, "comment"]
|
| 398 |
+
]
|
| 399 |
+
}
|
| 400 |
+
};
|
| 401 |
+
return __toCommonJS(scala_exports);
|
| 402 |
+
})();
|
| 403 |
+
return moduleExports;
|
| 404 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/scheme/scheme.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/scheme/scheme", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/scheme/scheme.ts
|
| 29 |
+
var scheme_exports = {};
|
| 30 |
+
__export(scheme_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: ";",
|
| 37 |
+
blockComment: ["#|", "|#"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["(", ")"],
|
| 41 |
+
["{", "}"],
|
| 42 |
+
["[", "]"]
|
| 43 |
+
],
|
| 44 |
+
autoClosingPairs: [
|
| 45 |
+
{ open: "{", close: "}" },
|
| 46 |
+
{ open: "[", close: "]" },
|
| 47 |
+
{ open: "(", close: ")" },
|
| 48 |
+
{ open: '"', close: '"' }
|
| 49 |
+
],
|
| 50 |
+
surroundingPairs: [
|
| 51 |
+
{ open: "{", close: "}" },
|
| 52 |
+
{ open: "[", close: "]" },
|
| 53 |
+
{ open: "(", close: ")" },
|
| 54 |
+
{ open: '"', close: '"' }
|
| 55 |
+
]
|
| 56 |
+
};
|
| 57 |
+
var language = {
|
| 58 |
+
defaultToken: "",
|
| 59 |
+
ignoreCase: true,
|
| 60 |
+
tokenPostfix: ".scheme",
|
| 61 |
+
brackets: [
|
| 62 |
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
| 63 |
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
| 64 |
+
{ open: "[", close: "]", token: "delimiter.square" }
|
| 65 |
+
],
|
| 66 |
+
keywords: [
|
| 67 |
+
"case",
|
| 68 |
+
"do",
|
| 69 |
+
"let",
|
| 70 |
+
"loop",
|
| 71 |
+
"if",
|
| 72 |
+
"else",
|
| 73 |
+
"when",
|
| 74 |
+
"cons",
|
| 75 |
+
"car",
|
| 76 |
+
"cdr",
|
| 77 |
+
"cond",
|
| 78 |
+
"lambda",
|
| 79 |
+
"lambda*",
|
| 80 |
+
"syntax-rules",
|
| 81 |
+
"format",
|
| 82 |
+
"set!",
|
| 83 |
+
"quote",
|
| 84 |
+
"eval",
|
| 85 |
+
"append",
|
| 86 |
+
"list",
|
| 87 |
+
"list?",
|
| 88 |
+
"member?",
|
| 89 |
+
"load"
|
| 90 |
+
],
|
| 91 |
+
constants: ["#t", "#f"],
|
| 92 |
+
operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"],
|
| 93 |
+
tokenizer: {
|
| 94 |
+
root: [
|
| 95 |
+
[/#[xXoObB][0-9a-fA-F]+/, "number.hex"],
|
| 96 |
+
[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"],
|
| 97 |
+
[
|
| 98 |
+
/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,
|
| 99 |
+
["keyword", "white", "variable"]
|
| 100 |
+
],
|
| 101 |
+
{ include: "@whitespace" },
|
| 102 |
+
{ include: "@strings" },
|
| 103 |
+
[
|
| 104 |
+
/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,
|
| 105 |
+
{
|
| 106 |
+
cases: {
|
| 107 |
+
"@keywords": "keyword",
|
| 108 |
+
"@constants": "constant",
|
| 109 |
+
"@operators": "operators",
|
| 110 |
+
"@default": "identifier"
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
]
|
| 114 |
+
],
|
| 115 |
+
comment: [
|
| 116 |
+
[/[^\|#]+/, "comment"],
|
| 117 |
+
[/#\|/, "comment", "@push"],
|
| 118 |
+
[/\|#/, "comment", "@pop"],
|
| 119 |
+
[/[\|#]/, "comment"]
|
| 120 |
+
],
|
| 121 |
+
whitespace: [
|
| 122 |
+
[/[ \t\r\n]+/, "white"],
|
| 123 |
+
[/#\|/, "comment", "@comment"],
|
| 124 |
+
[/;.*$/, "comment"]
|
| 125 |
+
],
|
| 126 |
+
strings: [
|
| 127 |
+
[/"$/, "string", "@popall"],
|
| 128 |
+
[/"(?=.)/, "string", "@multiLineString"]
|
| 129 |
+
],
|
| 130 |
+
multiLineString: [
|
| 131 |
+
[/[^\\"]+$/, "string", "@popall"],
|
| 132 |
+
[/[^\\"]+/, "string"],
|
| 133 |
+
[/\\./, "string.escape"],
|
| 134 |
+
[/"/, "string", "@popall"],
|
| 135 |
+
[/\\$/, "string"]
|
| 136 |
+
]
|
| 137 |
+
}
|
| 138 |
+
};
|
| 139 |
+
return __toCommonJS(scheme_exports);
|
| 140 |
+
})();
|
| 141 |
+
return moduleExports;
|
| 142 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/scss/scss.js
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/scss/scss", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/scss/scss.ts
|
| 29 |
+
var scss_exports = {};
|
| 30 |
+
__export(scss_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
wordPattern: /(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,
|
| 36 |
+
comments: {
|
| 37 |
+
blockComment: ["/*", "*/"],
|
| 38 |
+
lineComment: "//"
|
| 39 |
+
},
|
| 40 |
+
brackets: [
|
| 41 |
+
["{", "}"],
|
| 42 |
+
["[", "]"],
|
| 43 |
+
["(", ")"]
|
| 44 |
+
],
|
| 45 |
+
autoClosingPairs: [
|
| 46 |
+
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
| 47 |
+
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
| 48 |
+
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
| 49 |
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
| 50 |
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
| 51 |
+
],
|
| 52 |
+
surroundingPairs: [
|
| 53 |
+
{ open: "{", close: "}" },
|
| 54 |
+
{ open: "[", close: "]" },
|
| 55 |
+
{ open: "(", close: ")" },
|
| 56 |
+
{ open: '"', close: '"' },
|
| 57 |
+
{ open: "'", close: "'" }
|
| 58 |
+
],
|
| 59 |
+
folding: {
|
| 60 |
+
markers: {
|
| 61 |
+
start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
| 62 |
+
end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
};
|
| 66 |
+
var language = {
|
| 67 |
+
defaultToken: "",
|
| 68 |
+
tokenPostfix: ".scss",
|
| 69 |
+
ws: "[ \n\r\f]*",
|
| 70 |
+
// whitespaces (referenced in several rules)
|
| 71 |
+
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
| 72 |
+
brackets: [
|
| 73 |
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
| 74 |
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
| 75 |
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
| 76 |
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
| 77 |
+
],
|
| 78 |
+
tokenizer: {
|
| 79 |
+
root: [{ include: "@selector" }],
|
| 80 |
+
selector: [
|
| 81 |
+
{ include: "@comments" },
|
| 82 |
+
{ include: "@import" },
|
| 83 |
+
{ include: "@variabledeclaration" },
|
| 84 |
+
{ include: "@warndebug" },
|
| 85 |
+
// sass: log statements
|
| 86 |
+
["[@](include)", { token: "keyword", next: "@includedeclaration" }],
|
| 87 |
+
// sass: include statement
|
| 88 |
+
[
|
| 89 |
+
"[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
|
| 90 |
+
{ token: "keyword", next: "@keyframedeclaration" }
|
| 91 |
+
],
|
| 92 |
+
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
| 93 |
+
// sass: placeholder for includes
|
| 94 |
+
["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
|
| 95 |
+
["[@](function)", { token: "keyword", next: "@functiondeclaration" }],
|
| 96 |
+
["[@](mixin)", { token: "keyword", next: "@mixindeclaration" }],
|
| 97 |
+
["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
|
| 98 |
+
{ include: "@controlstatement" },
|
| 99 |
+
// sass control statements
|
| 100 |
+
{ include: "@selectorname" },
|
| 101 |
+
["[&\\*]", "tag"],
|
| 102 |
+
// selector symbols
|
| 103 |
+
["[>\\+,]", "delimiter"],
|
| 104 |
+
// selector operators
|
| 105 |
+
["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
|
| 106 |
+
["{", { token: "delimiter.curly", next: "@selectorbody" }]
|
| 107 |
+
],
|
| 108 |
+
selectorbody: [
|
| 109 |
+
["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
|
| 110 |
+
// rule definition: to distinguish from a nested selector check for whitespace, number or a semicolon
|
| 111 |
+
{ include: "@selector" },
|
| 112 |
+
// sass: nested selectors
|
| 113 |
+
["[@](extend)", { token: "keyword", next: "@extendbody" }],
|
| 114 |
+
// sass: extend other selectors
|
| 115 |
+
["[@](return)", { token: "keyword", next: "@declarationbody" }],
|
| 116 |
+
["}", { token: "delimiter.curly", next: "@pop" }]
|
| 117 |
+
],
|
| 118 |
+
selectorname: [
|
| 119 |
+
["#{", { token: "meta", next: "@variableinterpolation" }],
|
| 120 |
+
// sass: interpolation
|
| 121 |
+
["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
|
| 122 |
+
// selector (.foo, div, ...)
|
| 123 |
+
],
|
| 124 |
+
selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
|
| 125 |
+
term: [
|
| 126 |
+
{ include: "@comments" },
|
| 127 |
+
["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
|
| 128 |
+
{ include: "@functioninvocation" },
|
| 129 |
+
{ include: "@numbers" },
|
| 130 |
+
{ include: "@strings" },
|
| 131 |
+
{ include: "@variablereference" },
|
| 132 |
+
["(and\\b|or\\b|not\\b)", "operator"],
|
| 133 |
+
{ include: "@name" },
|
| 134 |
+
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "operator"],
|
| 135 |
+
[",", "delimiter"],
|
| 136 |
+
["!default", "literal"],
|
| 137 |
+
["\\(", { token: "delimiter.parenthesis", next: "@parenthizedterm" }]
|
| 138 |
+
],
|
| 139 |
+
rulevalue: [
|
| 140 |
+
{ include: "@term" },
|
| 141 |
+
["!important", "literal"],
|
| 142 |
+
[";", "delimiter", "@pop"],
|
| 143 |
+
["{", { token: "delimiter.curly", switchTo: "@nestedproperty" }],
|
| 144 |
+
// sass: nested properties
|
| 145 |
+
["(?=})", { token: "", next: "@pop" }]
|
| 146 |
+
// missing semicolon
|
| 147 |
+
],
|
| 148 |
+
nestedproperty: [
|
| 149 |
+
["[*_]?@identifier@ws:", "attribute.name", "@rulevalue"],
|
| 150 |
+
{ include: "@comments" },
|
| 151 |
+
["}", { token: "delimiter.curly", next: "@pop" }]
|
| 152 |
+
],
|
| 153 |
+
warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
|
| 154 |
+
import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
|
| 155 |
+
variabledeclaration: [
|
| 156 |
+
// sass variables
|
| 157 |
+
["\\$@identifier@ws:", "variable.decl", "@declarationbody"]
|
| 158 |
+
],
|
| 159 |
+
urldeclaration: [
|
| 160 |
+
{ include: "@strings" },
|
| 161 |
+
["[^)\r\n]+", "string"],
|
| 162 |
+
["\\)", { token: "meta", next: "@pop" }]
|
| 163 |
+
],
|
| 164 |
+
parenthizedterm: [
|
| 165 |
+
{ include: "@term" },
|
| 166 |
+
["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
|
| 167 |
+
],
|
| 168 |
+
declarationbody: [
|
| 169 |
+
{ include: "@term" },
|
| 170 |
+
[";", "delimiter", "@pop"],
|
| 171 |
+
["(?=})", { token: "", next: "@pop" }]
|
| 172 |
+
// missing semicolon
|
| 173 |
+
],
|
| 174 |
+
extendbody: [
|
| 175 |
+
{ include: "@selectorname" },
|
| 176 |
+
["!optional", "literal"],
|
| 177 |
+
[";", "delimiter", "@pop"],
|
| 178 |
+
["(?=})", { token: "", next: "@pop" }]
|
| 179 |
+
// missing semicolon
|
| 180 |
+
],
|
| 181 |
+
variablereference: [
|
| 182 |
+
// sass variable reference
|
| 183 |
+
["\\$@identifier", "variable.ref"],
|
| 184 |
+
["\\.\\.\\.", "operator"],
|
| 185 |
+
// var args in reference
|
| 186 |
+
["#{", { token: "meta", next: "@variableinterpolation" }]
|
| 187 |
+
// sass var resolve
|
| 188 |
+
],
|
| 189 |
+
variableinterpolation: [
|
| 190 |
+
{ include: "@variablereference" },
|
| 191 |
+
["}", { token: "meta", next: "@pop" }]
|
| 192 |
+
],
|
| 193 |
+
comments: [
|
| 194 |
+
["\\/\\*", "comment", "@comment"],
|
| 195 |
+
["\\/\\/+.*", "comment"]
|
| 196 |
+
],
|
| 197 |
+
comment: [
|
| 198 |
+
["\\*\\/", "comment", "@pop"],
|
| 199 |
+
[".", "comment"]
|
| 200 |
+
],
|
| 201 |
+
name: [["@identifier", "attribute.value"]],
|
| 202 |
+
numbers: [
|
| 203 |
+
["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "number", next: "@units" }],
|
| 204 |
+
["#[0-9a-fA-F_]+(?!\\w)", "number.hex"]
|
| 205 |
+
],
|
| 206 |
+
units: [
|
| 207 |
+
[
|
| 208 |
+
"(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
| 209 |
+
"number",
|
| 210 |
+
"@pop"
|
| 211 |
+
]
|
| 212 |
+
],
|
| 213 |
+
functiondeclaration: [
|
| 214 |
+
["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
|
| 215 |
+
["{", { token: "delimiter.curly", switchTo: "@functionbody" }]
|
| 216 |
+
],
|
| 217 |
+
mixindeclaration: [
|
| 218 |
+
// mixin with parameters
|
| 219 |
+
["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
|
| 220 |
+
// mixin without parameters
|
| 221 |
+
["@identifier", "meta"],
|
| 222 |
+
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
| 223 |
+
],
|
| 224 |
+
parameterdeclaration: [
|
| 225 |
+
["\\$@identifier@ws:", "variable.decl"],
|
| 226 |
+
["\\.\\.\\.", "operator"],
|
| 227 |
+
// var args in declaration
|
| 228 |
+
[",", "delimiter"],
|
| 229 |
+
{ include: "@term" },
|
| 230 |
+
["\\)", { token: "meta", next: "@pop" }]
|
| 231 |
+
],
|
| 232 |
+
includedeclaration: [
|
| 233 |
+
{ include: "@functioninvocation" },
|
| 234 |
+
["@identifier", "meta"],
|
| 235 |
+
[";", "delimiter", "@pop"],
|
| 236 |
+
["(?=})", { token: "", next: "@pop" }],
|
| 237 |
+
// missing semicolon
|
| 238 |
+
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
| 239 |
+
],
|
| 240 |
+
keyframedeclaration: [
|
| 241 |
+
["@identifier", "meta"],
|
| 242 |
+
["{", { token: "delimiter.curly", switchTo: "@keyframebody" }]
|
| 243 |
+
],
|
| 244 |
+
keyframebody: [
|
| 245 |
+
{ include: "@term" },
|
| 246 |
+
["{", { token: "delimiter.curly", next: "@selectorbody" }],
|
| 247 |
+
["}", { token: "delimiter.curly", next: "@pop" }]
|
| 248 |
+
],
|
| 249 |
+
controlstatement: [
|
| 250 |
+
[
|
| 251 |
+
"[@](if|else|for|while|each|media)",
|
| 252 |
+
{ token: "keyword.flow", next: "@controlstatementdeclaration" }
|
| 253 |
+
]
|
| 254 |
+
],
|
| 255 |
+
controlstatementdeclaration: [
|
| 256 |
+
["(in|from|through|if|to)\\b", { token: "keyword.flow" }],
|
| 257 |
+
{ include: "@term" },
|
| 258 |
+
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
| 259 |
+
],
|
| 260 |
+
functionbody: [
|
| 261 |
+
["[@](return)", { token: "keyword" }],
|
| 262 |
+
{ include: "@variabledeclaration" },
|
| 263 |
+
{ include: "@term" },
|
| 264 |
+
{ include: "@controlstatement" },
|
| 265 |
+
[";", "delimiter"],
|
| 266 |
+
["}", { token: "delimiter.curly", next: "@pop" }]
|
| 267 |
+
],
|
| 268 |
+
functioninvocation: [["@identifier\\(", { token: "meta", next: "@functionarguments" }]],
|
| 269 |
+
functionarguments: [
|
| 270 |
+
["\\$@identifier@ws:", "attribute.name"],
|
| 271 |
+
["[,]", "delimiter"],
|
| 272 |
+
{ include: "@term" },
|
| 273 |
+
["\\)", { token: "meta", next: "@pop" }]
|
| 274 |
+
],
|
| 275 |
+
strings: [
|
| 276 |
+
['~?"', { token: "string.delimiter", next: "@stringenddoublequote" }],
|
| 277 |
+
["~?'", { token: "string.delimiter", next: "@stringendquote" }]
|
| 278 |
+
],
|
| 279 |
+
stringenddoublequote: [
|
| 280 |
+
["\\\\.", "string"],
|
| 281 |
+
['"', { token: "string.delimiter", next: "@pop" }],
|
| 282 |
+
[".", "string"]
|
| 283 |
+
],
|
| 284 |
+
stringendquote: [
|
| 285 |
+
["\\\\.", "string"],
|
| 286 |
+
["'", { token: "string.delimiter", next: "@pop" }],
|
| 287 |
+
[".", "string"]
|
| 288 |
+
]
|
| 289 |
+
}
|
| 290 |
+
};
|
| 291 |
+
return __toCommonJS(scss_exports);
|
| 292 |
+
})();
|
| 293 |
+
return moduleExports;
|
| 294 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/shell/shell.js
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/shell/shell", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/shell/shell.ts
|
| 29 |
+
var shell_exports = {};
|
| 30 |
+
__export(shell_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "#"
|
| 37 |
+
},
|
| 38 |
+
brackets: [
|
| 39 |
+
["{", "}"],
|
| 40 |
+
["[", "]"],
|
| 41 |
+
["(", ")"]
|
| 42 |
+
],
|
| 43 |
+
autoClosingPairs: [
|
| 44 |
+
{ open: "{", close: "}" },
|
| 45 |
+
{ open: "[", close: "]" },
|
| 46 |
+
{ open: "(", close: ")" },
|
| 47 |
+
{ open: '"', close: '"' },
|
| 48 |
+
{ open: "'", close: "'" },
|
| 49 |
+
{ open: "`", close: "`" }
|
| 50 |
+
],
|
| 51 |
+
surroundingPairs: [
|
| 52 |
+
{ open: "{", close: "}" },
|
| 53 |
+
{ open: "[", close: "]" },
|
| 54 |
+
{ open: "(", close: ")" },
|
| 55 |
+
{ open: '"', close: '"' },
|
| 56 |
+
{ open: "'", close: "'" },
|
| 57 |
+
{ open: "`", close: "`" }
|
| 58 |
+
]
|
| 59 |
+
};
|
| 60 |
+
var language = {
|
| 61 |
+
defaultToken: "",
|
| 62 |
+
ignoreCase: true,
|
| 63 |
+
tokenPostfix: ".shell",
|
| 64 |
+
brackets: [
|
| 65 |
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
| 66 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 67 |
+
{ token: "delimiter.square", open: "[", close: "]" }
|
| 68 |
+
],
|
| 69 |
+
keywords: [
|
| 70 |
+
"if",
|
| 71 |
+
"then",
|
| 72 |
+
"do",
|
| 73 |
+
"else",
|
| 74 |
+
"elif",
|
| 75 |
+
"while",
|
| 76 |
+
"until",
|
| 77 |
+
"for",
|
| 78 |
+
"in",
|
| 79 |
+
"esac",
|
| 80 |
+
"fi",
|
| 81 |
+
"fin",
|
| 82 |
+
"fil",
|
| 83 |
+
"done",
|
| 84 |
+
"exit",
|
| 85 |
+
"set",
|
| 86 |
+
"unset",
|
| 87 |
+
"export",
|
| 88 |
+
"function"
|
| 89 |
+
],
|
| 90 |
+
builtins: [
|
| 91 |
+
"ab",
|
| 92 |
+
"awk",
|
| 93 |
+
"bash",
|
| 94 |
+
"beep",
|
| 95 |
+
"cat",
|
| 96 |
+
"cc",
|
| 97 |
+
"cd",
|
| 98 |
+
"chown",
|
| 99 |
+
"chmod",
|
| 100 |
+
"chroot",
|
| 101 |
+
"clear",
|
| 102 |
+
"cp",
|
| 103 |
+
"curl",
|
| 104 |
+
"cut",
|
| 105 |
+
"diff",
|
| 106 |
+
"echo",
|
| 107 |
+
"find",
|
| 108 |
+
"gawk",
|
| 109 |
+
"gcc",
|
| 110 |
+
"get",
|
| 111 |
+
"git",
|
| 112 |
+
"grep",
|
| 113 |
+
"hg",
|
| 114 |
+
"kill",
|
| 115 |
+
"killall",
|
| 116 |
+
"ln",
|
| 117 |
+
"ls",
|
| 118 |
+
"make",
|
| 119 |
+
"mkdir",
|
| 120 |
+
"openssl",
|
| 121 |
+
"mv",
|
| 122 |
+
"nc",
|
| 123 |
+
"node",
|
| 124 |
+
"npm",
|
| 125 |
+
"ping",
|
| 126 |
+
"ps",
|
| 127 |
+
"restart",
|
| 128 |
+
"rm",
|
| 129 |
+
"rmdir",
|
| 130 |
+
"sed",
|
| 131 |
+
"service",
|
| 132 |
+
"sh",
|
| 133 |
+
"shopt",
|
| 134 |
+
"shred",
|
| 135 |
+
"source",
|
| 136 |
+
"sort",
|
| 137 |
+
"sleep",
|
| 138 |
+
"ssh",
|
| 139 |
+
"start",
|
| 140 |
+
"stop",
|
| 141 |
+
"su",
|
| 142 |
+
"sudo",
|
| 143 |
+
"svn",
|
| 144 |
+
"tee",
|
| 145 |
+
"telnet",
|
| 146 |
+
"top",
|
| 147 |
+
"touch",
|
| 148 |
+
"vi",
|
| 149 |
+
"vim",
|
| 150 |
+
"wall",
|
| 151 |
+
"wc",
|
| 152 |
+
"wget",
|
| 153 |
+
"who",
|
| 154 |
+
"write",
|
| 155 |
+
"yes",
|
| 156 |
+
"zsh"
|
| 157 |
+
],
|
| 158 |
+
startingWithDash: /\-+\w+/,
|
| 159 |
+
identifiersWithDashes: /[a-zA-Z]\w+(?:@startingWithDash)+/,
|
| 160 |
+
// we include these common regular expressions
|
| 161 |
+
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
| 162 |
+
// The main tokenizer for our languages
|
| 163 |
+
tokenizer: {
|
| 164 |
+
root: [
|
| 165 |
+
[/@identifiersWithDashes/, ""],
|
| 166 |
+
[/(\s)((?:@startingWithDash)+)/, ["white", "attribute.name"]],
|
| 167 |
+
[
|
| 168 |
+
/[a-zA-Z]\w*/,
|
| 169 |
+
{
|
| 170 |
+
cases: {
|
| 171 |
+
"@keywords": "keyword",
|
| 172 |
+
"@builtins": "type.identifier",
|
| 173 |
+
"@default": ""
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
{ include: "@whitespace" },
|
| 178 |
+
{ include: "@strings" },
|
| 179 |
+
{ include: "@parameters" },
|
| 180 |
+
{ include: "@heredoc" },
|
| 181 |
+
[/[{}\[\]()]/, "@brackets"],
|
| 182 |
+
[/@symbols/, "delimiter"],
|
| 183 |
+
{ include: "@numbers" },
|
| 184 |
+
[/[,;]/, "delimiter"]
|
| 185 |
+
],
|
| 186 |
+
whitespace: [
|
| 187 |
+
[/\s+/, "white"],
|
| 188 |
+
[/(^#!.*$)/, "metatag"],
|
| 189 |
+
[/(^#.*$)/, "comment"]
|
| 190 |
+
],
|
| 191 |
+
numbers: [
|
| 192 |
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
| 193 |
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
| 194 |
+
[/\d+/, "number"]
|
| 195 |
+
],
|
| 196 |
+
// Recognize strings, including those broken across lines
|
| 197 |
+
strings: [
|
| 198 |
+
[/'/, "string", "@stringBody"],
|
| 199 |
+
[/"/, "string", "@dblStringBody"]
|
| 200 |
+
],
|
| 201 |
+
stringBody: [
|
| 202 |
+
[/'/, "string", "@popall"],
|
| 203 |
+
[/./, "string"]
|
| 204 |
+
],
|
| 205 |
+
dblStringBody: [
|
| 206 |
+
[/"/, "string", "@popall"],
|
| 207 |
+
[/./, "string"]
|
| 208 |
+
],
|
| 209 |
+
heredoc: [
|
| 210 |
+
[
|
| 211 |
+
/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,
|
| 212 |
+
[
|
| 213 |
+
"constants",
|
| 214 |
+
"white",
|
| 215 |
+
"string.heredoc.delimiter",
|
| 216 |
+
"string.heredoc",
|
| 217 |
+
"string.heredoc.delimiter"
|
| 218 |
+
]
|
| 219 |
+
]
|
| 220 |
+
],
|
| 221 |
+
parameters: [
|
| 222 |
+
[/\$\d+/, "variable.predefined"],
|
| 223 |
+
[/\$\w+/, "variable"],
|
| 224 |
+
[/\$[*@#?\-$!0_]/, "variable"],
|
| 225 |
+
[/\$'/, "variable", "@parameterBodyQuote"],
|
| 226 |
+
[/\$"/, "variable", "@parameterBodyDoubleQuote"],
|
| 227 |
+
[/\$\(/, "variable", "@parameterBodyParen"],
|
| 228 |
+
[/\$\{/, "variable", "@parameterBodyCurlyBrace"]
|
| 229 |
+
],
|
| 230 |
+
parameterBodyQuote: [
|
| 231 |
+
[/[^#:%*@\-!_']+/, "variable"],
|
| 232 |
+
[/[#:%*@\-!_]/, "delimiter"],
|
| 233 |
+
[/[']/, "variable", "@pop"]
|
| 234 |
+
],
|
| 235 |
+
parameterBodyDoubleQuote: [
|
| 236 |
+
[/[^#:%*@\-!_"]+/, "variable"],
|
| 237 |
+
[/[#:%*@\-!_]/, "delimiter"],
|
| 238 |
+
[/["]/, "variable", "@pop"]
|
| 239 |
+
],
|
| 240 |
+
parameterBodyParen: [
|
| 241 |
+
[/[^#:%*@\-!_)]+/, "variable"],
|
| 242 |
+
[/[#:%*@\-!_]/, "delimiter"],
|
| 243 |
+
[/[)]/, "variable", "@pop"]
|
| 244 |
+
],
|
| 245 |
+
parameterBodyCurlyBrace: [
|
| 246 |
+
[/[^#:%*@\-!_}]+/, "variable"],
|
| 247 |
+
[/[#:%*@\-!_]/, "delimiter"],
|
| 248 |
+
[/[}]/, "variable", "@pop"]
|
| 249 |
+
]
|
| 250 |
+
}
|
| 251 |
+
};
|
| 252 |
+
return __toCommonJS(shell_exports);
|
| 253 |
+
})();
|
| 254 |
+
return moduleExports;
|
| 255 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/solidity/solidity.js
ADDED
|
@@ -0,0 +1,1401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/solidity/solidity", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/solidity/solidity.ts
|
| 29 |
+
var solidity_exports = {};
|
| 30 |
+
__export(solidity_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "//",
|
| 37 |
+
blockComment: ["/*", "*/"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{", "}"],
|
| 41 |
+
["[", "]"],
|
| 42 |
+
["(", ")"],
|
| 43 |
+
["<", ">"]
|
| 44 |
+
],
|
| 45 |
+
autoClosingPairs: [
|
| 46 |
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
| 47 |
+
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
| 48 |
+
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
| 49 |
+
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
| 50 |
+
]
|
| 51 |
+
};
|
| 52 |
+
var language = {
|
| 53 |
+
defaultToken: "",
|
| 54 |
+
tokenPostfix: ".sol",
|
| 55 |
+
brackets: [
|
| 56 |
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
| 57 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 58 |
+
{ token: "delimiter.square", open: "[", close: "]" },
|
| 59 |
+
{ token: "delimiter.angle", open: "<", close: ">" }
|
| 60 |
+
],
|
| 61 |
+
keywords: [
|
| 62 |
+
// Main keywords
|
| 63 |
+
"pragma",
|
| 64 |
+
"solidity",
|
| 65 |
+
"contract",
|
| 66 |
+
"library",
|
| 67 |
+
"using",
|
| 68 |
+
"struct",
|
| 69 |
+
"function",
|
| 70 |
+
"modifier",
|
| 71 |
+
"constructor",
|
| 72 |
+
//Built-in types
|
| 73 |
+
"address",
|
| 74 |
+
"string",
|
| 75 |
+
"bool",
|
| 76 |
+
//Other types
|
| 77 |
+
"Int",
|
| 78 |
+
"Uint",
|
| 79 |
+
"Byte",
|
| 80 |
+
"Fixed",
|
| 81 |
+
"Ufixed",
|
| 82 |
+
//All int
|
| 83 |
+
"int",
|
| 84 |
+
"int8",
|
| 85 |
+
"int16",
|
| 86 |
+
"int24",
|
| 87 |
+
"int32",
|
| 88 |
+
"int40",
|
| 89 |
+
"int48",
|
| 90 |
+
"int56",
|
| 91 |
+
"int64",
|
| 92 |
+
"int72",
|
| 93 |
+
"int80",
|
| 94 |
+
"int88",
|
| 95 |
+
"int96",
|
| 96 |
+
"int104",
|
| 97 |
+
"int112",
|
| 98 |
+
"int120",
|
| 99 |
+
"int128",
|
| 100 |
+
"int136",
|
| 101 |
+
"int144",
|
| 102 |
+
"int152",
|
| 103 |
+
"int160",
|
| 104 |
+
"int168",
|
| 105 |
+
"int176",
|
| 106 |
+
"int184",
|
| 107 |
+
"int192",
|
| 108 |
+
"int200",
|
| 109 |
+
"int208",
|
| 110 |
+
"int216",
|
| 111 |
+
"int224",
|
| 112 |
+
"int232",
|
| 113 |
+
"int240",
|
| 114 |
+
"int248",
|
| 115 |
+
"int256",
|
| 116 |
+
//All uint
|
| 117 |
+
"uint",
|
| 118 |
+
"uint8",
|
| 119 |
+
"uint16",
|
| 120 |
+
"uint24",
|
| 121 |
+
"uint32",
|
| 122 |
+
"uint40",
|
| 123 |
+
"uint48",
|
| 124 |
+
"uint56",
|
| 125 |
+
"uint64",
|
| 126 |
+
"uint72",
|
| 127 |
+
"uint80",
|
| 128 |
+
"uint88",
|
| 129 |
+
"uint96",
|
| 130 |
+
"uint104",
|
| 131 |
+
"uint112",
|
| 132 |
+
"uint120",
|
| 133 |
+
"uint128",
|
| 134 |
+
"uint136",
|
| 135 |
+
"uint144",
|
| 136 |
+
"uint152",
|
| 137 |
+
"uint160",
|
| 138 |
+
"uint168",
|
| 139 |
+
"uint176",
|
| 140 |
+
"uint184",
|
| 141 |
+
"uint192",
|
| 142 |
+
"uint200",
|
| 143 |
+
"uint208",
|
| 144 |
+
"uint216",
|
| 145 |
+
"uint224",
|
| 146 |
+
"uint232",
|
| 147 |
+
"uint240",
|
| 148 |
+
"uint248",
|
| 149 |
+
"uint256",
|
| 150 |
+
//All Byte
|
| 151 |
+
"byte",
|
| 152 |
+
"bytes",
|
| 153 |
+
"bytes1",
|
| 154 |
+
"bytes2",
|
| 155 |
+
"bytes3",
|
| 156 |
+
"bytes4",
|
| 157 |
+
"bytes5",
|
| 158 |
+
"bytes6",
|
| 159 |
+
"bytes7",
|
| 160 |
+
"bytes8",
|
| 161 |
+
"bytes9",
|
| 162 |
+
"bytes10",
|
| 163 |
+
"bytes11",
|
| 164 |
+
"bytes12",
|
| 165 |
+
"bytes13",
|
| 166 |
+
"bytes14",
|
| 167 |
+
"bytes15",
|
| 168 |
+
"bytes16",
|
| 169 |
+
"bytes17",
|
| 170 |
+
"bytes18",
|
| 171 |
+
"bytes19",
|
| 172 |
+
"bytes20",
|
| 173 |
+
"bytes21",
|
| 174 |
+
"bytes22",
|
| 175 |
+
"bytes23",
|
| 176 |
+
"bytes24",
|
| 177 |
+
"bytes25",
|
| 178 |
+
"bytes26",
|
| 179 |
+
"bytes27",
|
| 180 |
+
"bytes28",
|
| 181 |
+
"bytes29",
|
| 182 |
+
"bytes30",
|
| 183 |
+
"bytes31",
|
| 184 |
+
"bytes32",
|
| 185 |
+
//All fixed
|
| 186 |
+
"fixed",
|
| 187 |
+
"fixed0x8",
|
| 188 |
+
"fixed0x16",
|
| 189 |
+
"fixed0x24",
|
| 190 |
+
"fixed0x32",
|
| 191 |
+
"fixed0x40",
|
| 192 |
+
"fixed0x48",
|
| 193 |
+
"fixed0x56",
|
| 194 |
+
"fixed0x64",
|
| 195 |
+
"fixed0x72",
|
| 196 |
+
"fixed0x80",
|
| 197 |
+
"fixed0x88",
|
| 198 |
+
"fixed0x96",
|
| 199 |
+
"fixed0x104",
|
| 200 |
+
"fixed0x112",
|
| 201 |
+
"fixed0x120",
|
| 202 |
+
"fixed0x128",
|
| 203 |
+
"fixed0x136",
|
| 204 |
+
"fixed0x144",
|
| 205 |
+
"fixed0x152",
|
| 206 |
+
"fixed0x160",
|
| 207 |
+
"fixed0x168",
|
| 208 |
+
"fixed0x176",
|
| 209 |
+
"fixed0x184",
|
| 210 |
+
"fixed0x192",
|
| 211 |
+
"fixed0x200",
|
| 212 |
+
"fixed0x208",
|
| 213 |
+
"fixed0x216",
|
| 214 |
+
"fixed0x224",
|
| 215 |
+
"fixed0x232",
|
| 216 |
+
"fixed0x240",
|
| 217 |
+
"fixed0x248",
|
| 218 |
+
"fixed0x256",
|
| 219 |
+
"fixed8x8",
|
| 220 |
+
"fixed8x16",
|
| 221 |
+
"fixed8x24",
|
| 222 |
+
"fixed8x32",
|
| 223 |
+
"fixed8x40",
|
| 224 |
+
"fixed8x48",
|
| 225 |
+
"fixed8x56",
|
| 226 |
+
"fixed8x64",
|
| 227 |
+
"fixed8x72",
|
| 228 |
+
"fixed8x80",
|
| 229 |
+
"fixed8x88",
|
| 230 |
+
"fixed8x96",
|
| 231 |
+
"fixed8x104",
|
| 232 |
+
"fixed8x112",
|
| 233 |
+
"fixed8x120",
|
| 234 |
+
"fixed8x128",
|
| 235 |
+
"fixed8x136",
|
| 236 |
+
"fixed8x144",
|
| 237 |
+
"fixed8x152",
|
| 238 |
+
"fixed8x160",
|
| 239 |
+
"fixed8x168",
|
| 240 |
+
"fixed8x176",
|
| 241 |
+
"fixed8x184",
|
| 242 |
+
"fixed8x192",
|
| 243 |
+
"fixed8x200",
|
| 244 |
+
"fixed8x208",
|
| 245 |
+
"fixed8x216",
|
| 246 |
+
"fixed8x224",
|
| 247 |
+
"fixed8x232",
|
| 248 |
+
"fixed8x240",
|
| 249 |
+
"fixed8x248",
|
| 250 |
+
"fixed16x8",
|
| 251 |
+
"fixed16x16",
|
| 252 |
+
"fixed16x24",
|
| 253 |
+
"fixed16x32",
|
| 254 |
+
"fixed16x40",
|
| 255 |
+
"fixed16x48",
|
| 256 |
+
"fixed16x56",
|
| 257 |
+
"fixed16x64",
|
| 258 |
+
"fixed16x72",
|
| 259 |
+
"fixed16x80",
|
| 260 |
+
"fixed16x88",
|
| 261 |
+
"fixed16x96",
|
| 262 |
+
"fixed16x104",
|
| 263 |
+
"fixed16x112",
|
| 264 |
+
"fixed16x120",
|
| 265 |
+
"fixed16x128",
|
| 266 |
+
"fixed16x136",
|
| 267 |
+
"fixed16x144",
|
| 268 |
+
"fixed16x152",
|
| 269 |
+
"fixed16x160",
|
| 270 |
+
"fixed16x168",
|
| 271 |
+
"fixed16x176",
|
| 272 |
+
"fixed16x184",
|
| 273 |
+
"fixed16x192",
|
| 274 |
+
"fixed16x200",
|
| 275 |
+
"fixed16x208",
|
| 276 |
+
"fixed16x216",
|
| 277 |
+
"fixed16x224",
|
| 278 |
+
"fixed16x232",
|
| 279 |
+
"fixed16x240",
|
| 280 |
+
"fixed24x8",
|
| 281 |
+
"fixed24x16",
|
| 282 |
+
"fixed24x24",
|
| 283 |
+
"fixed24x32",
|
| 284 |
+
"fixed24x40",
|
| 285 |
+
"fixed24x48",
|
| 286 |
+
"fixed24x56",
|
| 287 |
+
"fixed24x64",
|
| 288 |
+
"fixed24x72",
|
| 289 |
+
"fixed24x80",
|
| 290 |
+
"fixed24x88",
|
| 291 |
+
"fixed24x96",
|
| 292 |
+
"fixed24x104",
|
| 293 |
+
"fixed24x112",
|
| 294 |
+
"fixed24x120",
|
| 295 |
+
"fixed24x128",
|
| 296 |
+
"fixed24x136",
|
| 297 |
+
"fixed24x144",
|
| 298 |
+
"fixed24x152",
|
| 299 |
+
"fixed24x160",
|
| 300 |
+
"fixed24x168",
|
| 301 |
+
"fixed24x176",
|
| 302 |
+
"fixed24x184",
|
| 303 |
+
"fixed24x192",
|
| 304 |
+
"fixed24x200",
|
| 305 |
+
"fixed24x208",
|
| 306 |
+
"fixed24x216",
|
| 307 |
+
"fixed24x224",
|
| 308 |
+
"fixed24x232",
|
| 309 |
+
"fixed32x8",
|
| 310 |
+
"fixed32x16",
|
| 311 |
+
"fixed32x24",
|
| 312 |
+
"fixed32x32",
|
| 313 |
+
"fixed32x40",
|
| 314 |
+
"fixed32x48",
|
| 315 |
+
"fixed32x56",
|
| 316 |
+
"fixed32x64",
|
| 317 |
+
"fixed32x72",
|
| 318 |
+
"fixed32x80",
|
| 319 |
+
"fixed32x88",
|
| 320 |
+
"fixed32x96",
|
| 321 |
+
"fixed32x104",
|
| 322 |
+
"fixed32x112",
|
| 323 |
+
"fixed32x120",
|
| 324 |
+
"fixed32x128",
|
| 325 |
+
"fixed32x136",
|
| 326 |
+
"fixed32x144",
|
| 327 |
+
"fixed32x152",
|
| 328 |
+
"fixed32x160",
|
| 329 |
+
"fixed32x168",
|
| 330 |
+
"fixed32x176",
|
| 331 |
+
"fixed32x184",
|
| 332 |
+
"fixed32x192",
|
| 333 |
+
"fixed32x200",
|
| 334 |
+
"fixed32x208",
|
| 335 |
+
"fixed32x216",
|
| 336 |
+
"fixed32x224",
|
| 337 |
+
"fixed40x8",
|
| 338 |
+
"fixed40x16",
|
| 339 |
+
"fixed40x24",
|
| 340 |
+
"fixed40x32",
|
| 341 |
+
"fixed40x40",
|
| 342 |
+
"fixed40x48",
|
| 343 |
+
"fixed40x56",
|
| 344 |
+
"fixed40x64",
|
| 345 |
+
"fixed40x72",
|
| 346 |
+
"fixed40x80",
|
| 347 |
+
"fixed40x88",
|
| 348 |
+
"fixed40x96",
|
| 349 |
+
"fixed40x104",
|
| 350 |
+
"fixed40x112",
|
| 351 |
+
"fixed40x120",
|
| 352 |
+
"fixed40x128",
|
| 353 |
+
"fixed40x136",
|
| 354 |
+
"fixed40x144",
|
| 355 |
+
"fixed40x152",
|
| 356 |
+
"fixed40x160",
|
| 357 |
+
"fixed40x168",
|
| 358 |
+
"fixed40x176",
|
| 359 |
+
"fixed40x184",
|
| 360 |
+
"fixed40x192",
|
| 361 |
+
"fixed40x200",
|
| 362 |
+
"fixed40x208",
|
| 363 |
+
"fixed40x216",
|
| 364 |
+
"fixed48x8",
|
| 365 |
+
"fixed48x16",
|
| 366 |
+
"fixed48x24",
|
| 367 |
+
"fixed48x32",
|
| 368 |
+
"fixed48x40",
|
| 369 |
+
"fixed48x48",
|
| 370 |
+
"fixed48x56",
|
| 371 |
+
"fixed48x64",
|
| 372 |
+
"fixed48x72",
|
| 373 |
+
"fixed48x80",
|
| 374 |
+
"fixed48x88",
|
| 375 |
+
"fixed48x96",
|
| 376 |
+
"fixed48x104",
|
| 377 |
+
"fixed48x112",
|
| 378 |
+
"fixed48x120",
|
| 379 |
+
"fixed48x128",
|
| 380 |
+
"fixed48x136",
|
| 381 |
+
"fixed48x144",
|
| 382 |
+
"fixed48x152",
|
| 383 |
+
"fixed48x160",
|
| 384 |
+
"fixed48x168",
|
| 385 |
+
"fixed48x176",
|
| 386 |
+
"fixed48x184",
|
| 387 |
+
"fixed48x192",
|
| 388 |
+
"fixed48x200",
|
| 389 |
+
"fixed48x208",
|
| 390 |
+
"fixed56x8",
|
| 391 |
+
"fixed56x16",
|
| 392 |
+
"fixed56x24",
|
| 393 |
+
"fixed56x32",
|
| 394 |
+
"fixed56x40",
|
| 395 |
+
"fixed56x48",
|
| 396 |
+
"fixed56x56",
|
| 397 |
+
"fixed56x64",
|
| 398 |
+
"fixed56x72",
|
| 399 |
+
"fixed56x80",
|
| 400 |
+
"fixed56x88",
|
| 401 |
+
"fixed56x96",
|
| 402 |
+
"fixed56x104",
|
| 403 |
+
"fixed56x112",
|
| 404 |
+
"fixed56x120",
|
| 405 |
+
"fixed56x128",
|
| 406 |
+
"fixed56x136",
|
| 407 |
+
"fixed56x144",
|
| 408 |
+
"fixed56x152",
|
| 409 |
+
"fixed56x160",
|
| 410 |
+
"fixed56x168",
|
| 411 |
+
"fixed56x176",
|
| 412 |
+
"fixed56x184",
|
| 413 |
+
"fixed56x192",
|
| 414 |
+
"fixed56x200",
|
| 415 |
+
"fixed64x8",
|
| 416 |
+
"fixed64x16",
|
| 417 |
+
"fixed64x24",
|
| 418 |
+
"fixed64x32",
|
| 419 |
+
"fixed64x40",
|
| 420 |
+
"fixed64x48",
|
| 421 |
+
"fixed64x56",
|
| 422 |
+
"fixed64x64",
|
| 423 |
+
"fixed64x72",
|
| 424 |
+
"fixed64x80",
|
| 425 |
+
"fixed64x88",
|
| 426 |
+
"fixed64x96",
|
| 427 |
+
"fixed64x104",
|
| 428 |
+
"fixed64x112",
|
| 429 |
+
"fixed64x120",
|
| 430 |
+
"fixed64x128",
|
| 431 |
+
"fixed64x136",
|
| 432 |
+
"fixed64x144",
|
| 433 |
+
"fixed64x152",
|
| 434 |
+
"fixed64x160",
|
| 435 |
+
"fixed64x168",
|
| 436 |
+
"fixed64x176",
|
| 437 |
+
"fixed64x184",
|
| 438 |
+
"fixed64x192",
|
| 439 |
+
"fixed72x8",
|
| 440 |
+
"fixed72x16",
|
| 441 |
+
"fixed72x24",
|
| 442 |
+
"fixed72x32",
|
| 443 |
+
"fixed72x40",
|
| 444 |
+
"fixed72x48",
|
| 445 |
+
"fixed72x56",
|
| 446 |
+
"fixed72x64",
|
| 447 |
+
"fixed72x72",
|
| 448 |
+
"fixed72x80",
|
| 449 |
+
"fixed72x88",
|
| 450 |
+
"fixed72x96",
|
| 451 |
+
"fixed72x104",
|
| 452 |
+
"fixed72x112",
|
| 453 |
+
"fixed72x120",
|
| 454 |
+
"fixed72x128",
|
| 455 |
+
"fixed72x136",
|
| 456 |
+
"fixed72x144",
|
| 457 |
+
"fixed72x152",
|
| 458 |
+
"fixed72x160",
|
| 459 |
+
"fixed72x168",
|
| 460 |
+
"fixed72x176",
|
| 461 |
+
"fixed72x184",
|
| 462 |
+
"fixed80x8",
|
| 463 |
+
"fixed80x16",
|
| 464 |
+
"fixed80x24",
|
| 465 |
+
"fixed80x32",
|
| 466 |
+
"fixed80x40",
|
| 467 |
+
"fixed80x48",
|
| 468 |
+
"fixed80x56",
|
| 469 |
+
"fixed80x64",
|
| 470 |
+
"fixed80x72",
|
| 471 |
+
"fixed80x80",
|
| 472 |
+
"fixed80x88",
|
| 473 |
+
"fixed80x96",
|
| 474 |
+
"fixed80x104",
|
| 475 |
+
"fixed80x112",
|
| 476 |
+
"fixed80x120",
|
| 477 |
+
"fixed80x128",
|
| 478 |
+
"fixed80x136",
|
| 479 |
+
"fixed80x144",
|
| 480 |
+
"fixed80x152",
|
| 481 |
+
"fixed80x160",
|
| 482 |
+
"fixed80x168",
|
| 483 |
+
"fixed80x176",
|
| 484 |
+
"fixed88x8",
|
| 485 |
+
"fixed88x16",
|
| 486 |
+
"fixed88x24",
|
| 487 |
+
"fixed88x32",
|
| 488 |
+
"fixed88x40",
|
| 489 |
+
"fixed88x48",
|
| 490 |
+
"fixed88x56",
|
| 491 |
+
"fixed88x64",
|
| 492 |
+
"fixed88x72",
|
| 493 |
+
"fixed88x80",
|
| 494 |
+
"fixed88x88",
|
| 495 |
+
"fixed88x96",
|
| 496 |
+
"fixed88x104",
|
| 497 |
+
"fixed88x112",
|
| 498 |
+
"fixed88x120",
|
| 499 |
+
"fixed88x128",
|
| 500 |
+
"fixed88x136",
|
| 501 |
+
"fixed88x144",
|
| 502 |
+
"fixed88x152",
|
| 503 |
+
"fixed88x160",
|
| 504 |
+
"fixed88x168",
|
| 505 |
+
"fixed96x8",
|
| 506 |
+
"fixed96x16",
|
| 507 |
+
"fixed96x24",
|
| 508 |
+
"fixed96x32",
|
| 509 |
+
"fixed96x40",
|
| 510 |
+
"fixed96x48",
|
| 511 |
+
"fixed96x56",
|
| 512 |
+
"fixed96x64",
|
| 513 |
+
"fixed96x72",
|
| 514 |
+
"fixed96x80",
|
| 515 |
+
"fixed96x88",
|
| 516 |
+
"fixed96x96",
|
| 517 |
+
"fixed96x104",
|
| 518 |
+
"fixed96x112",
|
| 519 |
+
"fixed96x120",
|
| 520 |
+
"fixed96x128",
|
| 521 |
+
"fixed96x136",
|
| 522 |
+
"fixed96x144",
|
| 523 |
+
"fixed96x152",
|
| 524 |
+
"fixed96x160",
|
| 525 |
+
"fixed104x8",
|
| 526 |
+
"fixed104x16",
|
| 527 |
+
"fixed104x24",
|
| 528 |
+
"fixed104x32",
|
| 529 |
+
"fixed104x40",
|
| 530 |
+
"fixed104x48",
|
| 531 |
+
"fixed104x56",
|
| 532 |
+
"fixed104x64",
|
| 533 |
+
"fixed104x72",
|
| 534 |
+
"fixed104x80",
|
| 535 |
+
"fixed104x88",
|
| 536 |
+
"fixed104x96",
|
| 537 |
+
"fixed104x104",
|
| 538 |
+
"fixed104x112",
|
| 539 |
+
"fixed104x120",
|
| 540 |
+
"fixed104x128",
|
| 541 |
+
"fixed104x136",
|
| 542 |
+
"fixed104x144",
|
| 543 |
+
"fixed104x152",
|
| 544 |
+
"fixed112x8",
|
| 545 |
+
"fixed112x16",
|
| 546 |
+
"fixed112x24",
|
| 547 |
+
"fixed112x32",
|
| 548 |
+
"fixed112x40",
|
| 549 |
+
"fixed112x48",
|
| 550 |
+
"fixed112x56",
|
| 551 |
+
"fixed112x64",
|
| 552 |
+
"fixed112x72",
|
| 553 |
+
"fixed112x80",
|
| 554 |
+
"fixed112x88",
|
| 555 |
+
"fixed112x96",
|
| 556 |
+
"fixed112x104",
|
| 557 |
+
"fixed112x112",
|
| 558 |
+
"fixed112x120",
|
| 559 |
+
"fixed112x128",
|
| 560 |
+
"fixed112x136",
|
| 561 |
+
"fixed112x144",
|
| 562 |
+
"fixed120x8",
|
| 563 |
+
"fixed120x16",
|
| 564 |
+
"fixed120x24",
|
| 565 |
+
"fixed120x32",
|
| 566 |
+
"fixed120x40",
|
| 567 |
+
"fixed120x48",
|
| 568 |
+
"fixed120x56",
|
| 569 |
+
"fixed120x64",
|
| 570 |
+
"fixed120x72",
|
| 571 |
+
"fixed120x80",
|
| 572 |
+
"fixed120x88",
|
| 573 |
+
"fixed120x96",
|
| 574 |
+
"fixed120x104",
|
| 575 |
+
"fixed120x112",
|
| 576 |
+
"fixed120x120",
|
| 577 |
+
"fixed120x128",
|
| 578 |
+
"fixed120x136",
|
| 579 |
+
"fixed128x8",
|
| 580 |
+
"fixed128x16",
|
| 581 |
+
"fixed128x24",
|
| 582 |
+
"fixed128x32",
|
| 583 |
+
"fixed128x40",
|
| 584 |
+
"fixed128x48",
|
| 585 |
+
"fixed128x56",
|
| 586 |
+
"fixed128x64",
|
| 587 |
+
"fixed128x72",
|
| 588 |
+
"fixed128x80",
|
| 589 |
+
"fixed128x88",
|
| 590 |
+
"fixed128x96",
|
| 591 |
+
"fixed128x104",
|
| 592 |
+
"fixed128x112",
|
| 593 |
+
"fixed128x120",
|
| 594 |
+
"fixed128x128",
|
| 595 |
+
"fixed136x8",
|
| 596 |
+
"fixed136x16",
|
| 597 |
+
"fixed136x24",
|
| 598 |
+
"fixed136x32",
|
| 599 |
+
"fixed136x40",
|
| 600 |
+
"fixed136x48",
|
| 601 |
+
"fixed136x56",
|
| 602 |
+
"fixed136x64",
|
| 603 |
+
"fixed136x72",
|
| 604 |
+
"fixed136x80",
|
| 605 |
+
"fixed136x88",
|
| 606 |
+
"fixed136x96",
|
| 607 |
+
"fixed136x104",
|
| 608 |
+
"fixed136x112",
|
| 609 |
+
"fixed136x120",
|
| 610 |
+
"fixed144x8",
|
| 611 |
+
"fixed144x16",
|
| 612 |
+
"fixed144x24",
|
| 613 |
+
"fixed144x32",
|
| 614 |
+
"fixed144x40",
|
| 615 |
+
"fixed144x48",
|
| 616 |
+
"fixed144x56",
|
| 617 |
+
"fixed144x64",
|
| 618 |
+
"fixed144x72",
|
| 619 |
+
"fixed144x80",
|
| 620 |
+
"fixed144x88",
|
| 621 |
+
"fixed144x96",
|
| 622 |
+
"fixed144x104",
|
| 623 |
+
"fixed144x112",
|
| 624 |
+
"fixed152x8",
|
| 625 |
+
"fixed152x16",
|
| 626 |
+
"fixed152x24",
|
| 627 |
+
"fixed152x32",
|
| 628 |
+
"fixed152x40",
|
| 629 |
+
"fixed152x48",
|
| 630 |
+
"fixed152x56",
|
| 631 |
+
"fixed152x64",
|
| 632 |
+
"fixed152x72",
|
| 633 |
+
"fixed152x80",
|
| 634 |
+
"fixed152x88",
|
| 635 |
+
"fixed152x96",
|
| 636 |
+
"fixed152x104",
|
| 637 |
+
"fixed160x8",
|
| 638 |
+
"fixed160x16",
|
| 639 |
+
"fixed160x24",
|
| 640 |
+
"fixed160x32",
|
| 641 |
+
"fixed160x40",
|
| 642 |
+
"fixed160x48",
|
| 643 |
+
"fixed160x56",
|
| 644 |
+
"fixed160x64",
|
| 645 |
+
"fixed160x72",
|
| 646 |
+
"fixed160x80",
|
| 647 |
+
"fixed160x88",
|
| 648 |
+
"fixed160x96",
|
| 649 |
+
"fixed168x8",
|
| 650 |
+
"fixed168x16",
|
| 651 |
+
"fixed168x24",
|
| 652 |
+
"fixed168x32",
|
| 653 |
+
"fixed168x40",
|
| 654 |
+
"fixed168x48",
|
| 655 |
+
"fixed168x56",
|
| 656 |
+
"fixed168x64",
|
| 657 |
+
"fixed168x72",
|
| 658 |
+
"fixed168x80",
|
| 659 |
+
"fixed168x88",
|
| 660 |
+
"fixed176x8",
|
| 661 |
+
"fixed176x16",
|
| 662 |
+
"fixed176x24",
|
| 663 |
+
"fixed176x32",
|
| 664 |
+
"fixed176x40",
|
| 665 |
+
"fixed176x48",
|
| 666 |
+
"fixed176x56",
|
| 667 |
+
"fixed176x64",
|
| 668 |
+
"fixed176x72",
|
| 669 |
+
"fixed176x80",
|
| 670 |
+
"fixed184x8",
|
| 671 |
+
"fixed184x16",
|
| 672 |
+
"fixed184x24",
|
| 673 |
+
"fixed184x32",
|
| 674 |
+
"fixed184x40",
|
| 675 |
+
"fixed184x48",
|
| 676 |
+
"fixed184x56",
|
| 677 |
+
"fixed184x64",
|
| 678 |
+
"fixed184x72",
|
| 679 |
+
"fixed192x8",
|
| 680 |
+
"fixed192x16",
|
| 681 |
+
"fixed192x24",
|
| 682 |
+
"fixed192x32",
|
| 683 |
+
"fixed192x40",
|
| 684 |
+
"fixed192x48",
|
| 685 |
+
"fixed192x56",
|
| 686 |
+
"fixed192x64",
|
| 687 |
+
"fixed200x8",
|
| 688 |
+
"fixed200x16",
|
| 689 |
+
"fixed200x24",
|
| 690 |
+
"fixed200x32",
|
| 691 |
+
"fixed200x40",
|
| 692 |
+
"fixed200x48",
|
| 693 |
+
"fixed200x56",
|
| 694 |
+
"fixed208x8",
|
| 695 |
+
"fixed208x16",
|
| 696 |
+
"fixed208x24",
|
| 697 |
+
"fixed208x32",
|
| 698 |
+
"fixed208x40",
|
| 699 |
+
"fixed208x48",
|
| 700 |
+
"fixed216x8",
|
| 701 |
+
"fixed216x16",
|
| 702 |
+
"fixed216x24",
|
| 703 |
+
"fixed216x32",
|
| 704 |
+
"fixed216x40",
|
| 705 |
+
"fixed224x8",
|
| 706 |
+
"fixed224x16",
|
| 707 |
+
"fixed224x24",
|
| 708 |
+
"fixed224x32",
|
| 709 |
+
"fixed232x8",
|
| 710 |
+
"fixed232x16",
|
| 711 |
+
"fixed232x24",
|
| 712 |
+
"fixed240x8",
|
| 713 |
+
"fixed240x16",
|
| 714 |
+
"fixed248x8",
|
| 715 |
+
//All ufixed
|
| 716 |
+
"ufixed",
|
| 717 |
+
"ufixed0x8",
|
| 718 |
+
"ufixed0x16",
|
| 719 |
+
"ufixed0x24",
|
| 720 |
+
"ufixed0x32",
|
| 721 |
+
"ufixed0x40",
|
| 722 |
+
"ufixed0x48",
|
| 723 |
+
"ufixed0x56",
|
| 724 |
+
"ufixed0x64",
|
| 725 |
+
"ufixed0x72",
|
| 726 |
+
"ufixed0x80",
|
| 727 |
+
"ufixed0x88",
|
| 728 |
+
"ufixed0x96",
|
| 729 |
+
"ufixed0x104",
|
| 730 |
+
"ufixed0x112",
|
| 731 |
+
"ufixed0x120",
|
| 732 |
+
"ufixed0x128",
|
| 733 |
+
"ufixed0x136",
|
| 734 |
+
"ufixed0x144",
|
| 735 |
+
"ufixed0x152",
|
| 736 |
+
"ufixed0x160",
|
| 737 |
+
"ufixed0x168",
|
| 738 |
+
"ufixed0x176",
|
| 739 |
+
"ufixed0x184",
|
| 740 |
+
"ufixed0x192",
|
| 741 |
+
"ufixed0x200",
|
| 742 |
+
"ufixed0x208",
|
| 743 |
+
"ufixed0x216",
|
| 744 |
+
"ufixed0x224",
|
| 745 |
+
"ufixed0x232",
|
| 746 |
+
"ufixed0x240",
|
| 747 |
+
"ufixed0x248",
|
| 748 |
+
"ufixed0x256",
|
| 749 |
+
"ufixed8x8",
|
| 750 |
+
"ufixed8x16",
|
| 751 |
+
"ufixed8x24",
|
| 752 |
+
"ufixed8x32",
|
| 753 |
+
"ufixed8x40",
|
| 754 |
+
"ufixed8x48",
|
| 755 |
+
"ufixed8x56",
|
| 756 |
+
"ufixed8x64",
|
| 757 |
+
"ufixed8x72",
|
| 758 |
+
"ufixed8x80",
|
| 759 |
+
"ufixed8x88",
|
| 760 |
+
"ufixed8x96",
|
| 761 |
+
"ufixed8x104",
|
| 762 |
+
"ufixed8x112",
|
| 763 |
+
"ufixed8x120",
|
| 764 |
+
"ufixed8x128",
|
| 765 |
+
"ufixed8x136",
|
| 766 |
+
"ufixed8x144",
|
| 767 |
+
"ufixed8x152",
|
| 768 |
+
"ufixed8x160",
|
| 769 |
+
"ufixed8x168",
|
| 770 |
+
"ufixed8x176",
|
| 771 |
+
"ufixed8x184",
|
| 772 |
+
"ufixed8x192",
|
| 773 |
+
"ufixed8x200",
|
| 774 |
+
"ufixed8x208",
|
| 775 |
+
"ufixed8x216",
|
| 776 |
+
"ufixed8x224",
|
| 777 |
+
"ufixed8x232",
|
| 778 |
+
"ufixed8x240",
|
| 779 |
+
"ufixed8x248",
|
| 780 |
+
"ufixed16x8",
|
| 781 |
+
"ufixed16x16",
|
| 782 |
+
"ufixed16x24",
|
| 783 |
+
"ufixed16x32",
|
| 784 |
+
"ufixed16x40",
|
| 785 |
+
"ufixed16x48",
|
| 786 |
+
"ufixed16x56",
|
| 787 |
+
"ufixed16x64",
|
| 788 |
+
"ufixed16x72",
|
| 789 |
+
"ufixed16x80",
|
| 790 |
+
"ufixed16x88",
|
| 791 |
+
"ufixed16x96",
|
| 792 |
+
"ufixed16x104",
|
| 793 |
+
"ufixed16x112",
|
| 794 |
+
"ufixed16x120",
|
| 795 |
+
"ufixed16x128",
|
| 796 |
+
"ufixed16x136",
|
| 797 |
+
"ufixed16x144",
|
| 798 |
+
"ufixed16x152",
|
| 799 |
+
"ufixed16x160",
|
| 800 |
+
"ufixed16x168",
|
| 801 |
+
"ufixed16x176",
|
| 802 |
+
"ufixed16x184",
|
| 803 |
+
"ufixed16x192",
|
| 804 |
+
"ufixed16x200",
|
| 805 |
+
"ufixed16x208",
|
| 806 |
+
"ufixed16x216",
|
| 807 |
+
"ufixed16x224",
|
| 808 |
+
"ufixed16x232",
|
| 809 |
+
"ufixed16x240",
|
| 810 |
+
"ufixed24x8",
|
| 811 |
+
"ufixed24x16",
|
| 812 |
+
"ufixed24x24",
|
| 813 |
+
"ufixed24x32",
|
| 814 |
+
"ufixed24x40",
|
| 815 |
+
"ufixed24x48",
|
| 816 |
+
"ufixed24x56",
|
| 817 |
+
"ufixed24x64",
|
| 818 |
+
"ufixed24x72",
|
| 819 |
+
"ufixed24x80",
|
| 820 |
+
"ufixed24x88",
|
| 821 |
+
"ufixed24x96",
|
| 822 |
+
"ufixed24x104",
|
| 823 |
+
"ufixed24x112",
|
| 824 |
+
"ufixed24x120",
|
| 825 |
+
"ufixed24x128",
|
| 826 |
+
"ufixed24x136",
|
| 827 |
+
"ufixed24x144",
|
| 828 |
+
"ufixed24x152",
|
| 829 |
+
"ufixed24x160",
|
| 830 |
+
"ufixed24x168",
|
| 831 |
+
"ufixed24x176",
|
| 832 |
+
"ufixed24x184",
|
| 833 |
+
"ufixed24x192",
|
| 834 |
+
"ufixed24x200",
|
| 835 |
+
"ufixed24x208",
|
| 836 |
+
"ufixed24x216",
|
| 837 |
+
"ufixed24x224",
|
| 838 |
+
"ufixed24x232",
|
| 839 |
+
"ufixed32x8",
|
| 840 |
+
"ufixed32x16",
|
| 841 |
+
"ufixed32x24",
|
| 842 |
+
"ufixed32x32",
|
| 843 |
+
"ufixed32x40",
|
| 844 |
+
"ufixed32x48",
|
| 845 |
+
"ufixed32x56",
|
| 846 |
+
"ufixed32x64",
|
| 847 |
+
"ufixed32x72",
|
| 848 |
+
"ufixed32x80",
|
| 849 |
+
"ufixed32x88",
|
| 850 |
+
"ufixed32x96",
|
| 851 |
+
"ufixed32x104",
|
| 852 |
+
"ufixed32x112",
|
| 853 |
+
"ufixed32x120",
|
| 854 |
+
"ufixed32x128",
|
| 855 |
+
"ufixed32x136",
|
| 856 |
+
"ufixed32x144",
|
| 857 |
+
"ufixed32x152",
|
| 858 |
+
"ufixed32x160",
|
| 859 |
+
"ufixed32x168",
|
| 860 |
+
"ufixed32x176",
|
| 861 |
+
"ufixed32x184",
|
| 862 |
+
"ufixed32x192",
|
| 863 |
+
"ufixed32x200",
|
| 864 |
+
"ufixed32x208",
|
| 865 |
+
"ufixed32x216",
|
| 866 |
+
"ufixed32x224",
|
| 867 |
+
"ufixed40x8",
|
| 868 |
+
"ufixed40x16",
|
| 869 |
+
"ufixed40x24",
|
| 870 |
+
"ufixed40x32",
|
| 871 |
+
"ufixed40x40",
|
| 872 |
+
"ufixed40x48",
|
| 873 |
+
"ufixed40x56",
|
| 874 |
+
"ufixed40x64",
|
| 875 |
+
"ufixed40x72",
|
| 876 |
+
"ufixed40x80",
|
| 877 |
+
"ufixed40x88",
|
| 878 |
+
"ufixed40x96",
|
| 879 |
+
"ufixed40x104",
|
| 880 |
+
"ufixed40x112",
|
| 881 |
+
"ufixed40x120",
|
| 882 |
+
"ufixed40x128",
|
| 883 |
+
"ufixed40x136",
|
| 884 |
+
"ufixed40x144",
|
| 885 |
+
"ufixed40x152",
|
| 886 |
+
"ufixed40x160",
|
| 887 |
+
"ufixed40x168",
|
| 888 |
+
"ufixed40x176",
|
| 889 |
+
"ufixed40x184",
|
| 890 |
+
"ufixed40x192",
|
| 891 |
+
"ufixed40x200",
|
| 892 |
+
"ufixed40x208",
|
| 893 |
+
"ufixed40x216",
|
| 894 |
+
"ufixed48x8",
|
| 895 |
+
"ufixed48x16",
|
| 896 |
+
"ufixed48x24",
|
| 897 |
+
"ufixed48x32",
|
| 898 |
+
"ufixed48x40",
|
| 899 |
+
"ufixed48x48",
|
| 900 |
+
"ufixed48x56",
|
| 901 |
+
"ufixed48x64",
|
| 902 |
+
"ufixed48x72",
|
| 903 |
+
"ufixed48x80",
|
| 904 |
+
"ufixed48x88",
|
| 905 |
+
"ufixed48x96",
|
| 906 |
+
"ufixed48x104",
|
| 907 |
+
"ufixed48x112",
|
| 908 |
+
"ufixed48x120",
|
| 909 |
+
"ufixed48x128",
|
| 910 |
+
"ufixed48x136",
|
| 911 |
+
"ufixed48x144",
|
| 912 |
+
"ufixed48x152",
|
| 913 |
+
"ufixed48x160",
|
| 914 |
+
"ufixed48x168",
|
| 915 |
+
"ufixed48x176",
|
| 916 |
+
"ufixed48x184",
|
| 917 |
+
"ufixed48x192",
|
| 918 |
+
"ufixed48x200",
|
| 919 |
+
"ufixed48x208",
|
| 920 |
+
"ufixed56x8",
|
| 921 |
+
"ufixed56x16",
|
| 922 |
+
"ufixed56x24",
|
| 923 |
+
"ufixed56x32",
|
| 924 |
+
"ufixed56x40",
|
| 925 |
+
"ufixed56x48",
|
| 926 |
+
"ufixed56x56",
|
| 927 |
+
"ufixed56x64",
|
| 928 |
+
"ufixed56x72",
|
| 929 |
+
"ufixed56x80",
|
| 930 |
+
"ufixed56x88",
|
| 931 |
+
"ufixed56x96",
|
| 932 |
+
"ufixed56x104",
|
| 933 |
+
"ufixed56x112",
|
| 934 |
+
"ufixed56x120",
|
| 935 |
+
"ufixed56x128",
|
| 936 |
+
"ufixed56x136",
|
| 937 |
+
"ufixed56x144",
|
| 938 |
+
"ufixed56x152",
|
| 939 |
+
"ufixed56x160",
|
| 940 |
+
"ufixed56x168",
|
| 941 |
+
"ufixed56x176",
|
| 942 |
+
"ufixed56x184",
|
| 943 |
+
"ufixed56x192",
|
| 944 |
+
"ufixed56x200",
|
| 945 |
+
"ufixed64x8",
|
| 946 |
+
"ufixed64x16",
|
| 947 |
+
"ufixed64x24",
|
| 948 |
+
"ufixed64x32",
|
| 949 |
+
"ufixed64x40",
|
| 950 |
+
"ufixed64x48",
|
| 951 |
+
"ufixed64x56",
|
| 952 |
+
"ufixed64x64",
|
| 953 |
+
"ufixed64x72",
|
| 954 |
+
"ufixed64x80",
|
| 955 |
+
"ufixed64x88",
|
| 956 |
+
"ufixed64x96",
|
| 957 |
+
"ufixed64x104",
|
| 958 |
+
"ufixed64x112",
|
| 959 |
+
"ufixed64x120",
|
| 960 |
+
"ufixed64x128",
|
| 961 |
+
"ufixed64x136",
|
| 962 |
+
"ufixed64x144",
|
| 963 |
+
"ufixed64x152",
|
| 964 |
+
"ufixed64x160",
|
| 965 |
+
"ufixed64x168",
|
| 966 |
+
"ufixed64x176",
|
| 967 |
+
"ufixed64x184",
|
| 968 |
+
"ufixed64x192",
|
| 969 |
+
"ufixed72x8",
|
| 970 |
+
"ufixed72x16",
|
| 971 |
+
"ufixed72x24",
|
| 972 |
+
"ufixed72x32",
|
| 973 |
+
"ufixed72x40",
|
| 974 |
+
"ufixed72x48",
|
| 975 |
+
"ufixed72x56",
|
| 976 |
+
"ufixed72x64",
|
| 977 |
+
"ufixed72x72",
|
| 978 |
+
"ufixed72x80",
|
| 979 |
+
"ufixed72x88",
|
| 980 |
+
"ufixed72x96",
|
| 981 |
+
"ufixed72x104",
|
| 982 |
+
"ufixed72x112",
|
| 983 |
+
"ufixed72x120",
|
| 984 |
+
"ufixed72x128",
|
| 985 |
+
"ufixed72x136",
|
| 986 |
+
"ufixed72x144",
|
| 987 |
+
"ufixed72x152",
|
| 988 |
+
"ufixed72x160",
|
| 989 |
+
"ufixed72x168",
|
| 990 |
+
"ufixed72x176",
|
| 991 |
+
"ufixed72x184",
|
| 992 |
+
"ufixed80x8",
|
| 993 |
+
"ufixed80x16",
|
| 994 |
+
"ufixed80x24",
|
| 995 |
+
"ufixed80x32",
|
| 996 |
+
"ufixed80x40",
|
| 997 |
+
"ufixed80x48",
|
| 998 |
+
"ufixed80x56",
|
| 999 |
+
"ufixed80x64",
|
| 1000 |
+
"ufixed80x72",
|
| 1001 |
+
"ufixed80x80",
|
| 1002 |
+
"ufixed80x88",
|
| 1003 |
+
"ufixed80x96",
|
| 1004 |
+
"ufixed80x104",
|
| 1005 |
+
"ufixed80x112",
|
| 1006 |
+
"ufixed80x120",
|
| 1007 |
+
"ufixed80x128",
|
| 1008 |
+
"ufixed80x136",
|
| 1009 |
+
"ufixed80x144",
|
| 1010 |
+
"ufixed80x152",
|
| 1011 |
+
"ufixed80x160",
|
| 1012 |
+
"ufixed80x168",
|
| 1013 |
+
"ufixed80x176",
|
| 1014 |
+
"ufixed88x8",
|
| 1015 |
+
"ufixed88x16",
|
| 1016 |
+
"ufixed88x24",
|
| 1017 |
+
"ufixed88x32",
|
| 1018 |
+
"ufixed88x40",
|
| 1019 |
+
"ufixed88x48",
|
| 1020 |
+
"ufixed88x56",
|
| 1021 |
+
"ufixed88x64",
|
| 1022 |
+
"ufixed88x72",
|
| 1023 |
+
"ufixed88x80",
|
| 1024 |
+
"ufixed88x88",
|
| 1025 |
+
"ufixed88x96",
|
| 1026 |
+
"ufixed88x104",
|
| 1027 |
+
"ufixed88x112",
|
| 1028 |
+
"ufixed88x120",
|
| 1029 |
+
"ufixed88x128",
|
| 1030 |
+
"ufixed88x136",
|
| 1031 |
+
"ufixed88x144",
|
| 1032 |
+
"ufixed88x152",
|
| 1033 |
+
"ufixed88x160",
|
| 1034 |
+
"ufixed88x168",
|
| 1035 |
+
"ufixed96x8",
|
| 1036 |
+
"ufixed96x16",
|
| 1037 |
+
"ufixed96x24",
|
| 1038 |
+
"ufixed96x32",
|
| 1039 |
+
"ufixed96x40",
|
| 1040 |
+
"ufixed96x48",
|
| 1041 |
+
"ufixed96x56",
|
| 1042 |
+
"ufixed96x64",
|
| 1043 |
+
"ufixed96x72",
|
| 1044 |
+
"ufixed96x80",
|
| 1045 |
+
"ufixed96x88",
|
| 1046 |
+
"ufixed96x96",
|
| 1047 |
+
"ufixed96x104",
|
| 1048 |
+
"ufixed96x112",
|
| 1049 |
+
"ufixed96x120",
|
| 1050 |
+
"ufixed96x128",
|
| 1051 |
+
"ufixed96x136",
|
| 1052 |
+
"ufixed96x144",
|
| 1053 |
+
"ufixed96x152",
|
| 1054 |
+
"ufixed96x160",
|
| 1055 |
+
"ufixed104x8",
|
| 1056 |
+
"ufixed104x16",
|
| 1057 |
+
"ufixed104x24",
|
| 1058 |
+
"ufixed104x32",
|
| 1059 |
+
"ufixed104x40",
|
| 1060 |
+
"ufixed104x48",
|
| 1061 |
+
"ufixed104x56",
|
| 1062 |
+
"ufixed104x64",
|
| 1063 |
+
"ufixed104x72",
|
| 1064 |
+
"ufixed104x80",
|
| 1065 |
+
"ufixed104x88",
|
| 1066 |
+
"ufixed104x96",
|
| 1067 |
+
"ufixed104x104",
|
| 1068 |
+
"ufixed104x112",
|
| 1069 |
+
"ufixed104x120",
|
| 1070 |
+
"ufixed104x128",
|
| 1071 |
+
"ufixed104x136",
|
| 1072 |
+
"ufixed104x144",
|
| 1073 |
+
"ufixed104x152",
|
| 1074 |
+
"ufixed112x8",
|
| 1075 |
+
"ufixed112x16",
|
| 1076 |
+
"ufixed112x24",
|
| 1077 |
+
"ufixed112x32",
|
| 1078 |
+
"ufixed112x40",
|
| 1079 |
+
"ufixed112x48",
|
| 1080 |
+
"ufixed112x56",
|
| 1081 |
+
"ufixed112x64",
|
| 1082 |
+
"ufixed112x72",
|
| 1083 |
+
"ufixed112x80",
|
| 1084 |
+
"ufixed112x88",
|
| 1085 |
+
"ufixed112x96",
|
| 1086 |
+
"ufixed112x104",
|
| 1087 |
+
"ufixed112x112",
|
| 1088 |
+
"ufixed112x120",
|
| 1089 |
+
"ufixed112x128",
|
| 1090 |
+
"ufixed112x136",
|
| 1091 |
+
"ufixed112x144",
|
| 1092 |
+
"ufixed120x8",
|
| 1093 |
+
"ufixed120x16",
|
| 1094 |
+
"ufixed120x24",
|
| 1095 |
+
"ufixed120x32",
|
| 1096 |
+
"ufixed120x40",
|
| 1097 |
+
"ufixed120x48",
|
| 1098 |
+
"ufixed120x56",
|
| 1099 |
+
"ufixed120x64",
|
| 1100 |
+
"ufixed120x72",
|
| 1101 |
+
"ufixed120x80",
|
| 1102 |
+
"ufixed120x88",
|
| 1103 |
+
"ufixed120x96",
|
| 1104 |
+
"ufixed120x104",
|
| 1105 |
+
"ufixed120x112",
|
| 1106 |
+
"ufixed120x120",
|
| 1107 |
+
"ufixed120x128",
|
| 1108 |
+
"ufixed120x136",
|
| 1109 |
+
"ufixed128x8",
|
| 1110 |
+
"ufixed128x16",
|
| 1111 |
+
"ufixed128x24",
|
| 1112 |
+
"ufixed128x32",
|
| 1113 |
+
"ufixed128x40",
|
| 1114 |
+
"ufixed128x48",
|
| 1115 |
+
"ufixed128x56",
|
| 1116 |
+
"ufixed128x64",
|
| 1117 |
+
"ufixed128x72",
|
| 1118 |
+
"ufixed128x80",
|
| 1119 |
+
"ufixed128x88",
|
| 1120 |
+
"ufixed128x96",
|
| 1121 |
+
"ufixed128x104",
|
| 1122 |
+
"ufixed128x112",
|
| 1123 |
+
"ufixed128x120",
|
| 1124 |
+
"ufixed128x128",
|
| 1125 |
+
"ufixed136x8",
|
| 1126 |
+
"ufixed136x16",
|
| 1127 |
+
"ufixed136x24",
|
| 1128 |
+
"ufixed136x32",
|
| 1129 |
+
"ufixed136x40",
|
| 1130 |
+
"ufixed136x48",
|
| 1131 |
+
"ufixed136x56",
|
| 1132 |
+
"ufixed136x64",
|
| 1133 |
+
"ufixed136x72",
|
| 1134 |
+
"ufixed136x80",
|
| 1135 |
+
"ufixed136x88",
|
| 1136 |
+
"ufixed136x96",
|
| 1137 |
+
"ufixed136x104",
|
| 1138 |
+
"ufixed136x112",
|
| 1139 |
+
"ufixed136x120",
|
| 1140 |
+
"ufixed144x8",
|
| 1141 |
+
"ufixed144x16",
|
| 1142 |
+
"ufixed144x24",
|
| 1143 |
+
"ufixed144x32",
|
| 1144 |
+
"ufixed144x40",
|
| 1145 |
+
"ufixed144x48",
|
| 1146 |
+
"ufixed144x56",
|
| 1147 |
+
"ufixed144x64",
|
| 1148 |
+
"ufixed144x72",
|
| 1149 |
+
"ufixed144x80",
|
| 1150 |
+
"ufixed144x88",
|
| 1151 |
+
"ufixed144x96",
|
| 1152 |
+
"ufixed144x104",
|
| 1153 |
+
"ufixed144x112",
|
| 1154 |
+
"ufixed152x8",
|
| 1155 |
+
"ufixed152x16",
|
| 1156 |
+
"ufixed152x24",
|
| 1157 |
+
"ufixed152x32",
|
| 1158 |
+
"ufixed152x40",
|
| 1159 |
+
"ufixed152x48",
|
| 1160 |
+
"ufixed152x56",
|
| 1161 |
+
"ufixed152x64",
|
| 1162 |
+
"ufixed152x72",
|
| 1163 |
+
"ufixed152x80",
|
| 1164 |
+
"ufixed152x88",
|
| 1165 |
+
"ufixed152x96",
|
| 1166 |
+
"ufixed152x104",
|
| 1167 |
+
"ufixed160x8",
|
| 1168 |
+
"ufixed160x16",
|
| 1169 |
+
"ufixed160x24",
|
| 1170 |
+
"ufixed160x32",
|
| 1171 |
+
"ufixed160x40",
|
| 1172 |
+
"ufixed160x48",
|
| 1173 |
+
"ufixed160x56",
|
| 1174 |
+
"ufixed160x64",
|
| 1175 |
+
"ufixed160x72",
|
| 1176 |
+
"ufixed160x80",
|
| 1177 |
+
"ufixed160x88",
|
| 1178 |
+
"ufixed160x96",
|
| 1179 |
+
"ufixed168x8",
|
| 1180 |
+
"ufixed168x16",
|
| 1181 |
+
"ufixed168x24",
|
| 1182 |
+
"ufixed168x32",
|
| 1183 |
+
"ufixed168x40",
|
| 1184 |
+
"ufixed168x48",
|
| 1185 |
+
"ufixed168x56",
|
| 1186 |
+
"ufixed168x64",
|
| 1187 |
+
"ufixed168x72",
|
| 1188 |
+
"ufixed168x80",
|
| 1189 |
+
"ufixed168x88",
|
| 1190 |
+
"ufixed176x8",
|
| 1191 |
+
"ufixed176x16",
|
| 1192 |
+
"ufixed176x24",
|
| 1193 |
+
"ufixed176x32",
|
| 1194 |
+
"ufixed176x40",
|
| 1195 |
+
"ufixed176x48",
|
| 1196 |
+
"ufixed176x56",
|
| 1197 |
+
"ufixed176x64",
|
| 1198 |
+
"ufixed176x72",
|
| 1199 |
+
"ufixed176x80",
|
| 1200 |
+
"ufixed184x8",
|
| 1201 |
+
"ufixed184x16",
|
| 1202 |
+
"ufixed184x24",
|
| 1203 |
+
"ufixed184x32",
|
| 1204 |
+
"ufixed184x40",
|
| 1205 |
+
"ufixed184x48",
|
| 1206 |
+
"ufixed184x56",
|
| 1207 |
+
"ufixed184x64",
|
| 1208 |
+
"ufixed184x72",
|
| 1209 |
+
"ufixed192x8",
|
| 1210 |
+
"ufixed192x16",
|
| 1211 |
+
"ufixed192x24",
|
| 1212 |
+
"ufixed192x32",
|
| 1213 |
+
"ufixed192x40",
|
| 1214 |
+
"ufixed192x48",
|
| 1215 |
+
"ufixed192x56",
|
| 1216 |
+
"ufixed192x64",
|
| 1217 |
+
"ufixed200x8",
|
| 1218 |
+
"ufixed200x16",
|
| 1219 |
+
"ufixed200x24",
|
| 1220 |
+
"ufixed200x32",
|
| 1221 |
+
"ufixed200x40",
|
| 1222 |
+
"ufixed200x48",
|
| 1223 |
+
"ufixed200x56",
|
| 1224 |
+
"ufixed208x8",
|
| 1225 |
+
"ufixed208x16",
|
| 1226 |
+
"ufixed208x24",
|
| 1227 |
+
"ufixed208x32",
|
| 1228 |
+
"ufixed208x40",
|
| 1229 |
+
"ufixed208x48",
|
| 1230 |
+
"ufixed216x8",
|
| 1231 |
+
"ufixed216x16",
|
| 1232 |
+
"ufixed216x24",
|
| 1233 |
+
"ufixed216x32",
|
| 1234 |
+
"ufixed216x40",
|
| 1235 |
+
"ufixed224x8",
|
| 1236 |
+
"ufixed224x16",
|
| 1237 |
+
"ufixed224x24",
|
| 1238 |
+
"ufixed224x32",
|
| 1239 |
+
"ufixed232x8",
|
| 1240 |
+
"ufixed232x16",
|
| 1241 |
+
"ufixed232x24",
|
| 1242 |
+
"ufixed240x8",
|
| 1243 |
+
"ufixed240x16",
|
| 1244 |
+
"ufixed248x8",
|
| 1245 |
+
"event",
|
| 1246 |
+
"enum",
|
| 1247 |
+
"let",
|
| 1248 |
+
"mapping",
|
| 1249 |
+
"private",
|
| 1250 |
+
"public",
|
| 1251 |
+
"external",
|
| 1252 |
+
"inherited",
|
| 1253 |
+
"payable",
|
| 1254 |
+
"true",
|
| 1255 |
+
"false",
|
| 1256 |
+
"var",
|
| 1257 |
+
"import",
|
| 1258 |
+
"constant",
|
| 1259 |
+
"if",
|
| 1260 |
+
"else",
|
| 1261 |
+
"for",
|
| 1262 |
+
"else",
|
| 1263 |
+
"for",
|
| 1264 |
+
"while",
|
| 1265 |
+
"do",
|
| 1266 |
+
"break",
|
| 1267 |
+
"continue",
|
| 1268 |
+
"throw",
|
| 1269 |
+
"returns",
|
| 1270 |
+
"return",
|
| 1271 |
+
"suicide",
|
| 1272 |
+
"new",
|
| 1273 |
+
"is",
|
| 1274 |
+
"this",
|
| 1275 |
+
"super"
|
| 1276 |
+
],
|
| 1277 |
+
operators: [
|
| 1278 |
+
"=",
|
| 1279 |
+
">",
|
| 1280 |
+
"<",
|
| 1281 |
+
"!",
|
| 1282 |
+
"~",
|
| 1283 |
+
"?",
|
| 1284 |
+
":",
|
| 1285 |
+
"==",
|
| 1286 |
+
"<=",
|
| 1287 |
+
">=",
|
| 1288 |
+
"!=",
|
| 1289 |
+
"&&",
|
| 1290 |
+
"||",
|
| 1291 |
+
"++",
|
| 1292 |
+
"--",
|
| 1293 |
+
"+",
|
| 1294 |
+
"-",
|
| 1295 |
+
"*",
|
| 1296 |
+
"/",
|
| 1297 |
+
"&",
|
| 1298 |
+
"|",
|
| 1299 |
+
"^",
|
| 1300 |
+
"%",
|
| 1301 |
+
"<<",
|
| 1302 |
+
">>",
|
| 1303 |
+
">>>",
|
| 1304 |
+
"+=",
|
| 1305 |
+
"-=",
|
| 1306 |
+
"*=",
|
| 1307 |
+
"/=",
|
| 1308 |
+
"&=",
|
| 1309 |
+
"|=",
|
| 1310 |
+
"^=",
|
| 1311 |
+
"%=",
|
| 1312 |
+
"<<=",
|
| 1313 |
+
">>=",
|
| 1314 |
+
">>>="
|
| 1315 |
+
],
|
| 1316 |
+
// we include these common regular expressions
|
| 1317 |
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
| 1318 |
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 1319 |
+
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
| 1320 |
+
floatsuffix: /[fFlL]?/,
|
| 1321 |
+
// The main tokenizer for our languages
|
| 1322 |
+
tokenizer: {
|
| 1323 |
+
root: [
|
| 1324 |
+
// identifiers and keywords
|
| 1325 |
+
[
|
| 1326 |
+
/[a-zA-Z_]\w*/,
|
| 1327 |
+
{
|
| 1328 |
+
cases: {
|
| 1329 |
+
"@keywords": { token: "keyword.$0" },
|
| 1330 |
+
"@default": "identifier"
|
| 1331 |
+
}
|
| 1332 |
+
}
|
| 1333 |
+
],
|
| 1334 |
+
// whitespace
|
| 1335 |
+
{ include: "@whitespace" },
|
| 1336 |
+
// [[ attributes ]].
|
| 1337 |
+
[/\[\[.*\]\]/, "annotation"],
|
| 1338 |
+
// Preprocessor directive
|
| 1339 |
+
[/^\s*#\w+/, "keyword"],
|
| 1340 |
+
//DataTypes
|
| 1341 |
+
[/int\d*/, "keyword"],
|
| 1342 |
+
// delimiters and operators
|
| 1343 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 1344 |
+
[/[<>](?!@symbols)/, "@brackets"],
|
| 1345 |
+
[
|
| 1346 |
+
/@symbols/,
|
| 1347 |
+
{
|
| 1348 |
+
cases: {
|
| 1349 |
+
"@operators": "delimiter",
|
| 1350 |
+
"@default": ""
|
| 1351 |
+
}
|
| 1352 |
+
}
|
| 1353 |
+
],
|
| 1354 |
+
// numbers
|
| 1355 |
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
| 1356 |
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
| 1357 |
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
| 1358 |
+
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
| 1359 |
+
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
| 1360 |
+
[/\d[\d']*\d(@integersuffix)/, "number"],
|
| 1361 |
+
[/\d(@integersuffix)/, "number"],
|
| 1362 |
+
// delimiter: after number because of .\d floats
|
| 1363 |
+
[/[;,.]/, "delimiter"],
|
| 1364 |
+
// strings
|
| 1365 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 1366 |
+
// non-teminated string
|
| 1367 |
+
[/"/, "string", "@string"],
|
| 1368 |
+
// characters
|
| 1369 |
+
[/'[^\\']'/, "string"],
|
| 1370 |
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
| 1371 |
+
[/'/, "string.invalid"]
|
| 1372 |
+
],
|
| 1373 |
+
whitespace: [
|
| 1374 |
+
[/[ \t\r\n]+/, ""],
|
| 1375 |
+
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
| 1376 |
+
[/\/\*/, "comment", "@comment"],
|
| 1377 |
+
[/\/\/.*$/, "comment"]
|
| 1378 |
+
],
|
| 1379 |
+
comment: [
|
| 1380 |
+
[/[^\/*]+/, "comment"],
|
| 1381 |
+
[/\*\//, "comment", "@pop"],
|
| 1382 |
+
[/[\/*]/, "comment"]
|
| 1383 |
+
],
|
| 1384 |
+
//Identical copy of comment above, except for the addition of .doc
|
| 1385 |
+
doccomment: [
|
| 1386 |
+
[/[^\/*]+/, "comment.doc"],
|
| 1387 |
+
[/\*\//, "comment.doc", "@pop"],
|
| 1388 |
+
[/[\/*]/, "comment.doc"]
|
| 1389 |
+
],
|
| 1390 |
+
string: [
|
| 1391 |
+
[/[^\\"]+/, "string"],
|
| 1392 |
+
[/@escapes/, "string.escape"],
|
| 1393 |
+
[/\\./, "string.escape.invalid"],
|
| 1394 |
+
[/"/, "string", "@pop"]
|
| 1395 |
+
]
|
| 1396 |
+
}
|
| 1397 |
+
};
|
| 1398 |
+
return __toCommonJS(solidity_exports);
|
| 1399 |
+
})();
|
| 1400 |
+
return moduleExports;
|
| 1401 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sophia/sophia.js
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/sophia/sophia", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/sophia/sophia.ts
|
| 29 |
+
var sophia_exports = {};
|
| 30 |
+
__export(sophia_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "//",
|
| 37 |
+
blockComment: ["/*", "*/"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{", "}"],
|
| 41 |
+
["[", "]"],
|
| 42 |
+
["(", ")"],
|
| 43 |
+
["<", ">"]
|
| 44 |
+
],
|
| 45 |
+
autoClosingPairs: [
|
| 46 |
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
| 47 |
+
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
| 48 |
+
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
| 49 |
+
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
| 50 |
+
]
|
| 51 |
+
};
|
| 52 |
+
var language = {
|
| 53 |
+
defaultToken: "",
|
| 54 |
+
tokenPostfix: ".aes",
|
| 55 |
+
brackets: [
|
| 56 |
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
| 57 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 58 |
+
{ token: "delimiter.square", open: "[", close: "]" },
|
| 59 |
+
{ token: "delimiter.angle", open: "<", close: ">" }
|
| 60 |
+
],
|
| 61 |
+
keywords: [
|
| 62 |
+
// Main keywords
|
| 63 |
+
"contract",
|
| 64 |
+
"library",
|
| 65 |
+
"entrypoint",
|
| 66 |
+
"function",
|
| 67 |
+
"stateful",
|
| 68 |
+
"state",
|
| 69 |
+
"hash",
|
| 70 |
+
"signature",
|
| 71 |
+
"tuple",
|
| 72 |
+
"list",
|
| 73 |
+
"address",
|
| 74 |
+
"string",
|
| 75 |
+
"bool",
|
| 76 |
+
"int",
|
| 77 |
+
"record",
|
| 78 |
+
"datatype",
|
| 79 |
+
"type",
|
| 80 |
+
"option",
|
| 81 |
+
"oracle",
|
| 82 |
+
"oracle_query",
|
| 83 |
+
"Call",
|
| 84 |
+
"Bits",
|
| 85 |
+
"Bytes",
|
| 86 |
+
"Oracle",
|
| 87 |
+
"String",
|
| 88 |
+
"Crypto",
|
| 89 |
+
"Address",
|
| 90 |
+
"Auth",
|
| 91 |
+
"Chain",
|
| 92 |
+
"None",
|
| 93 |
+
"Some",
|
| 94 |
+
"bits",
|
| 95 |
+
"bytes",
|
| 96 |
+
"event",
|
| 97 |
+
"let",
|
| 98 |
+
"map",
|
| 99 |
+
"private",
|
| 100 |
+
"public",
|
| 101 |
+
"true",
|
| 102 |
+
"false",
|
| 103 |
+
"var",
|
| 104 |
+
"if",
|
| 105 |
+
"else",
|
| 106 |
+
"throw"
|
| 107 |
+
],
|
| 108 |
+
operators: [
|
| 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 |
+
// we include these common regular expressions
|
| 149 |
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
| 150 |
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 151 |
+
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
| 152 |
+
floatsuffix: /[fFlL]?/,
|
| 153 |
+
// The main tokenizer for our languages
|
| 154 |
+
tokenizer: {
|
| 155 |
+
root: [
|
| 156 |
+
// identifiers and keywords
|
| 157 |
+
[
|
| 158 |
+
/[a-zA-Z_]\w*/,
|
| 159 |
+
{
|
| 160 |
+
cases: {
|
| 161 |
+
"@keywords": { token: "keyword.$0" },
|
| 162 |
+
"@default": "identifier"
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
],
|
| 166 |
+
// whitespace
|
| 167 |
+
{ include: "@whitespace" },
|
| 168 |
+
// [[ attributes ]].
|
| 169 |
+
[/\[\[.*\]\]/, "annotation"],
|
| 170 |
+
// Preprocessor directive
|
| 171 |
+
[/^\s*#\w+/, "keyword"],
|
| 172 |
+
//DataTypes
|
| 173 |
+
[/int\d*/, "keyword"],
|
| 174 |
+
// delimiters and operators
|
| 175 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 176 |
+
[/[<>](?!@symbols)/, "@brackets"],
|
| 177 |
+
[
|
| 178 |
+
/@symbols/,
|
| 179 |
+
{
|
| 180 |
+
cases: {
|
| 181 |
+
"@operators": "delimiter",
|
| 182 |
+
"@default": ""
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
],
|
| 186 |
+
// numbers
|
| 187 |
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
| 188 |
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
| 189 |
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
| 190 |
+
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
| 191 |
+
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
| 192 |
+
[/\d[\d']*\d(@integersuffix)/, "number"],
|
| 193 |
+
[/\d(@integersuffix)/, "number"],
|
| 194 |
+
// delimiter: after number because of .\d floats
|
| 195 |
+
[/[;,.]/, "delimiter"],
|
| 196 |
+
// strings
|
| 197 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 198 |
+
// non-teminated string
|
| 199 |
+
[/"/, "string", "@string"],
|
| 200 |
+
// characters
|
| 201 |
+
[/'[^\\']'/, "string"],
|
| 202 |
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
| 203 |
+
[/'/, "string.invalid"]
|
| 204 |
+
],
|
| 205 |
+
whitespace: [
|
| 206 |
+
[/[ \t\r\n]+/, ""],
|
| 207 |
+
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
| 208 |
+
[/\/\*/, "comment", "@comment"],
|
| 209 |
+
[/\/\/.*$/, "comment"]
|
| 210 |
+
],
|
| 211 |
+
comment: [
|
| 212 |
+
[/[^\/*]+/, "comment"],
|
| 213 |
+
[/\*\//, "comment", "@pop"],
|
| 214 |
+
[/[\/*]/, "comment"]
|
| 215 |
+
],
|
| 216 |
+
//Identical copy of comment above, except for the addition of .doc
|
| 217 |
+
doccomment: [
|
| 218 |
+
[/[^\/*]+/, "comment.doc"],
|
| 219 |
+
[/\*\//, "comment.doc", "@pop"],
|
| 220 |
+
[/[\/*]/, "comment.doc"]
|
| 221 |
+
],
|
| 222 |
+
string: [
|
| 223 |
+
[/[^\\"]+/, "string"],
|
| 224 |
+
[/@escapes/, "string.escape"],
|
| 225 |
+
[/\\./, "string.escape.invalid"],
|
| 226 |
+
[/"/, "string", "@pop"]
|
| 227 |
+
]
|
| 228 |
+
}
|
| 229 |
+
};
|
| 230 |
+
return __toCommonJS(sophia_exports);
|
| 231 |
+
})();
|
| 232 |
+
return moduleExports;
|
| 233 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sparql/sparql.js
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/sparql/sparql", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/sparql/sparql.ts
|
| 29 |
+
var sparql_exports = {};
|
| 30 |
+
__export(sparql_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "#"
|
| 37 |
+
},
|
| 38 |
+
brackets: [
|
| 39 |
+
["{", "}"],
|
| 40 |
+
["[", "]"],
|
| 41 |
+
["(", ")"]
|
| 42 |
+
],
|
| 43 |
+
autoClosingPairs: [
|
| 44 |
+
{ open: "'", close: "'", notIn: ["string"] },
|
| 45 |
+
{ open: '"', close: '"', notIn: ["string"] },
|
| 46 |
+
{ open: "{", close: "}" },
|
| 47 |
+
{ open: "[", close: "]" },
|
| 48 |
+
{ open: "(", close: ")" }
|
| 49 |
+
]
|
| 50 |
+
};
|
| 51 |
+
var language = {
|
| 52 |
+
defaultToken: "",
|
| 53 |
+
tokenPostfix: ".rq",
|
| 54 |
+
brackets: [
|
| 55 |
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
| 56 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 57 |
+
{ token: "delimiter.square", open: "[", close: "]" },
|
| 58 |
+
{ token: "delimiter.angle", open: "<", close: ">" }
|
| 59 |
+
],
|
| 60 |
+
keywords: [
|
| 61 |
+
"add",
|
| 62 |
+
"as",
|
| 63 |
+
"asc",
|
| 64 |
+
"ask",
|
| 65 |
+
"base",
|
| 66 |
+
"by",
|
| 67 |
+
"clear",
|
| 68 |
+
"construct",
|
| 69 |
+
"copy",
|
| 70 |
+
"create",
|
| 71 |
+
"data",
|
| 72 |
+
"delete",
|
| 73 |
+
"desc",
|
| 74 |
+
"describe",
|
| 75 |
+
"distinct",
|
| 76 |
+
"drop",
|
| 77 |
+
"false",
|
| 78 |
+
"filter",
|
| 79 |
+
"from",
|
| 80 |
+
"graph",
|
| 81 |
+
"group",
|
| 82 |
+
"having",
|
| 83 |
+
"in",
|
| 84 |
+
"insert",
|
| 85 |
+
"limit",
|
| 86 |
+
"load",
|
| 87 |
+
"minus",
|
| 88 |
+
"move",
|
| 89 |
+
"named",
|
| 90 |
+
"not",
|
| 91 |
+
"offset",
|
| 92 |
+
"optional",
|
| 93 |
+
"order",
|
| 94 |
+
"prefix",
|
| 95 |
+
"reduced",
|
| 96 |
+
"select",
|
| 97 |
+
"service",
|
| 98 |
+
"silent",
|
| 99 |
+
"to",
|
| 100 |
+
"true",
|
| 101 |
+
"undef",
|
| 102 |
+
"union",
|
| 103 |
+
"using",
|
| 104 |
+
"values",
|
| 105 |
+
"where",
|
| 106 |
+
"with"
|
| 107 |
+
],
|
| 108 |
+
builtinFunctions: [
|
| 109 |
+
"a",
|
| 110 |
+
"abs",
|
| 111 |
+
"avg",
|
| 112 |
+
"bind",
|
| 113 |
+
"bnode",
|
| 114 |
+
"bound",
|
| 115 |
+
"ceil",
|
| 116 |
+
"coalesce",
|
| 117 |
+
"concat",
|
| 118 |
+
"contains",
|
| 119 |
+
"count",
|
| 120 |
+
"datatype",
|
| 121 |
+
"day",
|
| 122 |
+
"encode_for_uri",
|
| 123 |
+
"exists",
|
| 124 |
+
"floor",
|
| 125 |
+
"group_concat",
|
| 126 |
+
"hours",
|
| 127 |
+
"if",
|
| 128 |
+
"iri",
|
| 129 |
+
"isblank",
|
| 130 |
+
"isiri",
|
| 131 |
+
"isliteral",
|
| 132 |
+
"isnumeric",
|
| 133 |
+
"isuri",
|
| 134 |
+
"lang",
|
| 135 |
+
"langmatches",
|
| 136 |
+
"lcase",
|
| 137 |
+
"max",
|
| 138 |
+
"md5",
|
| 139 |
+
"min",
|
| 140 |
+
"minutes",
|
| 141 |
+
"month",
|
| 142 |
+
"now",
|
| 143 |
+
"rand",
|
| 144 |
+
"regex",
|
| 145 |
+
"replace",
|
| 146 |
+
"round",
|
| 147 |
+
"sameterm",
|
| 148 |
+
"sample",
|
| 149 |
+
"seconds",
|
| 150 |
+
"sha1",
|
| 151 |
+
"sha256",
|
| 152 |
+
"sha384",
|
| 153 |
+
"sha512",
|
| 154 |
+
"str",
|
| 155 |
+
"strafter",
|
| 156 |
+
"strbefore",
|
| 157 |
+
"strdt",
|
| 158 |
+
"strends",
|
| 159 |
+
"strlang",
|
| 160 |
+
"strlen",
|
| 161 |
+
"strstarts",
|
| 162 |
+
"struuid",
|
| 163 |
+
"substr",
|
| 164 |
+
"sum",
|
| 165 |
+
"timezone",
|
| 166 |
+
"tz",
|
| 167 |
+
"ucase",
|
| 168 |
+
"uri",
|
| 169 |
+
"uuid",
|
| 170 |
+
"year"
|
| 171 |
+
],
|
| 172 |
+
// describe tokens
|
| 173 |
+
ignoreCase: true,
|
| 174 |
+
tokenizer: {
|
| 175 |
+
root: [
|
| 176 |
+
// resource indicators
|
| 177 |
+
[/<[^\s\u00a0>]*>?/, "tag"],
|
| 178 |
+
// strings
|
| 179 |
+
{ include: "@strings" },
|
| 180 |
+
// line comment
|
| 181 |
+
[/#.*/, "comment"],
|
| 182 |
+
// special chars with special meaning
|
| 183 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 184 |
+
[/[;,.]/, "delimiter"],
|
| 185 |
+
// (prefixed) name
|
| 186 |
+
[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/, "tag"],
|
| 187 |
+
[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, "tag"],
|
| 188 |
+
// identifiers, builtinFunctions and keywords
|
| 189 |
+
[
|
| 190 |
+
/[$?]?[_\w\d]+/,
|
| 191 |
+
{
|
| 192 |
+
cases: {
|
| 193 |
+
"@keywords": { token: "keyword" },
|
| 194 |
+
"@builtinFunctions": { token: "predefined.sql" },
|
| 195 |
+
"@default": "identifier"
|
| 196 |
+
}
|
| 197 |
+
}
|
| 198 |
+
],
|
| 199 |
+
// operators
|
| 200 |
+
[/\^\^/, "operator.sql"],
|
| 201 |
+
[/\^[*+\-<>=&|^\/!?]*/, "operator.sql"],
|
| 202 |
+
[/[*+\-<>=&|\/!?]/, "operator.sql"],
|
| 203 |
+
// symbol
|
| 204 |
+
[/@[a-z\d\-]*/, "metatag.html"],
|
| 205 |
+
// whitespaces
|
| 206 |
+
[/\s+/, "white"]
|
| 207 |
+
],
|
| 208 |
+
strings: [
|
| 209 |
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
| 210 |
+
// non-terminated single-quoted string
|
| 211 |
+
[/'$/, "string.sql", "@pop"],
|
| 212 |
+
[/'/, "string.sql", "@stringBody"],
|
| 213 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 214 |
+
// non-terminated single-quoted string
|
| 215 |
+
[/"$/, "string.sql", "@pop"],
|
| 216 |
+
[/"/, "string.sql", "@dblStringBody"]
|
| 217 |
+
],
|
| 218 |
+
// single-quoted strings
|
| 219 |
+
stringBody: [
|
| 220 |
+
[/[^\\']+/, "string.sql"],
|
| 221 |
+
[/\\./, "string.escape"],
|
| 222 |
+
[/'/, "string.sql", "@pop"]
|
| 223 |
+
],
|
| 224 |
+
// double-quoted strings
|
| 225 |
+
dblStringBody: [
|
| 226 |
+
[/[^\\"]+/, "string.sql"],
|
| 227 |
+
[/\\./, "string.escape"],
|
| 228 |
+
[/"/, "string.sql", "@pop"]
|
| 229 |
+
]
|
| 230 |
+
}
|
| 231 |
+
};
|
| 232 |
+
return __toCommonJS(sparql_exports);
|
| 233 |
+
})();
|
| 234 |
+
return moduleExports;
|
| 235 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/sql/sql.js
ADDED
|
@@ -0,0 +1,887 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/sql/sql", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/sql/sql.ts
|
| 29 |
+
var sql_exports = {};
|
| 30 |
+
__export(sql_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "--",
|
| 37 |
+
blockComment: ["/*", "*/"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{", "}"],
|
| 41 |
+
["[", "]"],
|
| 42 |
+
["(", ")"]
|
| 43 |
+
],
|
| 44 |
+
autoClosingPairs: [
|
| 45 |
+
{ open: "{", close: "}" },
|
| 46 |
+
{ open: "[", close: "]" },
|
| 47 |
+
{ open: "(", close: ")" },
|
| 48 |
+
{ open: '"', close: '"' },
|
| 49 |
+
{ open: "'", close: "'" }
|
| 50 |
+
],
|
| 51 |
+
surroundingPairs: [
|
| 52 |
+
{ open: "{", close: "}" },
|
| 53 |
+
{ open: "[", close: "]" },
|
| 54 |
+
{ open: "(", close: ")" },
|
| 55 |
+
{ open: '"', close: '"' },
|
| 56 |
+
{ open: "'", close: "'" }
|
| 57 |
+
]
|
| 58 |
+
};
|
| 59 |
+
var language = {
|
| 60 |
+
defaultToken: "",
|
| 61 |
+
tokenPostfix: ".sql",
|
| 62 |
+
ignoreCase: true,
|
| 63 |
+
brackets: [
|
| 64 |
+
{ open: "[", close: "]", token: "delimiter.square" },
|
| 65 |
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
| 66 |
+
],
|
| 67 |
+
keywords: [
|
| 68 |
+
// This list is generated using `keywords.js`
|
| 69 |
+
"ABORT",
|
| 70 |
+
"ABSOLUTE",
|
| 71 |
+
"ACTION",
|
| 72 |
+
"ADA",
|
| 73 |
+
"ADD",
|
| 74 |
+
"AFTER",
|
| 75 |
+
"ALL",
|
| 76 |
+
"ALLOCATE",
|
| 77 |
+
"ALTER",
|
| 78 |
+
"ALWAYS",
|
| 79 |
+
"ANALYZE",
|
| 80 |
+
"AND",
|
| 81 |
+
"ANY",
|
| 82 |
+
"ARE",
|
| 83 |
+
"AS",
|
| 84 |
+
"ASC",
|
| 85 |
+
"ASSERTION",
|
| 86 |
+
"AT",
|
| 87 |
+
"ATTACH",
|
| 88 |
+
"AUTHORIZATION",
|
| 89 |
+
"AUTOINCREMENT",
|
| 90 |
+
"AVG",
|
| 91 |
+
"BACKUP",
|
| 92 |
+
"BEFORE",
|
| 93 |
+
"BEGIN",
|
| 94 |
+
"BETWEEN",
|
| 95 |
+
"BIT",
|
| 96 |
+
"BIT_LENGTH",
|
| 97 |
+
"BOTH",
|
| 98 |
+
"BREAK",
|
| 99 |
+
"BROWSE",
|
| 100 |
+
"BULK",
|
| 101 |
+
"BY",
|
| 102 |
+
"CASCADE",
|
| 103 |
+
"CASCADED",
|
| 104 |
+
"CASE",
|
| 105 |
+
"CAST",
|
| 106 |
+
"CATALOG",
|
| 107 |
+
"CHAR",
|
| 108 |
+
"CHARACTER",
|
| 109 |
+
"CHARACTER_LENGTH",
|
| 110 |
+
"CHAR_LENGTH",
|
| 111 |
+
"CHECK",
|
| 112 |
+
"CHECKPOINT",
|
| 113 |
+
"CLOSE",
|
| 114 |
+
"CLUSTERED",
|
| 115 |
+
"COALESCE",
|
| 116 |
+
"COLLATE",
|
| 117 |
+
"COLLATION",
|
| 118 |
+
"COLUMN",
|
| 119 |
+
"COMMIT",
|
| 120 |
+
"COMPUTE",
|
| 121 |
+
"CONFLICT",
|
| 122 |
+
"CONNECT",
|
| 123 |
+
"CONNECTION",
|
| 124 |
+
"CONSTRAINT",
|
| 125 |
+
"CONSTRAINTS",
|
| 126 |
+
"CONTAINS",
|
| 127 |
+
"CONTAINSTABLE",
|
| 128 |
+
"CONTINUE",
|
| 129 |
+
"CONVERT",
|
| 130 |
+
"CORRESPONDING",
|
| 131 |
+
"COUNT",
|
| 132 |
+
"CREATE",
|
| 133 |
+
"CROSS",
|
| 134 |
+
"CURRENT",
|
| 135 |
+
"CURRENT_DATE",
|
| 136 |
+
"CURRENT_TIME",
|
| 137 |
+
"CURRENT_TIMESTAMP",
|
| 138 |
+
"CURRENT_USER",
|
| 139 |
+
"CURSOR",
|
| 140 |
+
"DATABASE",
|
| 141 |
+
"DATE",
|
| 142 |
+
"DAY",
|
| 143 |
+
"DBCC",
|
| 144 |
+
"DEALLOCATE",
|
| 145 |
+
"DEC",
|
| 146 |
+
"DECIMAL",
|
| 147 |
+
"DECLARE",
|
| 148 |
+
"DEFAULT",
|
| 149 |
+
"DEFERRABLE",
|
| 150 |
+
"DEFERRED",
|
| 151 |
+
"DELETE",
|
| 152 |
+
"DENY",
|
| 153 |
+
"DESC",
|
| 154 |
+
"DESCRIBE",
|
| 155 |
+
"DESCRIPTOR",
|
| 156 |
+
"DETACH",
|
| 157 |
+
"DIAGNOSTICS",
|
| 158 |
+
"DISCONNECT",
|
| 159 |
+
"DISK",
|
| 160 |
+
"DISTINCT",
|
| 161 |
+
"DISTRIBUTED",
|
| 162 |
+
"DO",
|
| 163 |
+
"DOMAIN",
|
| 164 |
+
"DOUBLE",
|
| 165 |
+
"DROP",
|
| 166 |
+
"DUMP",
|
| 167 |
+
"EACH",
|
| 168 |
+
"ELSE",
|
| 169 |
+
"END",
|
| 170 |
+
"END-EXEC",
|
| 171 |
+
"ERRLVL",
|
| 172 |
+
"ESCAPE",
|
| 173 |
+
"EXCEPT",
|
| 174 |
+
"EXCEPTION",
|
| 175 |
+
"EXCLUDE",
|
| 176 |
+
"EXCLUSIVE",
|
| 177 |
+
"EXEC",
|
| 178 |
+
"EXECUTE",
|
| 179 |
+
"EXISTS",
|
| 180 |
+
"EXIT",
|
| 181 |
+
"EXPLAIN",
|
| 182 |
+
"EXTERNAL",
|
| 183 |
+
"EXTRACT",
|
| 184 |
+
"FAIL",
|
| 185 |
+
"FALSE",
|
| 186 |
+
"FETCH",
|
| 187 |
+
"FILE",
|
| 188 |
+
"FILLFACTOR",
|
| 189 |
+
"FILTER",
|
| 190 |
+
"FIRST",
|
| 191 |
+
"FLOAT",
|
| 192 |
+
"FOLLOWING",
|
| 193 |
+
"FOR",
|
| 194 |
+
"FOREIGN",
|
| 195 |
+
"FORTRAN",
|
| 196 |
+
"FOUND",
|
| 197 |
+
"FREETEXT",
|
| 198 |
+
"FREETEXTTABLE",
|
| 199 |
+
"FROM",
|
| 200 |
+
"FULL",
|
| 201 |
+
"FUNCTION",
|
| 202 |
+
"GENERATED",
|
| 203 |
+
"GET",
|
| 204 |
+
"GLOB",
|
| 205 |
+
"GLOBAL",
|
| 206 |
+
"GO",
|
| 207 |
+
"GOTO",
|
| 208 |
+
"GRANT",
|
| 209 |
+
"GROUP",
|
| 210 |
+
"GROUPS",
|
| 211 |
+
"HAVING",
|
| 212 |
+
"HOLDLOCK",
|
| 213 |
+
"HOUR",
|
| 214 |
+
"IDENTITY",
|
| 215 |
+
"IDENTITYCOL",
|
| 216 |
+
"IDENTITY_INSERT",
|
| 217 |
+
"IF",
|
| 218 |
+
"IGNORE",
|
| 219 |
+
"IMMEDIATE",
|
| 220 |
+
"IN",
|
| 221 |
+
"INCLUDE",
|
| 222 |
+
"INDEX",
|
| 223 |
+
"INDEXED",
|
| 224 |
+
"INDICATOR",
|
| 225 |
+
"INITIALLY",
|
| 226 |
+
"INNER",
|
| 227 |
+
"INPUT",
|
| 228 |
+
"INSENSITIVE",
|
| 229 |
+
"INSERT",
|
| 230 |
+
"INSTEAD",
|
| 231 |
+
"INT",
|
| 232 |
+
"INTEGER",
|
| 233 |
+
"INTERSECT",
|
| 234 |
+
"INTERVAL",
|
| 235 |
+
"INTO",
|
| 236 |
+
"IS",
|
| 237 |
+
"ISNULL",
|
| 238 |
+
"ISOLATION",
|
| 239 |
+
"JOIN",
|
| 240 |
+
"KEY",
|
| 241 |
+
"KILL",
|
| 242 |
+
"LANGUAGE",
|
| 243 |
+
"LAST",
|
| 244 |
+
"LEADING",
|
| 245 |
+
"LEFT",
|
| 246 |
+
"LEVEL",
|
| 247 |
+
"LIKE",
|
| 248 |
+
"LIMIT",
|
| 249 |
+
"LINENO",
|
| 250 |
+
"LOAD",
|
| 251 |
+
"LOCAL",
|
| 252 |
+
"LOWER",
|
| 253 |
+
"MATCH",
|
| 254 |
+
"MATERIALIZED",
|
| 255 |
+
"MAX",
|
| 256 |
+
"MERGE",
|
| 257 |
+
"MIN",
|
| 258 |
+
"MINUTE",
|
| 259 |
+
"MODULE",
|
| 260 |
+
"MONTH",
|
| 261 |
+
"NAMES",
|
| 262 |
+
"NATIONAL",
|
| 263 |
+
"NATURAL",
|
| 264 |
+
"NCHAR",
|
| 265 |
+
"NEXT",
|
| 266 |
+
"NO",
|
| 267 |
+
"NOCHECK",
|
| 268 |
+
"NONCLUSTERED",
|
| 269 |
+
"NONE",
|
| 270 |
+
"NOT",
|
| 271 |
+
"NOTHING",
|
| 272 |
+
"NOTNULL",
|
| 273 |
+
"NULL",
|
| 274 |
+
"NULLIF",
|
| 275 |
+
"NULLS",
|
| 276 |
+
"NUMERIC",
|
| 277 |
+
"OCTET_LENGTH",
|
| 278 |
+
"OF",
|
| 279 |
+
"OFF",
|
| 280 |
+
"OFFSET",
|
| 281 |
+
"OFFSETS",
|
| 282 |
+
"ON",
|
| 283 |
+
"ONLY",
|
| 284 |
+
"OPEN",
|
| 285 |
+
"OPENDATASOURCE",
|
| 286 |
+
"OPENQUERY",
|
| 287 |
+
"OPENROWSET",
|
| 288 |
+
"OPENXML",
|
| 289 |
+
"OPTION",
|
| 290 |
+
"OR",
|
| 291 |
+
"ORDER",
|
| 292 |
+
"OTHERS",
|
| 293 |
+
"OUTER",
|
| 294 |
+
"OUTPUT",
|
| 295 |
+
"OVER",
|
| 296 |
+
"OVERLAPS",
|
| 297 |
+
"PAD",
|
| 298 |
+
"PARTIAL",
|
| 299 |
+
"PARTITION",
|
| 300 |
+
"PASCAL",
|
| 301 |
+
"PERCENT",
|
| 302 |
+
"PIVOT",
|
| 303 |
+
"PLAN",
|
| 304 |
+
"POSITION",
|
| 305 |
+
"PRAGMA",
|
| 306 |
+
"PRECEDING",
|
| 307 |
+
"PRECISION",
|
| 308 |
+
"PREPARE",
|
| 309 |
+
"PRESERVE",
|
| 310 |
+
"PRIMARY",
|
| 311 |
+
"PRINT",
|
| 312 |
+
"PRIOR",
|
| 313 |
+
"PRIVILEGES",
|
| 314 |
+
"PROC",
|
| 315 |
+
"PROCEDURE",
|
| 316 |
+
"PUBLIC",
|
| 317 |
+
"QUERY",
|
| 318 |
+
"RAISE",
|
| 319 |
+
"RAISERROR",
|
| 320 |
+
"RANGE",
|
| 321 |
+
"READ",
|
| 322 |
+
"READTEXT",
|
| 323 |
+
"REAL",
|
| 324 |
+
"RECONFIGURE",
|
| 325 |
+
"RECURSIVE",
|
| 326 |
+
"REFERENCES",
|
| 327 |
+
"REGEXP",
|
| 328 |
+
"REINDEX",
|
| 329 |
+
"RELATIVE",
|
| 330 |
+
"RELEASE",
|
| 331 |
+
"RENAME",
|
| 332 |
+
"REPLACE",
|
| 333 |
+
"REPLICATION",
|
| 334 |
+
"RESTORE",
|
| 335 |
+
"RESTRICT",
|
| 336 |
+
"RETURN",
|
| 337 |
+
"RETURNING",
|
| 338 |
+
"REVERT",
|
| 339 |
+
"REVOKE",
|
| 340 |
+
"RIGHT",
|
| 341 |
+
"ROLLBACK",
|
| 342 |
+
"ROW",
|
| 343 |
+
"ROWCOUNT",
|
| 344 |
+
"ROWGUIDCOL",
|
| 345 |
+
"ROWS",
|
| 346 |
+
"RULE",
|
| 347 |
+
"SAVE",
|
| 348 |
+
"SAVEPOINT",
|
| 349 |
+
"SCHEMA",
|
| 350 |
+
"SCROLL",
|
| 351 |
+
"SECOND",
|
| 352 |
+
"SECTION",
|
| 353 |
+
"SECURITYAUDIT",
|
| 354 |
+
"SELECT",
|
| 355 |
+
"SEMANTICKEYPHRASETABLE",
|
| 356 |
+
"SEMANTICSIMILARITYDETAILSTABLE",
|
| 357 |
+
"SEMANTICSIMILARITYTABLE",
|
| 358 |
+
"SESSION",
|
| 359 |
+
"SESSION_USER",
|
| 360 |
+
"SET",
|
| 361 |
+
"SETUSER",
|
| 362 |
+
"SHUTDOWN",
|
| 363 |
+
"SIZE",
|
| 364 |
+
"SMALLINT",
|
| 365 |
+
"SOME",
|
| 366 |
+
"SPACE",
|
| 367 |
+
"SQL",
|
| 368 |
+
"SQLCA",
|
| 369 |
+
"SQLCODE",
|
| 370 |
+
"SQLERROR",
|
| 371 |
+
"SQLSTATE",
|
| 372 |
+
"SQLWARNING",
|
| 373 |
+
"STATISTICS",
|
| 374 |
+
"SUBSTRING",
|
| 375 |
+
"SUM",
|
| 376 |
+
"SYSTEM_USER",
|
| 377 |
+
"TABLE",
|
| 378 |
+
"TABLESAMPLE",
|
| 379 |
+
"TEMP",
|
| 380 |
+
"TEMPORARY",
|
| 381 |
+
"TEXTSIZE",
|
| 382 |
+
"THEN",
|
| 383 |
+
"TIES",
|
| 384 |
+
"TIME",
|
| 385 |
+
"TIMESTAMP",
|
| 386 |
+
"TIMEZONE_HOUR",
|
| 387 |
+
"TIMEZONE_MINUTE",
|
| 388 |
+
"TO",
|
| 389 |
+
"TOP",
|
| 390 |
+
"TRAILING",
|
| 391 |
+
"TRAN",
|
| 392 |
+
"TRANSACTION",
|
| 393 |
+
"TRANSLATE",
|
| 394 |
+
"TRANSLATION",
|
| 395 |
+
"TRIGGER",
|
| 396 |
+
"TRIM",
|
| 397 |
+
"TRUE",
|
| 398 |
+
"TRUNCATE",
|
| 399 |
+
"TRY_CONVERT",
|
| 400 |
+
"TSEQUAL",
|
| 401 |
+
"UNBOUNDED",
|
| 402 |
+
"UNION",
|
| 403 |
+
"UNIQUE",
|
| 404 |
+
"UNKNOWN",
|
| 405 |
+
"UNPIVOT",
|
| 406 |
+
"UPDATE",
|
| 407 |
+
"UPDATETEXT",
|
| 408 |
+
"UPPER",
|
| 409 |
+
"USAGE",
|
| 410 |
+
"USE",
|
| 411 |
+
"USER",
|
| 412 |
+
"USING",
|
| 413 |
+
"VACUUM",
|
| 414 |
+
"VALUE",
|
| 415 |
+
"VALUES",
|
| 416 |
+
"VARCHAR",
|
| 417 |
+
"VARYING",
|
| 418 |
+
"VIEW",
|
| 419 |
+
"VIRTUAL",
|
| 420 |
+
"WAITFOR",
|
| 421 |
+
"WHEN",
|
| 422 |
+
"WHENEVER",
|
| 423 |
+
"WHERE",
|
| 424 |
+
"WHILE",
|
| 425 |
+
"WINDOW",
|
| 426 |
+
"WITH",
|
| 427 |
+
"WITHIN GROUP",
|
| 428 |
+
"WITHOUT",
|
| 429 |
+
"WORK",
|
| 430 |
+
"WRITE",
|
| 431 |
+
"WRITETEXT",
|
| 432 |
+
"YEAR",
|
| 433 |
+
"ZONE"
|
| 434 |
+
],
|
| 435 |
+
operators: [
|
| 436 |
+
// Logical
|
| 437 |
+
"ALL",
|
| 438 |
+
"AND",
|
| 439 |
+
"ANY",
|
| 440 |
+
"BETWEEN",
|
| 441 |
+
"EXISTS",
|
| 442 |
+
"IN",
|
| 443 |
+
"LIKE",
|
| 444 |
+
"NOT",
|
| 445 |
+
"OR",
|
| 446 |
+
"SOME",
|
| 447 |
+
// Set
|
| 448 |
+
"EXCEPT",
|
| 449 |
+
"INTERSECT",
|
| 450 |
+
"UNION",
|
| 451 |
+
// Join
|
| 452 |
+
"APPLY",
|
| 453 |
+
"CROSS",
|
| 454 |
+
"FULL",
|
| 455 |
+
"INNER",
|
| 456 |
+
"JOIN",
|
| 457 |
+
"LEFT",
|
| 458 |
+
"OUTER",
|
| 459 |
+
"RIGHT",
|
| 460 |
+
// Predicates
|
| 461 |
+
"CONTAINS",
|
| 462 |
+
"FREETEXT",
|
| 463 |
+
"IS",
|
| 464 |
+
"NULL",
|
| 465 |
+
// Pivoting
|
| 466 |
+
"PIVOT",
|
| 467 |
+
"UNPIVOT",
|
| 468 |
+
// Merging
|
| 469 |
+
"MATCHED"
|
| 470 |
+
],
|
| 471 |
+
builtinFunctions: [
|
| 472 |
+
// Aggregate
|
| 473 |
+
"AVG",
|
| 474 |
+
"CHECKSUM_AGG",
|
| 475 |
+
"COUNT",
|
| 476 |
+
"COUNT_BIG",
|
| 477 |
+
"GROUPING",
|
| 478 |
+
"GROUPING_ID",
|
| 479 |
+
"MAX",
|
| 480 |
+
"MIN",
|
| 481 |
+
"SUM",
|
| 482 |
+
"STDEV",
|
| 483 |
+
"STDEVP",
|
| 484 |
+
"VAR",
|
| 485 |
+
"VARP",
|
| 486 |
+
// Analytic
|
| 487 |
+
"CUME_DIST",
|
| 488 |
+
"FIRST_VALUE",
|
| 489 |
+
"LAG",
|
| 490 |
+
"LAST_VALUE",
|
| 491 |
+
"LEAD",
|
| 492 |
+
"PERCENTILE_CONT",
|
| 493 |
+
"PERCENTILE_DISC",
|
| 494 |
+
"PERCENT_RANK",
|
| 495 |
+
// Collation
|
| 496 |
+
"COLLATE",
|
| 497 |
+
"COLLATIONPROPERTY",
|
| 498 |
+
"TERTIARY_WEIGHTS",
|
| 499 |
+
// Azure
|
| 500 |
+
"FEDERATION_FILTERING_VALUE",
|
| 501 |
+
// Conversion
|
| 502 |
+
"CAST",
|
| 503 |
+
"CONVERT",
|
| 504 |
+
"PARSE",
|
| 505 |
+
"TRY_CAST",
|
| 506 |
+
"TRY_CONVERT",
|
| 507 |
+
"TRY_PARSE",
|
| 508 |
+
// Cryptographic
|
| 509 |
+
"ASYMKEY_ID",
|
| 510 |
+
"ASYMKEYPROPERTY",
|
| 511 |
+
"CERTPROPERTY",
|
| 512 |
+
"CERT_ID",
|
| 513 |
+
"CRYPT_GEN_RANDOM",
|
| 514 |
+
"DECRYPTBYASYMKEY",
|
| 515 |
+
"DECRYPTBYCERT",
|
| 516 |
+
"DECRYPTBYKEY",
|
| 517 |
+
"DECRYPTBYKEYAUTOASYMKEY",
|
| 518 |
+
"DECRYPTBYKEYAUTOCERT",
|
| 519 |
+
"DECRYPTBYPASSPHRASE",
|
| 520 |
+
"ENCRYPTBYASYMKEY",
|
| 521 |
+
"ENCRYPTBYCERT",
|
| 522 |
+
"ENCRYPTBYKEY",
|
| 523 |
+
"ENCRYPTBYPASSPHRASE",
|
| 524 |
+
"HASHBYTES",
|
| 525 |
+
"IS_OBJECTSIGNED",
|
| 526 |
+
"KEY_GUID",
|
| 527 |
+
"KEY_ID",
|
| 528 |
+
"KEY_NAME",
|
| 529 |
+
"SIGNBYASYMKEY",
|
| 530 |
+
"SIGNBYCERT",
|
| 531 |
+
"SYMKEYPROPERTY",
|
| 532 |
+
"VERIFYSIGNEDBYCERT",
|
| 533 |
+
"VERIFYSIGNEDBYASYMKEY",
|
| 534 |
+
// Cursor
|
| 535 |
+
"CURSOR_STATUS",
|
| 536 |
+
// Datatype
|
| 537 |
+
"DATALENGTH",
|
| 538 |
+
"IDENT_CURRENT",
|
| 539 |
+
"IDENT_INCR",
|
| 540 |
+
"IDENT_SEED",
|
| 541 |
+
"IDENTITY",
|
| 542 |
+
"SQL_VARIANT_PROPERTY",
|
| 543 |
+
// Datetime
|
| 544 |
+
"CURRENT_TIMESTAMP",
|
| 545 |
+
"DATEADD",
|
| 546 |
+
"DATEDIFF",
|
| 547 |
+
"DATEFROMPARTS",
|
| 548 |
+
"DATENAME",
|
| 549 |
+
"DATEPART",
|
| 550 |
+
"DATETIME2FROMPARTS",
|
| 551 |
+
"DATETIMEFROMPARTS",
|
| 552 |
+
"DATETIMEOFFSETFROMPARTS",
|
| 553 |
+
"DAY",
|
| 554 |
+
"EOMONTH",
|
| 555 |
+
"GETDATE",
|
| 556 |
+
"GETUTCDATE",
|
| 557 |
+
"ISDATE",
|
| 558 |
+
"MONTH",
|
| 559 |
+
"SMALLDATETIMEFROMPARTS",
|
| 560 |
+
"SWITCHOFFSET",
|
| 561 |
+
"SYSDATETIME",
|
| 562 |
+
"SYSDATETIMEOFFSET",
|
| 563 |
+
"SYSUTCDATETIME",
|
| 564 |
+
"TIMEFROMPARTS",
|
| 565 |
+
"TODATETIMEOFFSET",
|
| 566 |
+
"YEAR",
|
| 567 |
+
// Logical
|
| 568 |
+
"CHOOSE",
|
| 569 |
+
"COALESCE",
|
| 570 |
+
"IIF",
|
| 571 |
+
"NULLIF",
|
| 572 |
+
// Mathematical
|
| 573 |
+
"ABS",
|
| 574 |
+
"ACOS",
|
| 575 |
+
"ASIN",
|
| 576 |
+
"ATAN",
|
| 577 |
+
"ATN2",
|
| 578 |
+
"CEILING",
|
| 579 |
+
"COS",
|
| 580 |
+
"COT",
|
| 581 |
+
"DEGREES",
|
| 582 |
+
"EXP",
|
| 583 |
+
"FLOOR",
|
| 584 |
+
"LOG",
|
| 585 |
+
"LOG10",
|
| 586 |
+
"PI",
|
| 587 |
+
"POWER",
|
| 588 |
+
"RADIANS",
|
| 589 |
+
"RAND",
|
| 590 |
+
"ROUND",
|
| 591 |
+
"SIGN",
|
| 592 |
+
"SIN",
|
| 593 |
+
"SQRT",
|
| 594 |
+
"SQUARE",
|
| 595 |
+
"TAN",
|
| 596 |
+
// Metadata
|
| 597 |
+
"APP_NAME",
|
| 598 |
+
"APPLOCK_MODE",
|
| 599 |
+
"APPLOCK_TEST",
|
| 600 |
+
"ASSEMBLYPROPERTY",
|
| 601 |
+
"COL_LENGTH",
|
| 602 |
+
"COL_NAME",
|
| 603 |
+
"COLUMNPROPERTY",
|
| 604 |
+
"DATABASE_PRINCIPAL_ID",
|
| 605 |
+
"DATABASEPROPERTYEX",
|
| 606 |
+
"DB_ID",
|
| 607 |
+
"DB_NAME",
|
| 608 |
+
"FILE_ID",
|
| 609 |
+
"FILE_IDEX",
|
| 610 |
+
"FILE_NAME",
|
| 611 |
+
"FILEGROUP_ID",
|
| 612 |
+
"FILEGROUP_NAME",
|
| 613 |
+
"FILEGROUPPROPERTY",
|
| 614 |
+
"FILEPROPERTY",
|
| 615 |
+
"FULLTEXTCATALOGPROPERTY",
|
| 616 |
+
"FULLTEXTSERVICEPROPERTY",
|
| 617 |
+
"INDEX_COL",
|
| 618 |
+
"INDEXKEY_PROPERTY",
|
| 619 |
+
"INDEXPROPERTY",
|
| 620 |
+
"OBJECT_DEFINITION",
|
| 621 |
+
"OBJECT_ID",
|
| 622 |
+
"OBJECT_NAME",
|
| 623 |
+
"OBJECT_SCHEMA_NAME",
|
| 624 |
+
"OBJECTPROPERTY",
|
| 625 |
+
"OBJECTPROPERTYEX",
|
| 626 |
+
"ORIGINAL_DB_NAME",
|
| 627 |
+
"PARSENAME",
|
| 628 |
+
"SCHEMA_ID",
|
| 629 |
+
"SCHEMA_NAME",
|
| 630 |
+
"SCOPE_IDENTITY",
|
| 631 |
+
"SERVERPROPERTY",
|
| 632 |
+
"STATS_DATE",
|
| 633 |
+
"TYPE_ID",
|
| 634 |
+
"TYPE_NAME",
|
| 635 |
+
"TYPEPROPERTY",
|
| 636 |
+
// Ranking
|
| 637 |
+
"DENSE_RANK",
|
| 638 |
+
"NTILE",
|
| 639 |
+
"RANK",
|
| 640 |
+
"ROW_NUMBER",
|
| 641 |
+
// Replication
|
| 642 |
+
"PUBLISHINGSERVERNAME",
|
| 643 |
+
// Rowset
|
| 644 |
+
"OPENDATASOURCE",
|
| 645 |
+
"OPENQUERY",
|
| 646 |
+
"OPENROWSET",
|
| 647 |
+
"OPENXML",
|
| 648 |
+
// Security
|
| 649 |
+
"CERTENCODED",
|
| 650 |
+
"CERTPRIVATEKEY",
|
| 651 |
+
"CURRENT_USER",
|
| 652 |
+
"HAS_DBACCESS",
|
| 653 |
+
"HAS_PERMS_BY_NAME",
|
| 654 |
+
"IS_MEMBER",
|
| 655 |
+
"IS_ROLEMEMBER",
|
| 656 |
+
"IS_SRVROLEMEMBER",
|
| 657 |
+
"LOGINPROPERTY",
|
| 658 |
+
"ORIGINAL_LOGIN",
|
| 659 |
+
"PERMISSIONS",
|
| 660 |
+
"PWDENCRYPT",
|
| 661 |
+
"PWDCOMPARE",
|
| 662 |
+
"SESSION_USER",
|
| 663 |
+
"SESSIONPROPERTY",
|
| 664 |
+
"SUSER_ID",
|
| 665 |
+
"SUSER_NAME",
|
| 666 |
+
"SUSER_SID",
|
| 667 |
+
"SUSER_SNAME",
|
| 668 |
+
"SYSTEM_USER",
|
| 669 |
+
"USER",
|
| 670 |
+
"USER_ID",
|
| 671 |
+
"USER_NAME",
|
| 672 |
+
// String
|
| 673 |
+
"ASCII",
|
| 674 |
+
"CHAR",
|
| 675 |
+
"CHARINDEX",
|
| 676 |
+
"CONCAT",
|
| 677 |
+
"DIFFERENCE",
|
| 678 |
+
"FORMAT",
|
| 679 |
+
"LEFT",
|
| 680 |
+
"LEN",
|
| 681 |
+
"LOWER",
|
| 682 |
+
"LTRIM",
|
| 683 |
+
"NCHAR",
|
| 684 |
+
"PATINDEX",
|
| 685 |
+
"QUOTENAME",
|
| 686 |
+
"REPLACE",
|
| 687 |
+
"REPLICATE",
|
| 688 |
+
"REVERSE",
|
| 689 |
+
"RIGHT",
|
| 690 |
+
"RTRIM",
|
| 691 |
+
"SOUNDEX",
|
| 692 |
+
"SPACE",
|
| 693 |
+
"STR",
|
| 694 |
+
"STUFF",
|
| 695 |
+
"SUBSTRING",
|
| 696 |
+
"UNICODE",
|
| 697 |
+
"UPPER",
|
| 698 |
+
// System
|
| 699 |
+
"BINARY_CHECKSUM",
|
| 700 |
+
"CHECKSUM",
|
| 701 |
+
"CONNECTIONPROPERTY",
|
| 702 |
+
"CONTEXT_INFO",
|
| 703 |
+
"CURRENT_REQUEST_ID",
|
| 704 |
+
"ERROR_LINE",
|
| 705 |
+
"ERROR_NUMBER",
|
| 706 |
+
"ERROR_MESSAGE",
|
| 707 |
+
"ERROR_PROCEDURE",
|
| 708 |
+
"ERROR_SEVERITY",
|
| 709 |
+
"ERROR_STATE",
|
| 710 |
+
"FORMATMESSAGE",
|
| 711 |
+
"GETANSINULL",
|
| 712 |
+
"GET_FILESTREAM_TRANSACTION_CONTEXT",
|
| 713 |
+
"HOST_ID",
|
| 714 |
+
"HOST_NAME",
|
| 715 |
+
"ISNULL",
|
| 716 |
+
"ISNUMERIC",
|
| 717 |
+
"MIN_ACTIVE_ROWVERSION",
|
| 718 |
+
"NEWID",
|
| 719 |
+
"NEWSEQUENTIALID",
|
| 720 |
+
"ROWCOUNT_BIG",
|
| 721 |
+
"XACT_STATE",
|
| 722 |
+
// TextImage
|
| 723 |
+
"TEXTPTR",
|
| 724 |
+
"TEXTVALID",
|
| 725 |
+
// Trigger
|
| 726 |
+
"COLUMNS_UPDATED",
|
| 727 |
+
"EVENTDATA",
|
| 728 |
+
"TRIGGER_NESTLEVEL",
|
| 729 |
+
"UPDATE",
|
| 730 |
+
// ChangeTracking
|
| 731 |
+
"CHANGETABLE",
|
| 732 |
+
"CHANGE_TRACKING_CONTEXT",
|
| 733 |
+
"CHANGE_TRACKING_CURRENT_VERSION",
|
| 734 |
+
"CHANGE_TRACKING_IS_COLUMN_IN_MASK",
|
| 735 |
+
"CHANGE_TRACKING_MIN_VALID_VERSION",
|
| 736 |
+
// FullTextSearch
|
| 737 |
+
"CONTAINSTABLE",
|
| 738 |
+
"FREETEXTTABLE",
|
| 739 |
+
// SemanticTextSearch
|
| 740 |
+
"SEMANTICKEYPHRASETABLE",
|
| 741 |
+
"SEMANTICSIMILARITYDETAILSTABLE",
|
| 742 |
+
"SEMANTICSIMILARITYTABLE",
|
| 743 |
+
// FileStream
|
| 744 |
+
"FILETABLEROOTPATH",
|
| 745 |
+
"GETFILENAMESPACEPATH",
|
| 746 |
+
"GETPATHLOCATOR",
|
| 747 |
+
"PATHNAME",
|
| 748 |
+
// ServiceBroker
|
| 749 |
+
"GET_TRANSMISSION_STATUS"
|
| 750 |
+
],
|
| 751 |
+
builtinVariables: [
|
| 752 |
+
// Configuration
|
| 753 |
+
"@@DATEFIRST",
|
| 754 |
+
"@@DBTS",
|
| 755 |
+
"@@LANGID",
|
| 756 |
+
"@@LANGUAGE",
|
| 757 |
+
"@@LOCK_TIMEOUT",
|
| 758 |
+
"@@MAX_CONNECTIONS",
|
| 759 |
+
"@@MAX_PRECISION",
|
| 760 |
+
"@@NESTLEVEL",
|
| 761 |
+
"@@OPTIONS",
|
| 762 |
+
"@@REMSERVER",
|
| 763 |
+
"@@SERVERNAME",
|
| 764 |
+
"@@SERVICENAME",
|
| 765 |
+
"@@SPID",
|
| 766 |
+
"@@TEXTSIZE",
|
| 767 |
+
"@@VERSION",
|
| 768 |
+
// Cursor
|
| 769 |
+
"@@CURSOR_ROWS",
|
| 770 |
+
"@@FETCH_STATUS",
|
| 771 |
+
// Datetime
|
| 772 |
+
"@@DATEFIRST",
|
| 773 |
+
// Metadata
|
| 774 |
+
"@@PROCID",
|
| 775 |
+
// System
|
| 776 |
+
"@@ERROR",
|
| 777 |
+
"@@IDENTITY",
|
| 778 |
+
"@@ROWCOUNT",
|
| 779 |
+
"@@TRANCOUNT",
|
| 780 |
+
// Stats
|
| 781 |
+
"@@CONNECTIONS",
|
| 782 |
+
"@@CPU_BUSY",
|
| 783 |
+
"@@IDLE",
|
| 784 |
+
"@@IO_BUSY",
|
| 785 |
+
"@@PACKET_ERRORS",
|
| 786 |
+
"@@PACK_RECEIVED",
|
| 787 |
+
"@@PACK_SENT",
|
| 788 |
+
"@@TIMETICKS",
|
| 789 |
+
"@@TOTAL_ERRORS",
|
| 790 |
+
"@@TOTAL_READ",
|
| 791 |
+
"@@TOTAL_WRITE"
|
| 792 |
+
],
|
| 793 |
+
pseudoColumns: ["$ACTION", "$IDENTITY", "$ROWGUID", "$PARTITION"],
|
| 794 |
+
tokenizer: {
|
| 795 |
+
root: [
|
| 796 |
+
{ include: "@comments" },
|
| 797 |
+
{ include: "@whitespace" },
|
| 798 |
+
{ include: "@pseudoColumns" },
|
| 799 |
+
{ include: "@numbers" },
|
| 800 |
+
{ include: "@strings" },
|
| 801 |
+
{ include: "@complexIdentifiers" },
|
| 802 |
+
{ include: "@scopes" },
|
| 803 |
+
[/[;,.]/, "delimiter"],
|
| 804 |
+
[/[()]/, "@brackets"],
|
| 805 |
+
[
|
| 806 |
+
/[\w@#$]+/,
|
| 807 |
+
{
|
| 808 |
+
cases: {
|
| 809 |
+
"@operators": "operator",
|
| 810 |
+
"@builtinVariables": "predefined",
|
| 811 |
+
"@builtinFunctions": "predefined",
|
| 812 |
+
"@keywords": "keyword",
|
| 813 |
+
"@default": "identifier"
|
| 814 |
+
}
|
| 815 |
+
}
|
| 816 |
+
],
|
| 817 |
+
[/[<>=!%&+\-*/|~^]/, "operator"]
|
| 818 |
+
],
|
| 819 |
+
whitespace: [[/\s+/, "white"]],
|
| 820 |
+
comments: [
|
| 821 |
+
[/--+.*/, "comment"],
|
| 822 |
+
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
| 823 |
+
],
|
| 824 |
+
comment: [
|
| 825 |
+
[/[^*/]+/, "comment"],
|
| 826 |
+
// Not supporting nested comments, as nested comments seem to not be standard?
|
| 827 |
+
// i.e. http://stackoverflow.com/questions/728172/are-there-multiline-comment-delimiters-in-sql-that-are-vendor-agnostic
|
| 828 |
+
// [/\/\*/, { token: 'comment.quote', next: '@push' }], // nested comment not allowed :-(
|
| 829 |
+
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
| 830 |
+
[/./, "comment"]
|
| 831 |
+
],
|
| 832 |
+
pseudoColumns: [
|
| 833 |
+
[
|
| 834 |
+
/[$][A-Za-z_][\w@#$]*/,
|
| 835 |
+
{
|
| 836 |
+
cases: {
|
| 837 |
+
"@pseudoColumns": "predefined",
|
| 838 |
+
"@default": "identifier"
|
| 839 |
+
}
|
| 840 |
+
}
|
| 841 |
+
]
|
| 842 |
+
],
|
| 843 |
+
numbers: [
|
| 844 |
+
[/0[xX][0-9a-fA-F]*/, "number"],
|
| 845 |
+
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
| 846 |
+
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
| 847 |
+
],
|
| 848 |
+
strings: [
|
| 849 |
+
[/N'/, { token: "string", next: "@string" }],
|
| 850 |
+
[/'/, { token: "string", next: "@string" }]
|
| 851 |
+
],
|
| 852 |
+
string: [
|
| 853 |
+
[/[^']+/, "string"],
|
| 854 |
+
[/''/, "string"],
|
| 855 |
+
[/'/, { token: "string", next: "@pop" }]
|
| 856 |
+
],
|
| 857 |
+
complexIdentifiers: [
|
| 858 |
+
[/\[/, { token: "identifier.quote", next: "@bracketedIdentifier" }],
|
| 859 |
+
[/"/, { token: "identifier.quote", next: "@quotedIdentifier" }]
|
| 860 |
+
],
|
| 861 |
+
bracketedIdentifier: [
|
| 862 |
+
[/[^\]]+/, "identifier"],
|
| 863 |
+
[/]]/, "identifier"],
|
| 864 |
+
[/]/, { token: "identifier.quote", next: "@pop" }]
|
| 865 |
+
],
|
| 866 |
+
quotedIdentifier: [
|
| 867 |
+
[/[^"]+/, "identifier"],
|
| 868 |
+
[/""/, "identifier"],
|
| 869 |
+
[/"/, { token: "identifier.quote", next: "@pop" }]
|
| 870 |
+
],
|
| 871 |
+
scopes: [
|
| 872 |
+
[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i, "keyword"],
|
| 873 |
+
[/BEGIN\s+TRY\b/i, { token: "keyword.try" }],
|
| 874 |
+
[/END\s+TRY\b/i, { token: "keyword.try" }],
|
| 875 |
+
[/BEGIN\s+CATCH\b/i, { token: "keyword.catch" }],
|
| 876 |
+
[/END\s+CATCH\b/i, { token: "keyword.catch" }],
|
| 877 |
+
[/(BEGIN|CASE)\b/i, { token: "keyword.block" }],
|
| 878 |
+
[/END\b/i, { token: "keyword.block" }],
|
| 879 |
+
[/WHEN\b/i, { token: "keyword.choice" }],
|
| 880 |
+
[/THEN\b/i, { token: "keyword.choice" }]
|
| 881 |
+
]
|
| 882 |
+
}
|
| 883 |
+
};
|
| 884 |
+
return __toCommonJS(sql_exports);
|
| 885 |
+
})();
|
| 886 |
+
return moduleExports;
|
| 887 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/st/st.js
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/st/st", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/st/st.ts
|
| 29 |
+
var st_exports = {};
|
| 30 |
+
__export(st_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "//",
|
| 37 |
+
blockComment: ["(*", "*)"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{", "}"],
|
| 41 |
+
["[", "]"],
|
| 42 |
+
["(", ")"],
|
| 43 |
+
["var", "end_var"],
|
| 44 |
+
["var_input", "end_var"],
|
| 45 |
+
["var_output", "end_var"],
|
| 46 |
+
["var_in_out", "end_var"],
|
| 47 |
+
["var_temp", "end_var"],
|
| 48 |
+
["var_global", "end_var"],
|
| 49 |
+
["var_access", "end_var"],
|
| 50 |
+
["var_external", "end_var"],
|
| 51 |
+
["type", "end_type"],
|
| 52 |
+
["struct", "end_struct"],
|
| 53 |
+
["program", "end_program"],
|
| 54 |
+
["function", "end_function"],
|
| 55 |
+
["function_block", "end_function_block"],
|
| 56 |
+
["action", "end_action"],
|
| 57 |
+
["step", "end_step"],
|
| 58 |
+
["initial_step", "end_step"],
|
| 59 |
+
["transaction", "end_transaction"],
|
| 60 |
+
["configuration", "end_configuration"],
|
| 61 |
+
["tcp", "end_tcp"],
|
| 62 |
+
["recource", "end_recource"],
|
| 63 |
+
["channel", "end_channel"],
|
| 64 |
+
["library", "end_library"],
|
| 65 |
+
["folder", "end_folder"],
|
| 66 |
+
["binaries", "end_binaries"],
|
| 67 |
+
["includes", "end_includes"],
|
| 68 |
+
["sources", "end_sources"]
|
| 69 |
+
],
|
| 70 |
+
autoClosingPairs: [
|
| 71 |
+
{ open: "[", close: "]" },
|
| 72 |
+
{ open: "{", close: "}" },
|
| 73 |
+
{ open: "(", close: ")" },
|
| 74 |
+
{ open: "/*", close: "*/" },
|
| 75 |
+
{ open: "'", close: "'", notIn: ["string_sq"] },
|
| 76 |
+
{ open: '"', close: '"', notIn: ["string_dq"] },
|
| 77 |
+
{ open: "var_input", close: "end_var" },
|
| 78 |
+
{ open: "var_output", close: "end_var" },
|
| 79 |
+
{ open: "var_in_out", close: "end_var" },
|
| 80 |
+
{ open: "var_temp", close: "end_var" },
|
| 81 |
+
{ open: "var_global", close: "end_var" },
|
| 82 |
+
{ open: "var_access", close: "end_var" },
|
| 83 |
+
{ open: "var_external", close: "end_var" },
|
| 84 |
+
{ open: "type", close: "end_type" },
|
| 85 |
+
{ open: "struct", close: "end_struct" },
|
| 86 |
+
{ open: "program", close: "end_program" },
|
| 87 |
+
{ open: "function", close: "end_function" },
|
| 88 |
+
{ open: "function_block", close: "end_function_block" },
|
| 89 |
+
{ open: "action", close: "end_action" },
|
| 90 |
+
{ open: "step", close: "end_step" },
|
| 91 |
+
{ open: "initial_step", close: "end_step" },
|
| 92 |
+
{ open: "transaction", close: "end_transaction" },
|
| 93 |
+
{ open: "configuration", close: "end_configuration" },
|
| 94 |
+
{ open: "tcp", close: "end_tcp" },
|
| 95 |
+
{ open: "recource", close: "end_recource" },
|
| 96 |
+
{ open: "channel", close: "end_channel" },
|
| 97 |
+
{ open: "library", close: "end_library" },
|
| 98 |
+
{ open: "folder", close: "end_folder" },
|
| 99 |
+
{ open: "binaries", close: "end_binaries" },
|
| 100 |
+
{ open: "includes", close: "end_includes" },
|
| 101 |
+
{ open: "sources", close: "end_sources" }
|
| 102 |
+
],
|
| 103 |
+
surroundingPairs: [
|
| 104 |
+
{ open: "{", close: "}" },
|
| 105 |
+
{ open: "[", close: "]" },
|
| 106 |
+
{ open: "(", close: ")" },
|
| 107 |
+
{ open: '"', close: '"' },
|
| 108 |
+
{ open: "'", close: "'" },
|
| 109 |
+
{ open: "var", close: "end_var" },
|
| 110 |
+
{ open: "var_input", close: "end_var" },
|
| 111 |
+
{ open: "var_output", close: "end_var" },
|
| 112 |
+
{ open: "var_in_out", close: "end_var" },
|
| 113 |
+
{ open: "var_temp", close: "end_var" },
|
| 114 |
+
{ open: "var_global", close: "end_var" },
|
| 115 |
+
{ open: "var_access", close: "end_var" },
|
| 116 |
+
{ open: "var_external", close: "end_var" },
|
| 117 |
+
{ open: "type", close: "end_type" },
|
| 118 |
+
{ open: "struct", close: "end_struct" },
|
| 119 |
+
{ open: "program", close: "end_program" },
|
| 120 |
+
{ open: "function", close: "end_function" },
|
| 121 |
+
{ open: "function_block", close: "end_function_block" },
|
| 122 |
+
{ open: "action", close: "end_action" },
|
| 123 |
+
{ open: "step", close: "end_step" },
|
| 124 |
+
{ open: "initial_step", close: "end_step" },
|
| 125 |
+
{ open: "transaction", close: "end_transaction" },
|
| 126 |
+
{ open: "configuration", close: "end_configuration" },
|
| 127 |
+
{ open: "tcp", close: "end_tcp" },
|
| 128 |
+
{ open: "recource", close: "end_recource" },
|
| 129 |
+
{ open: "channel", close: "end_channel" },
|
| 130 |
+
{ open: "library", close: "end_library" },
|
| 131 |
+
{ open: "folder", close: "end_folder" },
|
| 132 |
+
{ open: "binaries", close: "end_binaries" },
|
| 133 |
+
{ open: "includes", close: "end_includes" },
|
| 134 |
+
{ open: "sources", close: "end_sources" }
|
| 135 |
+
],
|
| 136 |
+
folding: {
|
| 137 |
+
markers: {
|
| 138 |
+
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
| 139 |
+
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
};
|
| 143 |
+
var language = {
|
| 144 |
+
defaultToken: "",
|
| 145 |
+
tokenPostfix: ".st",
|
| 146 |
+
ignoreCase: true,
|
| 147 |
+
brackets: [
|
| 148 |
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
| 149 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 150 |
+
{ token: "delimiter.square", open: "[", close: "]" }
|
| 151 |
+
],
|
| 152 |
+
keywords: [
|
| 153 |
+
"if",
|
| 154 |
+
"end_if",
|
| 155 |
+
"elsif",
|
| 156 |
+
"else",
|
| 157 |
+
"case",
|
| 158 |
+
"of",
|
| 159 |
+
"to",
|
| 160 |
+
"__try",
|
| 161 |
+
"__catch",
|
| 162 |
+
"__finally",
|
| 163 |
+
"do",
|
| 164 |
+
"with",
|
| 165 |
+
"by",
|
| 166 |
+
"while",
|
| 167 |
+
"repeat",
|
| 168 |
+
"end_while",
|
| 169 |
+
"end_repeat",
|
| 170 |
+
"end_case",
|
| 171 |
+
"for",
|
| 172 |
+
"end_for",
|
| 173 |
+
"task",
|
| 174 |
+
"retain",
|
| 175 |
+
"non_retain",
|
| 176 |
+
"constant",
|
| 177 |
+
"with",
|
| 178 |
+
"at",
|
| 179 |
+
"exit",
|
| 180 |
+
"return",
|
| 181 |
+
"interval",
|
| 182 |
+
"priority",
|
| 183 |
+
"address",
|
| 184 |
+
"port",
|
| 185 |
+
"on_channel",
|
| 186 |
+
"then",
|
| 187 |
+
"iec",
|
| 188 |
+
"file",
|
| 189 |
+
"uses",
|
| 190 |
+
"version",
|
| 191 |
+
"packagetype",
|
| 192 |
+
"displayname",
|
| 193 |
+
"copyright",
|
| 194 |
+
"summary",
|
| 195 |
+
"vendor",
|
| 196 |
+
"common_source",
|
| 197 |
+
"from",
|
| 198 |
+
"extends",
|
| 199 |
+
"implements"
|
| 200 |
+
],
|
| 201 |
+
constant: ["false", "true", "null"],
|
| 202 |
+
defineKeywords: [
|
| 203 |
+
"var",
|
| 204 |
+
"var_input",
|
| 205 |
+
"var_output",
|
| 206 |
+
"var_in_out",
|
| 207 |
+
"var_temp",
|
| 208 |
+
"var_global",
|
| 209 |
+
"var_access",
|
| 210 |
+
"var_external",
|
| 211 |
+
"end_var",
|
| 212 |
+
"type",
|
| 213 |
+
"end_type",
|
| 214 |
+
"struct",
|
| 215 |
+
"end_struct",
|
| 216 |
+
"program",
|
| 217 |
+
"end_program",
|
| 218 |
+
"function",
|
| 219 |
+
"end_function",
|
| 220 |
+
"function_block",
|
| 221 |
+
"end_function_block",
|
| 222 |
+
"interface",
|
| 223 |
+
"end_interface",
|
| 224 |
+
"method",
|
| 225 |
+
"end_method",
|
| 226 |
+
"property",
|
| 227 |
+
"end_property",
|
| 228 |
+
"namespace",
|
| 229 |
+
"end_namespace",
|
| 230 |
+
"configuration",
|
| 231 |
+
"end_configuration",
|
| 232 |
+
"tcp",
|
| 233 |
+
"end_tcp",
|
| 234 |
+
"resource",
|
| 235 |
+
"end_resource",
|
| 236 |
+
"channel",
|
| 237 |
+
"end_channel",
|
| 238 |
+
"library",
|
| 239 |
+
"end_library",
|
| 240 |
+
"folder",
|
| 241 |
+
"end_folder",
|
| 242 |
+
"binaries",
|
| 243 |
+
"end_binaries",
|
| 244 |
+
"includes",
|
| 245 |
+
"end_includes",
|
| 246 |
+
"sources",
|
| 247 |
+
"end_sources",
|
| 248 |
+
"action",
|
| 249 |
+
"end_action",
|
| 250 |
+
"step",
|
| 251 |
+
"initial_step",
|
| 252 |
+
"end_step",
|
| 253 |
+
"transaction",
|
| 254 |
+
"end_transaction"
|
| 255 |
+
],
|
| 256 |
+
typeKeywords: [
|
| 257 |
+
"int",
|
| 258 |
+
"sint",
|
| 259 |
+
"dint",
|
| 260 |
+
"lint",
|
| 261 |
+
"usint",
|
| 262 |
+
"uint",
|
| 263 |
+
"udint",
|
| 264 |
+
"ulint",
|
| 265 |
+
"real",
|
| 266 |
+
"lreal",
|
| 267 |
+
"time",
|
| 268 |
+
"date",
|
| 269 |
+
"time_of_day",
|
| 270 |
+
"date_and_time",
|
| 271 |
+
"string",
|
| 272 |
+
"bool",
|
| 273 |
+
"byte",
|
| 274 |
+
"word",
|
| 275 |
+
"dword",
|
| 276 |
+
"array",
|
| 277 |
+
"pointer",
|
| 278 |
+
"lword"
|
| 279 |
+
],
|
| 280 |
+
operators: [
|
| 281 |
+
"=",
|
| 282 |
+
">",
|
| 283 |
+
"<",
|
| 284 |
+
":",
|
| 285 |
+
":=",
|
| 286 |
+
"<=",
|
| 287 |
+
">=",
|
| 288 |
+
"<>",
|
| 289 |
+
"&",
|
| 290 |
+
"+",
|
| 291 |
+
"-",
|
| 292 |
+
"*",
|
| 293 |
+
"**",
|
| 294 |
+
"MOD",
|
| 295 |
+
"^",
|
| 296 |
+
"or",
|
| 297 |
+
"and",
|
| 298 |
+
"not",
|
| 299 |
+
"xor",
|
| 300 |
+
"abs",
|
| 301 |
+
"acos",
|
| 302 |
+
"asin",
|
| 303 |
+
"atan",
|
| 304 |
+
"cos",
|
| 305 |
+
"exp",
|
| 306 |
+
"expt",
|
| 307 |
+
"ln",
|
| 308 |
+
"log",
|
| 309 |
+
"sin",
|
| 310 |
+
"sqrt",
|
| 311 |
+
"tan",
|
| 312 |
+
"sel",
|
| 313 |
+
"max",
|
| 314 |
+
"min",
|
| 315 |
+
"limit",
|
| 316 |
+
"mux",
|
| 317 |
+
"shl",
|
| 318 |
+
"shr",
|
| 319 |
+
"rol",
|
| 320 |
+
"ror",
|
| 321 |
+
"indexof",
|
| 322 |
+
"sizeof",
|
| 323 |
+
"adr",
|
| 324 |
+
"adrinst",
|
| 325 |
+
"bitadr",
|
| 326 |
+
"is_valid",
|
| 327 |
+
"ref",
|
| 328 |
+
"ref_to"
|
| 329 |
+
],
|
| 330 |
+
builtinVariables: [],
|
| 331 |
+
builtinFunctions: [
|
| 332 |
+
"sr",
|
| 333 |
+
"rs",
|
| 334 |
+
"tp",
|
| 335 |
+
"ton",
|
| 336 |
+
"tof",
|
| 337 |
+
"eq",
|
| 338 |
+
"ge",
|
| 339 |
+
"le",
|
| 340 |
+
"lt",
|
| 341 |
+
"ne",
|
| 342 |
+
"round",
|
| 343 |
+
"trunc",
|
| 344 |
+
"ctd",
|
| 345 |
+
"\u0441tu",
|
| 346 |
+
"ctud",
|
| 347 |
+
"r_trig",
|
| 348 |
+
"f_trig",
|
| 349 |
+
"move",
|
| 350 |
+
"concat",
|
| 351 |
+
"delete",
|
| 352 |
+
"find",
|
| 353 |
+
"insert",
|
| 354 |
+
"left",
|
| 355 |
+
"len",
|
| 356 |
+
"replace",
|
| 357 |
+
"right",
|
| 358 |
+
"rtc"
|
| 359 |
+
],
|
| 360 |
+
// we include these common regular expressions
|
| 361 |
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
| 362 |
+
// C# style strings
|
| 363 |
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 364 |
+
// The main tokenizer for our languages
|
| 365 |
+
tokenizer: {
|
| 366 |
+
root: [
|
| 367 |
+
[/(\.\.)/, "delimiter"],
|
| 368 |
+
[/\b(16#[0-9A-Fa-f\_]*)+\b/, "number.hex"],
|
| 369 |
+
[/\b(2#[01\_]+)+\b/, "number.binary"],
|
| 370 |
+
[/\b(8#[0-9\_]*)+\b/, "number.octal"],
|
| 371 |
+
[/\b\d*\.\d+([eE][\-+]?\d+)?\b/, "number.float"],
|
| 372 |
+
[/\b(L?REAL)#[0-9\_\.e]+\b/, "number.float"],
|
| 373 |
+
[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/, "number"],
|
| 374 |
+
[/\d+/, "number"],
|
| 375 |
+
[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, "tag"],
|
| 376 |
+
[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, "tag"],
|
| 377 |
+
[/\%(I|Q|M)[0-9\.]*/, "tag"],
|
| 378 |
+
[/\b[A-Za-z]{1,6}#[0-9]+\b/, "tag"],
|
| 379 |
+
[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, "predefined"],
|
| 380 |
+
[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/, "predefined"],
|
| 381 |
+
[/[;]/, "delimiter"],
|
| 382 |
+
[/[.]/, { token: "delimiter", next: "@params" }],
|
| 383 |
+
// identifiers and keywords
|
| 384 |
+
[
|
| 385 |
+
/[a-zA-Z_]\w*/,
|
| 386 |
+
{
|
| 387 |
+
cases: {
|
| 388 |
+
"@operators": "operators",
|
| 389 |
+
"@keywords": "keyword",
|
| 390 |
+
"@typeKeywords": "type",
|
| 391 |
+
"@defineKeywords": "variable",
|
| 392 |
+
"@constant": "constant",
|
| 393 |
+
"@builtinVariables": "predefined",
|
| 394 |
+
"@builtinFunctions": "predefined",
|
| 395 |
+
"@default": "identifier"
|
| 396 |
+
}
|
| 397 |
+
}
|
| 398 |
+
],
|
| 399 |
+
{ include: "@whitespace" },
|
| 400 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 401 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 402 |
+
// non-teminated string
|
| 403 |
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string_dq" }],
|
| 404 |
+
[/'/, { token: "string.quote", bracket: "@open", next: "@string_sq" }],
|
| 405 |
+
[/'[^\\']'/, "string"],
|
| 406 |
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
| 407 |
+
[/'/, "string.invalid"]
|
| 408 |
+
],
|
| 409 |
+
params: [
|
| 410 |
+
[/\b[A-Za-z0-9_]+\b(?=\()/, { token: "identifier", next: "@pop" }],
|
| 411 |
+
[/\b[A-Za-z0-9_]+\b/, "variable.name", "@pop"]
|
| 412 |
+
],
|
| 413 |
+
comment: [
|
| 414 |
+
[/[^\/*]+/, "comment"],
|
| 415 |
+
[/\/\*/, "comment", "@push"],
|
| 416 |
+
// nested comment
|
| 417 |
+
["\\*/", "comment", "@pop"],
|
| 418 |
+
[/[\/*]/, "comment"]
|
| 419 |
+
],
|
| 420 |
+
comment2: [
|
| 421 |
+
[/[^\(*]+/, "comment"],
|
| 422 |
+
[/\(\*/, "comment", "@push"],
|
| 423 |
+
// nested comment
|
| 424 |
+
["\\*\\)", "comment", "@pop"],
|
| 425 |
+
[/[\(*]/, "comment"]
|
| 426 |
+
],
|
| 427 |
+
whitespace: [
|
| 428 |
+
[/[ \t\r\n]+/, "white"],
|
| 429 |
+
[/\/\/.*$/, "comment"],
|
| 430 |
+
[/\/\*/, "comment", "@comment"],
|
| 431 |
+
[/\(\*/, "comment", "@comment2"]
|
| 432 |
+
],
|
| 433 |
+
string_dq: [
|
| 434 |
+
[/[^\\"]+/, "string"],
|
| 435 |
+
[/@escapes/, "string.escape"],
|
| 436 |
+
[/\\./, "string.escape.invalid"],
|
| 437 |
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
| 438 |
+
],
|
| 439 |
+
string_sq: [
|
| 440 |
+
[/[^\\']+/, "string"],
|
| 441 |
+
[/@escapes/, "string.escape"],
|
| 442 |
+
[/\\./, "string.escape.invalid"],
|
| 443 |
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
| 444 |
+
]
|
| 445 |
+
}
|
| 446 |
+
};
|
| 447 |
+
return __toCommonJS(st_exports);
|
| 448 |
+
})();
|
| 449 |
+
return moduleExports;
|
| 450 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/swift/swift.js
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/swift/swift", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/swift/swift.ts
|
| 29 |
+
var swift_exports = {};
|
| 30 |
+
__export(swift_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "//",
|
| 37 |
+
blockComment: ["/*", "*/"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{", "}"],
|
| 41 |
+
["[", "]"],
|
| 42 |
+
["(", ")"]
|
| 43 |
+
],
|
| 44 |
+
autoClosingPairs: [
|
| 45 |
+
{ open: "{", close: "}" },
|
| 46 |
+
{ open: "[", close: "]" },
|
| 47 |
+
{ open: "(", close: ")" },
|
| 48 |
+
{ open: '"', close: '"' },
|
| 49 |
+
{ open: "'", close: "'" },
|
| 50 |
+
{ open: "`", close: "`" }
|
| 51 |
+
],
|
| 52 |
+
surroundingPairs: [
|
| 53 |
+
{ open: "{", close: "}" },
|
| 54 |
+
{ open: "[", close: "]" },
|
| 55 |
+
{ open: "(", close: ")" },
|
| 56 |
+
{ open: '"', close: '"' },
|
| 57 |
+
{ open: "'", close: "'" },
|
| 58 |
+
{ open: "`", close: "`" }
|
| 59 |
+
]
|
| 60 |
+
};
|
| 61 |
+
var language = {
|
| 62 |
+
defaultToken: "",
|
| 63 |
+
tokenPostfix: ".swift",
|
| 64 |
+
// TODO(owensd): Support the full range of unicode valid identifiers.
|
| 65 |
+
identifier: /[a-zA-Z_][\w$]*/,
|
| 66 |
+
attributes: [
|
| 67 |
+
"@GKInspectable",
|
| 68 |
+
"@IBAction",
|
| 69 |
+
"@IBDesignable",
|
| 70 |
+
"@IBInspectable",
|
| 71 |
+
"@IBOutlet",
|
| 72 |
+
"@IBSegueAction",
|
| 73 |
+
"@NSApplicationMain",
|
| 74 |
+
"@NSCopying",
|
| 75 |
+
"@NSManaged",
|
| 76 |
+
"@Sendable",
|
| 77 |
+
"@UIApplicationMain",
|
| 78 |
+
"@autoclosure",
|
| 79 |
+
"@actorIndependent",
|
| 80 |
+
"@asyncHandler",
|
| 81 |
+
"@available",
|
| 82 |
+
"@convention",
|
| 83 |
+
"@derivative",
|
| 84 |
+
"@differentiable",
|
| 85 |
+
"@discardableResult",
|
| 86 |
+
"@dynamicCallable",
|
| 87 |
+
"@dynamicMemberLookup",
|
| 88 |
+
"@escaping",
|
| 89 |
+
"@frozen",
|
| 90 |
+
"@globalActor",
|
| 91 |
+
"@inlinable",
|
| 92 |
+
"@inline",
|
| 93 |
+
"@main",
|
| 94 |
+
"@noDerivative",
|
| 95 |
+
"@nonobjc",
|
| 96 |
+
"@noreturn",
|
| 97 |
+
"@objc",
|
| 98 |
+
"@objcMembers",
|
| 99 |
+
"@preconcurrency",
|
| 100 |
+
"@propertyWrapper",
|
| 101 |
+
"@requires_stored_property_inits",
|
| 102 |
+
"@resultBuilder",
|
| 103 |
+
"@testable",
|
| 104 |
+
"@unchecked",
|
| 105 |
+
"@unknown",
|
| 106 |
+
"@usableFromInline",
|
| 107 |
+
"@warn_unqualified_access"
|
| 108 |
+
],
|
| 109 |
+
accessmodifiers: ["open", "public", "internal", "fileprivate", "private"],
|
| 110 |
+
keywords: [
|
| 111 |
+
"#available",
|
| 112 |
+
"#colorLiteral",
|
| 113 |
+
"#column",
|
| 114 |
+
"#dsohandle",
|
| 115 |
+
"#else",
|
| 116 |
+
"#elseif",
|
| 117 |
+
"#endif",
|
| 118 |
+
"#error",
|
| 119 |
+
"#file",
|
| 120 |
+
"#fileID",
|
| 121 |
+
"#fileLiteral",
|
| 122 |
+
"#filePath",
|
| 123 |
+
"#function",
|
| 124 |
+
"#if",
|
| 125 |
+
"#imageLiteral",
|
| 126 |
+
"#keyPath",
|
| 127 |
+
"#line",
|
| 128 |
+
"#selector",
|
| 129 |
+
"#sourceLocation",
|
| 130 |
+
"#warning",
|
| 131 |
+
"Any",
|
| 132 |
+
"Protocol",
|
| 133 |
+
"Self",
|
| 134 |
+
"Type",
|
| 135 |
+
"actor",
|
| 136 |
+
"as",
|
| 137 |
+
"assignment",
|
| 138 |
+
"associatedtype",
|
| 139 |
+
"associativity",
|
| 140 |
+
"async",
|
| 141 |
+
"await",
|
| 142 |
+
"break",
|
| 143 |
+
"case",
|
| 144 |
+
"catch",
|
| 145 |
+
"class",
|
| 146 |
+
"continue",
|
| 147 |
+
"convenience",
|
| 148 |
+
"default",
|
| 149 |
+
"defer",
|
| 150 |
+
"deinit",
|
| 151 |
+
"didSet",
|
| 152 |
+
"do",
|
| 153 |
+
"dynamic",
|
| 154 |
+
"dynamicType",
|
| 155 |
+
"else",
|
| 156 |
+
"enum",
|
| 157 |
+
"extension",
|
| 158 |
+
"fallthrough",
|
| 159 |
+
"false",
|
| 160 |
+
"fileprivate",
|
| 161 |
+
"final",
|
| 162 |
+
"for",
|
| 163 |
+
"func",
|
| 164 |
+
"get",
|
| 165 |
+
"guard",
|
| 166 |
+
"higherThan",
|
| 167 |
+
"if",
|
| 168 |
+
"import",
|
| 169 |
+
"in",
|
| 170 |
+
"indirect",
|
| 171 |
+
"infix",
|
| 172 |
+
"init",
|
| 173 |
+
"inout",
|
| 174 |
+
"internal",
|
| 175 |
+
"is",
|
| 176 |
+
"isolated",
|
| 177 |
+
"lazy",
|
| 178 |
+
"left",
|
| 179 |
+
"let",
|
| 180 |
+
"lowerThan",
|
| 181 |
+
"mutating",
|
| 182 |
+
"nil",
|
| 183 |
+
"none",
|
| 184 |
+
"nonisolated",
|
| 185 |
+
"nonmutating",
|
| 186 |
+
"open",
|
| 187 |
+
"operator",
|
| 188 |
+
"optional",
|
| 189 |
+
"override",
|
| 190 |
+
"postfix",
|
| 191 |
+
"precedence",
|
| 192 |
+
"precedencegroup",
|
| 193 |
+
"prefix",
|
| 194 |
+
"private",
|
| 195 |
+
"protocol",
|
| 196 |
+
"public",
|
| 197 |
+
"repeat",
|
| 198 |
+
"required",
|
| 199 |
+
"rethrows",
|
| 200 |
+
"return",
|
| 201 |
+
"right",
|
| 202 |
+
"safe",
|
| 203 |
+
"self",
|
| 204 |
+
"set",
|
| 205 |
+
"some",
|
| 206 |
+
"static",
|
| 207 |
+
"struct",
|
| 208 |
+
"subscript",
|
| 209 |
+
"super",
|
| 210 |
+
"switch",
|
| 211 |
+
"throw",
|
| 212 |
+
"throws",
|
| 213 |
+
"true",
|
| 214 |
+
"try",
|
| 215 |
+
"typealias",
|
| 216 |
+
"unowned",
|
| 217 |
+
"unsafe",
|
| 218 |
+
"var",
|
| 219 |
+
"weak",
|
| 220 |
+
"where",
|
| 221 |
+
"while",
|
| 222 |
+
"willSet",
|
| 223 |
+
"__consuming",
|
| 224 |
+
"__owned"
|
| 225 |
+
],
|
| 226 |
+
symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,
|
| 227 |
+
// Moved . to operatorstart so it can be a delimiter
|
| 228 |
+
operatorstart: /[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,
|
| 229 |
+
operatorend: /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,
|
| 230 |
+
operators: /(@operatorstart)((@operatorstart)|(@operatorend))*/,
|
| 231 |
+
// TODO(owensd): These are borrowed from C#; need to validate correctness for Swift.
|
| 232 |
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 233 |
+
tokenizer: {
|
| 234 |
+
root: [
|
| 235 |
+
{ include: "@whitespace" },
|
| 236 |
+
{ include: "@comment" },
|
| 237 |
+
{ include: "@attribute" },
|
| 238 |
+
{ include: "@literal" },
|
| 239 |
+
{ include: "@keyword" },
|
| 240 |
+
{ include: "@invokedmethod" },
|
| 241 |
+
{ include: "@symbol" }
|
| 242 |
+
],
|
| 243 |
+
whitespace: [
|
| 244 |
+
[/\s+/, "white"],
|
| 245 |
+
[/"""/, "string.quote", "@endDblDocString"]
|
| 246 |
+
],
|
| 247 |
+
endDblDocString: [
|
| 248 |
+
[/[^"]+/, "string"],
|
| 249 |
+
[/\\"/, "string"],
|
| 250 |
+
[/"""/, "string.quote", "@popall"],
|
| 251 |
+
[/"/, "string"]
|
| 252 |
+
],
|
| 253 |
+
symbol: [
|
| 254 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 255 |
+
[/[<>](?!@symbols)/, "@brackets"],
|
| 256 |
+
[/[.]/, "delimiter"],
|
| 257 |
+
[/@operators/, "operator"],
|
| 258 |
+
[/@symbols/, "operator"]
|
| 259 |
+
],
|
| 260 |
+
comment: [
|
| 261 |
+
[/\/\/\/.*$/, "comment.doc"],
|
| 262 |
+
[/\/\*\*/, "comment.doc", "@commentdocbody"],
|
| 263 |
+
[/\/\/.*$/, "comment"],
|
| 264 |
+
[/\/\*/, "comment", "@commentbody"]
|
| 265 |
+
],
|
| 266 |
+
commentdocbody: [
|
| 267 |
+
[/\/\*/, "comment", "@commentbody"],
|
| 268 |
+
[/\*\//, "comment.doc", "@pop"],
|
| 269 |
+
[/\:[a-zA-Z]+\:/, "comment.doc.param"],
|
| 270 |
+
[/./, "comment.doc"]
|
| 271 |
+
],
|
| 272 |
+
commentbody: [
|
| 273 |
+
[/\/\*/, "comment", "@commentbody"],
|
| 274 |
+
[/\*\//, "comment", "@pop"],
|
| 275 |
+
[/./, "comment"]
|
| 276 |
+
],
|
| 277 |
+
attribute: [
|
| 278 |
+
[
|
| 279 |
+
/@@@identifier/,
|
| 280 |
+
{
|
| 281 |
+
cases: {
|
| 282 |
+
"@attributes": "keyword.control",
|
| 283 |
+
"@default": ""
|
| 284 |
+
}
|
| 285 |
+
}
|
| 286 |
+
]
|
| 287 |
+
],
|
| 288 |
+
literal: [
|
| 289 |
+
[/"/, { token: "string.quote", next: "@stringlit" }],
|
| 290 |
+
[/0[b]([01]_?)+/, "number.binary"],
|
| 291 |
+
[/0[o]([0-7]_?)+/, "number.octal"],
|
| 292 |
+
[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/, "number.hex"],
|
| 293 |
+
[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/, "number.float"],
|
| 294 |
+
[/(\d_?)+/, "number"]
|
| 295 |
+
],
|
| 296 |
+
stringlit: [
|
| 297 |
+
[/\\\(/, { token: "operator", next: "@interpolatedexpression" }],
|
| 298 |
+
[/@escapes/, "string"],
|
| 299 |
+
[/\\./, "string.escape.invalid"],
|
| 300 |
+
[/"/, { token: "string.quote", next: "@pop" }],
|
| 301 |
+
[/./, "string"]
|
| 302 |
+
],
|
| 303 |
+
interpolatedexpression: [
|
| 304 |
+
[/\(/, { token: "operator", next: "@interpolatedexpression" }],
|
| 305 |
+
[/\)/, { token: "operator", next: "@pop" }],
|
| 306 |
+
{ include: "@literal" },
|
| 307 |
+
{ include: "@keyword" },
|
| 308 |
+
{ include: "@symbol" }
|
| 309 |
+
],
|
| 310 |
+
keyword: [
|
| 311 |
+
[/`/, { token: "operator", next: "@escapedkeyword" }],
|
| 312 |
+
[
|
| 313 |
+
/@identifier/,
|
| 314 |
+
{
|
| 315 |
+
cases: {
|
| 316 |
+
"@keywords": "keyword",
|
| 317 |
+
"[A-Z][a-zA-Z0-9$]*": "type.identifier",
|
| 318 |
+
"@default": "identifier"
|
| 319 |
+
}
|
| 320 |
+
}
|
| 321 |
+
]
|
| 322 |
+
],
|
| 323 |
+
escapedkeyword: [
|
| 324 |
+
[/`/, { token: "operator", next: "@pop" }],
|
| 325 |
+
[/./, "identifier"]
|
| 326 |
+
],
|
| 327 |
+
invokedmethod: [
|
| 328 |
+
[
|
| 329 |
+
/([.])(@identifier)/,
|
| 330 |
+
{
|
| 331 |
+
cases: {
|
| 332 |
+
$2: ["delimeter", "type.identifier"],
|
| 333 |
+
"@default": ""
|
| 334 |
+
}
|
| 335 |
+
}
|
| 336 |
+
]
|
| 337 |
+
]
|
| 338 |
+
}
|
| 339 |
+
};
|
| 340 |
+
return __toCommonJS(swift_exports);
|
| 341 |
+
})();
|
| 342 |
+
/*!---------------------------------------------------------------------------------------------
|
| 343 |
+
* Copyright (C) David Owens II, owensd.io. All rights reserved.
|
| 344 |
+
*--------------------------------------------------------------------------------------------*/
|
| 345 |
+
return moduleExports;
|
| 346 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/systemverilog/systemverilog.js
ADDED
|
@@ -0,0 +1,610 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/systemverilog/systemverilog", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/systemverilog/systemverilog.ts
|
| 29 |
+
var systemverilog_exports = {};
|
| 30 |
+
__export(systemverilog_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
comments: {
|
| 36 |
+
lineComment: "//",
|
| 37 |
+
blockComment: ["/*", "*/"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{", "}"],
|
| 41 |
+
["[", "]"],
|
| 42 |
+
["(", ")"],
|
| 43 |
+
["begin", "end"],
|
| 44 |
+
["case", "endcase"],
|
| 45 |
+
["casex", "endcase"],
|
| 46 |
+
["casez", "endcase"],
|
| 47 |
+
["checker", "endchecker"],
|
| 48 |
+
["class", "endclass"],
|
| 49 |
+
["clocking", "endclocking"],
|
| 50 |
+
["config", "endconfig"],
|
| 51 |
+
["function", "endfunction"],
|
| 52 |
+
["generate", "endgenerate"],
|
| 53 |
+
["group", "endgroup"],
|
| 54 |
+
["interface", "endinterface"],
|
| 55 |
+
["module", "endmodule"],
|
| 56 |
+
["package", "endpackage"],
|
| 57 |
+
["primitive", "endprimitive"],
|
| 58 |
+
["program", "endprogram"],
|
| 59 |
+
["property", "endproperty"],
|
| 60 |
+
["specify", "endspecify"],
|
| 61 |
+
["sequence", "endsequence"],
|
| 62 |
+
["table", "endtable"],
|
| 63 |
+
["task", "endtask"]
|
| 64 |
+
],
|
| 65 |
+
autoClosingPairs: [
|
| 66 |
+
{ open: "[", close: "]" },
|
| 67 |
+
{ open: "{", close: "}" },
|
| 68 |
+
{ open: "(", close: ")" },
|
| 69 |
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
| 70 |
+
{ open: '"', close: '"', notIn: ["string"] }
|
| 71 |
+
],
|
| 72 |
+
surroundingPairs: [
|
| 73 |
+
{ open: "{", close: "}" },
|
| 74 |
+
{ open: "[", close: "]" },
|
| 75 |
+
{ open: "(", close: ")" },
|
| 76 |
+
{ open: '"', close: '"' },
|
| 77 |
+
{ open: "'", close: "'" }
|
| 78 |
+
],
|
| 79 |
+
folding: {
|
| 80 |
+
offSide: false,
|
| 81 |
+
markers: {
|
| 82 |
+
start: new RegExp(
|
| 83 |
+
"^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"
|
| 84 |
+
),
|
| 85 |
+
end: new RegExp(
|
| 86 |
+
"^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b"
|
| 87 |
+
)
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
};
|
| 91 |
+
var language = {
|
| 92 |
+
defaultToken: "",
|
| 93 |
+
tokenPostfix: ".sv",
|
| 94 |
+
brackets: [
|
| 95 |
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
| 96 |
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
| 97 |
+
{ token: "delimiter.square", open: "[", close: "]" },
|
| 98 |
+
{ token: "delimiter.angle", open: "<", close: ">" }
|
| 99 |
+
],
|
| 100 |
+
keywords: [
|
| 101 |
+
"accept_on",
|
| 102 |
+
"alias",
|
| 103 |
+
"always",
|
| 104 |
+
"always_comb",
|
| 105 |
+
"always_ff",
|
| 106 |
+
"always_latch",
|
| 107 |
+
"and",
|
| 108 |
+
"assert",
|
| 109 |
+
"assign",
|
| 110 |
+
"assume",
|
| 111 |
+
"automatic",
|
| 112 |
+
"before",
|
| 113 |
+
"begin",
|
| 114 |
+
"bind",
|
| 115 |
+
"bins",
|
| 116 |
+
"binsof",
|
| 117 |
+
"bit",
|
| 118 |
+
"break",
|
| 119 |
+
"buf",
|
| 120 |
+
"bufif0",
|
| 121 |
+
"bufif1",
|
| 122 |
+
"byte",
|
| 123 |
+
"case",
|
| 124 |
+
"casex",
|
| 125 |
+
"casez",
|
| 126 |
+
"cell",
|
| 127 |
+
"chandle",
|
| 128 |
+
"checker",
|
| 129 |
+
"class",
|
| 130 |
+
"clocking",
|
| 131 |
+
"cmos",
|
| 132 |
+
"config",
|
| 133 |
+
"const",
|
| 134 |
+
"constraint",
|
| 135 |
+
"context",
|
| 136 |
+
"continue",
|
| 137 |
+
"cover",
|
| 138 |
+
"covergroup",
|
| 139 |
+
"coverpoint",
|
| 140 |
+
"cross",
|
| 141 |
+
"deassign",
|
| 142 |
+
"default",
|
| 143 |
+
"defparam",
|
| 144 |
+
"design",
|
| 145 |
+
"disable",
|
| 146 |
+
"dist",
|
| 147 |
+
"do",
|
| 148 |
+
"edge",
|
| 149 |
+
"else",
|
| 150 |
+
"end",
|
| 151 |
+
"endcase",
|
| 152 |
+
"endchecker",
|
| 153 |
+
"endclass",
|
| 154 |
+
"endclocking",
|
| 155 |
+
"endconfig",
|
| 156 |
+
"endfunction",
|
| 157 |
+
"endgenerate",
|
| 158 |
+
"endgroup",
|
| 159 |
+
"endinterface",
|
| 160 |
+
"endmodule",
|
| 161 |
+
"endpackage",
|
| 162 |
+
"endprimitive",
|
| 163 |
+
"endprogram",
|
| 164 |
+
"endproperty",
|
| 165 |
+
"endspecify",
|
| 166 |
+
"endsequence",
|
| 167 |
+
"endtable",
|
| 168 |
+
"endtask",
|
| 169 |
+
"enum",
|
| 170 |
+
"event",
|
| 171 |
+
"eventually",
|
| 172 |
+
"expect",
|
| 173 |
+
"export",
|
| 174 |
+
"extends",
|
| 175 |
+
"extern",
|
| 176 |
+
"final",
|
| 177 |
+
"first_match",
|
| 178 |
+
"for",
|
| 179 |
+
"force",
|
| 180 |
+
"foreach",
|
| 181 |
+
"forever",
|
| 182 |
+
"fork",
|
| 183 |
+
"forkjoin",
|
| 184 |
+
"function",
|
| 185 |
+
"generate",
|
| 186 |
+
"genvar",
|
| 187 |
+
"global",
|
| 188 |
+
"highz0",
|
| 189 |
+
"highz1",
|
| 190 |
+
"if",
|
| 191 |
+
"iff",
|
| 192 |
+
"ifnone",
|
| 193 |
+
"ignore_bins",
|
| 194 |
+
"illegal_bins",
|
| 195 |
+
"implements",
|
| 196 |
+
"implies",
|
| 197 |
+
"import",
|
| 198 |
+
"incdir",
|
| 199 |
+
"include",
|
| 200 |
+
"initial",
|
| 201 |
+
"inout",
|
| 202 |
+
"input",
|
| 203 |
+
"inside",
|
| 204 |
+
"instance",
|
| 205 |
+
"int",
|
| 206 |
+
"integer",
|
| 207 |
+
"interconnect",
|
| 208 |
+
"interface",
|
| 209 |
+
"intersect",
|
| 210 |
+
"join",
|
| 211 |
+
"join_any",
|
| 212 |
+
"join_none",
|
| 213 |
+
"large",
|
| 214 |
+
"let",
|
| 215 |
+
"liblist",
|
| 216 |
+
"library",
|
| 217 |
+
"local",
|
| 218 |
+
"localparam",
|
| 219 |
+
"logic",
|
| 220 |
+
"longint",
|
| 221 |
+
"macromodule",
|
| 222 |
+
"matches",
|
| 223 |
+
"medium",
|
| 224 |
+
"modport",
|
| 225 |
+
"module",
|
| 226 |
+
"nand",
|
| 227 |
+
"negedge",
|
| 228 |
+
"nettype",
|
| 229 |
+
"new",
|
| 230 |
+
"nexttime",
|
| 231 |
+
"nmos",
|
| 232 |
+
"nor",
|
| 233 |
+
"noshowcancelled",
|
| 234 |
+
"not",
|
| 235 |
+
"notif0",
|
| 236 |
+
"notif1",
|
| 237 |
+
"null",
|
| 238 |
+
"or",
|
| 239 |
+
"output",
|
| 240 |
+
"package",
|
| 241 |
+
"packed",
|
| 242 |
+
"parameter",
|
| 243 |
+
"pmos",
|
| 244 |
+
"posedge",
|
| 245 |
+
"primitive",
|
| 246 |
+
"priority",
|
| 247 |
+
"program",
|
| 248 |
+
"property",
|
| 249 |
+
"protected",
|
| 250 |
+
"pull0",
|
| 251 |
+
"pull1",
|
| 252 |
+
"pulldown",
|
| 253 |
+
"pullup",
|
| 254 |
+
"pulsestyle_ondetect",
|
| 255 |
+
"pulsestyle_onevent",
|
| 256 |
+
"pure",
|
| 257 |
+
"rand",
|
| 258 |
+
"randc",
|
| 259 |
+
"randcase",
|
| 260 |
+
"randsequence",
|
| 261 |
+
"rcmos",
|
| 262 |
+
"real",
|
| 263 |
+
"realtime",
|
| 264 |
+
"ref",
|
| 265 |
+
"reg",
|
| 266 |
+
"reject_on",
|
| 267 |
+
"release",
|
| 268 |
+
"repeat",
|
| 269 |
+
"restrict",
|
| 270 |
+
"return",
|
| 271 |
+
"rnmos",
|
| 272 |
+
"rpmos",
|
| 273 |
+
"rtran",
|
| 274 |
+
"rtranif0",
|
| 275 |
+
"rtranif1",
|
| 276 |
+
"s_always",
|
| 277 |
+
"s_eventually",
|
| 278 |
+
"s_nexttime",
|
| 279 |
+
"s_until",
|
| 280 |
+
"s_until_with",
|
| 281 |
+
"scalared",
|
| 282 |
+
"sequence",
|
| 283 |
+
"shortint",
|
| 284 |
+
"shortreal",
|
| 285 |
+
"showcancelled",
|
| 286 |
+
"signed",
|
| 287 |
+
"small",
|
| 288 |
+
"soft",
|
| 289 |
+
"solve",
|
| 290 |
+
"specify",
|
| 291 |
+
"specparam",
|
| 292 |
+
"static",
|
| 293 |
+
"string",
|
| 294 |
+
"strong",
|
| 295 |
+
"strong0",
|
| 296 |
+
"strong1",
|
| 297 |
+
"struct",
|
| 298 |
+
"super",
|
| 299 |
+
"supply0",
|
| 300 |
+
"supply1",
|
| 301 |
+
"sync_accept_on",
|
| 302 |
+
"sync_reject_on",
|
| 303 |
+
"table",
|
| 304 |
+
"tagged",
|
| 305 |
+
"task",
|
| 306 |
+
"this",
|
| 307 |
+
"throughout",
|
| 308 |
+
"time",
|
| 309 |
+
"timeprecision",
|
| 310 |
+
"timeunit",
|
| 311 |
+
"tran",
|
| 312 |
+
"tranif0",
|
| 313 |
+
"tranif1",
|
| 314 |
+
"tri",
|
| 315 |
+
"tri0",
|
| 316 |
+
"tri1",
|
| 317 |
+
"triand",
|
| 318 |
+
"trior",
|
| 319 |
+
"trireg",
|
| 320 |
+
"type",
|
| 321 |
+
"typedef",
|
| 322 |
+
"union",
|
| 323 |
+
"unique",
|
| 324 |
+
"unique0",
|
| 325 |
+
"unsigned",
|
| 326 |
+
"until",
|
| 327 |
+
"until_with",
|
| 328 |
+
"untyped",
|
| 329 |
+
"use",
|
| 330 |
+
"uwire",
|
| 331 |
+
"var",
|
| 332 |
+
"vectored",
|
| 333 |
+
"virtual",
|
| 334 |
+
"void",
|
| 335 |
+
"wait",
|
| 336 |
+
"wait_order",
|
| 337 |
+
"wand",
|
| 338 |
+
"weak",
|
| 339 |
+
"weak0",
|
| 340 |
+
"weak1",
|
| 341 |
+
"while",
|
| 342 |
+
"wildcard",
|
| 343 |
+
"wire",
|
| 344 |
+
"with",
|
| 345 |
+
"within",
|
| 346 |
+
"wor",
|
| 347 |
+
"xnor",
|
| 348 |
+
"xor"
|
| 349 |
+
],
|
| 350 |
+
builtin_gates: [
|
| 351 |
+
"and",
|
| 352 |
+
"nand",
|
| 353 |
+
"nor",
|
| 354 |
+
"or",
|
| 355 |
+
"xor",
|
| 356 |
+
"xnor",
|
| 357 |
+
"buf",
|
| 358 |
+
"not",
|
| 359 |
+
"bufif0",
|
| 360 |
+
"bufif1",
|
| 361 |
+
"notif1",
|
| 362 |
+
"notif0",
|
| 363 |
+
"cmos",
|
| 364 |
+
"nmos",
|
| 365 |
+
"pmos",
|
| 366 |
+
"rcmos",
|
| 367 |
+
"rnmos",
|
| 368 |
+
"rpmos",
|
| 369 |
+
"tran",
|
| 370 |
+
"tranif1",
|
| 371 |
+
"tranif0",
|
| 372 |
+
"rtran",
|
| 373 |
+
"rtranif1",
|
| 374 |
+
"rtranif0"
|
| 375 |
+
],
|
| 376 |
+
operators: [
|
| 377 |
+
// assignment operators
|
| 378 |
+
"=",
|
| 379 |
+
"+=",
|
| 380 |
+
"-=",
|
| 381 |
+
"*=",
|
| 382 |
+
"/=",
|
| 383 |
+
"%=",
|
| 384 |
+
"&=",
|
| 385 |
+
"|=",
|
| 386 |
+
"^=",
|
| 387 |
+
"<<=",
|
| 388 |
+
">>+",
|
| 389 |
+
"<<<=",
|
| 390 |
+
">>>=",
|
| 391 |
+
// conditional expression
|
| 392 |
+
"?",
|
| 393 |
+
":",
|
| 394 |
+
// Unary operators
|
| 395 |
+
"+",
|
| 396 |
+
"-",
|
| 397 |
+
"!",
|
| 398 |
+
"~",
|
| 399 |
+
"&",
|
| 400 |
+
"~&",
|
| 401 |
+
"|",
|
| 402 |
+
"~|",
|
| 403 |
+
"^",
|
| 404 |
+
"~^",
|
| 405 |
+
"^~",
|
| 406 |
+
//binary operators
|
| 407 |
+
"+",
|
| 408 |
+
"-",
|
| 409 |
+
"*",
|
| 410 |
+
"/",
|
| 411 |
+
"%",
|
| 412 |
+
"==",
|
| 413 |
+
"!=",
|
| 414 |
+
"===",
|
| 415 |
+
"!==",
|
| 416 |
+
"==?",
|
| 417 |
+
"!=?",
|
| 418 |
+
"&&",
|
| 419 |
+
"||",
|
| 420 |
+
"**",
|
| 421 |
+
"<",
|
| 422 |
+
"<=",
|
| 423 |
+
">",
|
| 424 |
+
">=",
|
| 425 |
+
"&",
|
| 426 |
+
"|",
|
| 427 |
+
"^",
|
| 428 |
+
">>",
|
| 429 |
+
"<<",
|
| 430 |
+
">>>",
|
| 431 |
+
"<<<",
|
| 432 |
+
// increment or decrement operator
|
| 433 |
+
"++",
|
| 434 |
+
"--",
|
| 435 |
+
//binary logical operator
|
| 436 |
+
"->",
|
| 437 |
+
"<->",
|
| 438 |
+
// binary set membership operator
|
| 439 |
+
"inside",
|
| 440 |
+
// binary distrubution operator
|
| 441 |
+
"dist",
|
| 442 |
+
"::",
|
| 443 |
+
"+:",
|
| 444 |
+
"-:",
|
| 445 |
+
"*>",
|
| 446 |
+
"&&&",
|
| 447 |
+
"|->",
|
| 448 |
+
"|=>",
|
| 449 |
+
"#=#"
|
| 450 |
+
],
|
| 451 |
+
// we include these common regular expressions
|
| 452 |
+
symbols: /[=><!~?:&|+\-*\/\^%#]+/,
|
| 453 |
+
escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
|
| 454 |
+
identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
|
| 455 |
+
systemcall: /[$][a-zA-Z0-9_]+/,
|
| 456 |
+
timeunits: /s|ms|us|ns|ps|fs/,
|
| 457 |
+
// The main tokenizer for our languages
|
| 458 |
+
tokenizer: {
|
| 459 |
+
root: [
|
| 460 |
+
// module instances
|
| 461 |
+
[
|
| 462 |
+
/^(\s*)(@identifier)/,
|
| 463 |
+
[
|
| 464 |
+
"",
|
| 465 |
+
{
|
| 466 |
+
cases: {
|
| 467 |
+
"@builtin_gates": {
|
| 468 |
+
token: "keyword.$2",
|
| 469 |
+
next: "@module_instance"
|
| 470 |
+
},
|
| 471 |
+
table: {
|
| 472 |
+
token: "keyword.$2",
|
| 473 |
+
next: "@table"
|
| 474 |
+
},
|
| 475 |
+
"@keywords": { token: "keyword.$2" },
|
| 476 |
+
"@default": {
|
| 477 |
+
token: "identifier",
|
| 478 |
+
next: "@module_instance"
|
| 479 |
+
}
|
| 480 |
+
}
|
| 481 |
+
}
|
| 482 |
+
]
|
| 483 |
+
],
|
| 484 |
+
// include statements
|
| 485 |
+
[/^\s*`include/, { token: "keyword.directive.include", next: "@include" }],
|
| 486 |
+
// Preprocessor directives
|
| 487 |
+
[/^\s*`\s*\w+/, "keyword"],
|
| 488 |
+
// identifiers and keywords
|
| 489 |
+
{ include: "@identifier_or_keyword" },
|
| 490 |
+
// whitespace and comments
|
| 491 |
+
{ include: "@whitespace" },
|
| 492 |
+
// (* attributes *).
|
| 493 |
+
[/\(\*.*\*\)/, "annotation"],
|
| 494 |
+
// Systemcall
|
| 495 |
+
[/@systemcall/, "variable.predefined"],
|
| 496 |
+
// delimiters and operators
|
| 497 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 498 |
+
[/[<>](?!@symbols)/, "@brackets"],
|
| 499 |
+
[
|
| 500 |
+
/@symbols/,
|
| 501 |
+
{
|
| 502 |
+
cases: {
|
| 503 |
+
"@operators": "delimiter",
|
| 504 |
+
"@default": ""
|
| 505 |
+
}
|
| 506 |
+
}
|
| 507 |
+
],
|
| 508 |
+
// numbers
|
| 509 |
+
{ include: "@numbers" },
|
| 510 |
+
// delimiter: after number because of .\d floats
|
| 511 |
+
[/[;,.]/, "delimiter"],
|
| 512 |
+
// strings
|
| 513 |
+
{ include: "@strings" }
|
| 514 |
+
],
|
| 515 |
+
identifier_or_keyword: [
|
| 516 |
+
[
|
| 517 |
+
/@identifier/,
|
| 518 |
+
{
|
| 519 |
+
cases: {
|
| 520 |
+
"@keywords": { token: "keyword.$0" },
|
| 521 |
+
"@default": "identifier"
|
| 522 |
+
}
|
| 523 |
+
}
|
| 524 |
+
]
|
| 525 |
+
],
|
| 526 |
+
numbers: [
|
| 527 |
+
[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"],
|
| 528 |
+
[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"],
|
| 529 |
+
[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"],
|
| 530 |
+
[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"],
|
| 531 |
+
[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"],
|
| 532 |
+
[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"],
|
| 533 |
+
[/1step/, "number"],
|
| 534 |
+
[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"],
|
| 535 |
+
[/'[01xXzZ]+/, "number"]
|
| 536 |
+
],
|
| 537 |
+
module_instance: [
|
| 538 |
+
{ include: "@whitespace" },
|
| 539 |
+
[/(#?)(\()/, ["", { token: "@brackets", next: "@port_connection" }]],
|
| 540 |
+
[/@identifier\s*[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
|
| 541 |
+
[/@symbols|[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
|
| 542 |
+
[/@identifier/, "type"],
|
| 543 |
+
[/;/, "delimiter", "@pop"]
|
| 544 |
+
],
|
| 545 |
+
port_connection: [
|
| 546 |
+
{ include: "@identifier_or_keyword" },
|
| 547 |
+
{ include: "@whitespace" },
|
| 548 |
+
[/@systemcall/, "variable.predefined"],
|
| 549 |
+
{ include: "@numbers" },
|
| 550 |
+
{ include: "@strings" },
|
| 551 |
+
[/[,]/, "delimiter"],
|
| 552 |
+
[/\(/, "@brackets", "@port_connection"],
|
| 553 |
+
[/\)/, "@brackets", "@pop"]
|
| 554 |
+
],
|
| 555 |
+
whitespace: [
|
| 556 |
+
[/[ \t\r\n]+/, ""],
|
| 557 |
+
[/\/\*/, "comment", "@comment"],
|
| 558 |
+
[/\/\/.*$/, "comment"]
|
| 559 |
+
],
|
| 560 |
+
comment: [
|
| 561 |
+
[/[^\/*]+/, "comment"],
|
| 562 |
+
[/\*\//, "comment", "@pop"],
|
| 563 |
+
[/[\/*]/, "comment"]
|
| 564 |
+
],
|
| 565 |
+
strings: [
|
| 566 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 567 |
+
// non-teminated string
|
| 568 |
+
[/"/, "string", "@string"]
|
| 569 |
+
],
|
| 570 |
+
string: [
|
| 571 |
+
[/[^\\"]+/, "string"],
|
| 572 |
+
[/@escapes/, "string.escape"],
|
| 573 |
+
[/\\./, "string.escape.invalid"],
|
| 574 |
+
[/"/, "string", "@pop"]
|
| 575 |
+
],
|
| 576 |
+
include: [
|
| 577 |
+
[
|
| 578 |
+
/(\s*)(")([\w*\/*]*)(.\w*)(")/,
|
| 579 |
+
[
|
| 580 |
+
"",
|
| 581 |
+
"string.include.identifier",
|
| 582 |
+
"string.include.identifier",
|
| 583 |
+
"string.include.identifier",
|
| 584 |
+
{ token: "string.include.identifier", next: "@pop" }
|
| 585 |
+
]
|
| 586 |
+
],
|
| 587 |
+
[
|
| 588 |
+
/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,
|
| 589 |
+
[
|
| 590 |
+
"",
|
| 591 |
+
"string.include.identifier",
|
| 592 |
+
"string.include.identifier",
|
| 593 |
+
"string.include.identifier",
|
| 594 |
+
{ token: "string.include.identifier", next: "@pop" }
|
| 595 |
+
]
|
| 596 |
+
]
|
| 597 |
+
],
|
| 598 |
+
table: [
|
| 599 |
+
{ include: "@whitespace" },
|
| 600 |
+
[/[()]/, "@brackets"],
|
| 601 |
+
[/[:;]/, "delimiter"],
|
| 602 |
+
[/[01\-*?xXbBrRfFpPnN]/, "variable.predefined"],
|
| 603 |
+
["endtable", "keyword.endtable", "@pop"]
|
| 604 |
+
]
|
| 605 |
+
}
|
| 606 |
+
};
|
| 607 |
+
return __toCommonJS(systemverilog_exports);
|
| 608 |
+
})();
|
| 609 |
+
return moduleExports;
|
| 610 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/tcl/tcl.js
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/tcl/tcl", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/tcl/tcl.ts
|
| 29 |
+
var tcl_exports = {};
|
| 30 |
+
__export(tcl_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
brackets: [
|
| 36 |
+
["{", "}"],
|
| 37 |
+
["[", "]"],
|
| 38 |
+
["(", ")"]
|
| 39 |
+
],
|
| 40 |
+
autoClosingPairs: [
|
| 41 |
+
{ open: "{", close: "}" },
|
| 42 |
+
{ open: "[", close: "]" },
|
| 43 |
+
{ open: "(", close: ")" },
|
| 44 |
+
{ open: '"', close: '"' },
|
| 45 |
+
{ open: "'", close: "'" }
|
| 46 |
+
],
|
| 47 |
+
surroundingPairs: [
|
| 48 |
+
{ open: "{", close: "}" },
|
| 49 |
+
{ open: "[", close: "]" },
|
| 50 |
+
{ open: "(", close: ")" },
|
| 51 |
+
{ open: '"', close: '"' },
|
| 52 |
+
{ open: "'", close: "'" }
|
| 53 |
+
]
|
| 54 |
+
};
|
| 55 |
+
var language = {
|
| 56 |
+
tokenPostfix: ".tcl",
|
| 57 |
+
specialFunctions: [
|
| 58 |
+
"set",
|
| 59 |
+
"unset",
|
| 60 |
+
"rename",
|
| 61 |
+
"variable",
|
| 62 |
+
"proc",
|
| 63 |
+
"coroutine",
|
| 64 |
+
"foreach",
|
| 65 |
+
"incr",
|
| 66 |
+
"append",
|
| 67 |
+
"lappend",
|
| 68 |
+
"linsert",
|
| 69 |
+
"lreplace"
|
| 70 |
+
],
|
| 71 |
+
mainFunctions: [
|
| 72 |
+
"if",
|
| 73 |
+
"then",
|
| 74 |
+
"elseif",
|
| 75 |
+
"else",
|
| 76 |
+
"case",
|
| 77 |
+
"switch",
|
| 78 |
+
"while",
|
| 79 |
+
"for",
|
| 80 |
+
"break",
|
| 81 |
+
"continue",
|
| 82 |
+
"return",
|
| 83 |
+
"package",
|
| 84 |
+
"namespace",
|
| 85 |
+
"catch",
|
| 86 |
+
"exit",
|
| 87 |
+
"eval",
|
| 88 |
+
"expr",
|
| 89 |
+
"uplevel",
|
| 90 |
+
"upvar"
|
| 91 |
+
],
|
| 92 |
+
builtinFunctions: [
|
| 93 |
+
"file",
|
| 94 |
+
"info",
|
| 95 |
+
"concat",
|
| 96 |
+
"join",
|
| 97 |
+
"lindex",
|
| 98 |
+
"list",
|
| 99 |
+
"llength",
|
| 100 |
+
"lrange",
|
| 101 |
+
"lsearch",
|
| 102 |
+
"lsort",
|
| 103 |
+
"split",
|
| 104 |
+
"array",
|
| 105 |
+
"parray",
|
| 106 |
+
"binary",
|
| 107 |
+
"format",
|
| 108 |
+
"regexp",
|
| 109 |
+
"regsub",
|
| 110 |
+
"scan",
|
| 111 |
+
"string",
|
| 112 |
+
"subst",
|
| 113 |
+
"dict",
|
| 114 |
+
"cd",
|
| 115 |
+
"clock",
|
| 116 |
+
"exec",
|
| 117 |
+
"glob",
|
| 118 |
+
"pid",
|
| 119 |
+
"pwd",
|
| 120 |
+
"close",
|
| 121 |
+
"eof",
|
| 122 |
+
"fblocked",
|
| 123 |
+
"fconfigure",
|
| 124 |
+
"fcopy",
|
| 125 |
+
"fileevent",
|
| 126 |
+
"flush",
|
| 127 |
+
"gets",
|
| 128 |
+
"open",
|
| 129 |
+
"puts",
|
| 130 |
+
"read",
|
| 131 |
+
"seek",
|
| 132 |
+
"socket",
|
| 133 |
+
"tell",
|
| 134 |
+
"interp",
|
| 135 |
+
"after",
|
| 136 |
+
"auto_execok",
|
| 137 |
+
"auto_load",
|
| 138 |
+
"auto_mkindex",
|
| 139 |
+
"auto_reset",
|
| 140 |
+
"bgerror",
|
| 141 |
+
"error",
|
| 142 |
+
"global",
|
| 143 |
+
"history",
|
| 144 |
+
"load",
|
| 145 |
+
"source",
|
| 146 |
+
"time",
|
| 147 |
+
"trace",
|
| 148 |
+
"unknown",
|
| 149 |
+
"unset",
|
| 150 |
+
"update",
|
| 151 |
+
"vwait",
|
| 152 |
+
"winfo",
|
| 153 |
+
"wm",
|
| 154 |
+
"bind",
|
| 155 |
+
"event",
|
| 156 |
+
"pack",
|
| 157 |
+
"place",
|
| 158 |
+
"grid",
|
| 159 |
+
"font",
|
| 160 |
+
"bell",
|
| 161 |
+
"clipboard",
|
| 162 |
+
"destroy",
|
| 163 |
+
"focus",
|
| 164 |
+
"grab",
|
| 165 |
+
"lower",
|
| 166 |
+
"option",
|
| 167 |
+
"raise",
|
| 168 |
+
"selection",
|
| 169 |
+
"send",
|
| 170 |
+
"tk",
|
| 171 |
+
"tkwait",
|
| 172 |
+
"tk_bisque",
|
| 173 |
+
"tk_focusNext",
|
| 174 |
+
"tk_focusPrev",
|
| 175 |
+
"tk_focusFollowsMouse",
|
| 176 |
+
"tk_popup",
|
| 177 |
+
"tk_setPalette"
|
| 178 |
+
],
|
| 179 |
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
| 180 |
+
brackets: [
|
| 181 |
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
| 182 |
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
| 183 |
+
{ open: "[", close: "]", token: "delimiter.square" }
|
| 184 |
+
],
|
| 185 |
+
escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 186 |
+
variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,
|
| 187 |
+
tokenizer: {
|
| 188 |
+
root: [
|
| 189 |
+
// identifiers and keywords
|
| 190 |
+
[
|
| 191 |
+
/[a-zA-Z_]\w*/,
|
| 192 |
+
{
|
| 193 |
+
cases: {
|
| 194 |
+
"@specialFunctions": {
|
| 195 |
+
token: "keyword.flow",
|
| 196 |
+
next: "@specialFunc"
|
| 197 |
+
},
|
| 198 |
+
"@mainFunctions": "keyword",
|
| 199 |
+
"@builtinFunctions": "variable",
|
| 200 |
+
"@default": "operator.scss"
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
],
|
| 204 |
+
[/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"],
|
| 205 |
+
// whitespace
|
| 206 |
+
{ include: "@whitespace" },
|
| 207 |
+
// delimiters and operators
|
| 208 |
+
[/[{}()\[\]]/, "@brackets"],
|
| 209 |
+
[/@symbols/, "operator"],
|
| 210 |
+
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
| 211 |
+
[/@variables/, "type.identifier"],
|
| 212 |
+
[/\.(?!\d|\.)[\w\-]*/, "operator.sql"],
|
| 213 |
+
// numbers
|
| 214 |
+
[/\d+(\.\d+)?/, "number"],
|
| 215 |
+
[/\d+/, "number"],
|
| 216 |
+
// delimiter
|
| 217 |
+
[/;/, "delimiter"],
|
| 218 |
+
// strings
|
| 219 |
+
[/"/, { token: "string.quote", bracket: "@open", next: "@dstring" }],
|
| 220 |
+
[/'/, { token: "string.quote", bracket: "@open", next: "@sstring" }]
|
| 221 |
+
],
|
| 222 |
+
dstring: [
|
| 223 |
+
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
| 224 |
+
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
| 225 |
+
[/@variables/, "type.identifier"],
|
| 226 |
+
[/[^\\$\[\]"]+/, "string"],
|
| 227 |
+
[/@escapes/, "string.escape"],
|
| 228 |
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
| 229 |
+
],
|
| 230 |
+
sstring: [
|
| 231 |
+
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
| 232 |
+
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
| 233 |
+
[/@variables/, "type.identifier"],
|
| 234 |
+
[/[^\\$\[\]']+/, "string"],
|
| 235 |
+
[/@escapes/, "string.escape"],
|
| 236 |
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
| 237 |
+
],
|
| 238 |
+
whitespace: [
|
| 239 |
+
[/[ \t\r\n]+/, "white"],
|
| 240 |
+
[/#.*\\$/, { token: "comment", next: "@newlineComment" }],
|
| 241 |
+
[/#.*(?!\\)$/, "comment"]
|
| 242 |
+
],
|
| 243 |
+
newlineComment: [
|
| 244 |
+
[/.*\\$/, "comment"],
|
| 245 |
+
[/.*(?!\\)$/, { token: "comment", next: "@pop" }]
|
| 246 |
+
],
|
| 247 |
+
nestedVariable: [
|
| 248 |
+
[/[^\{\}\$]+/, "type.identifier"],
|
| 249 |
+
[/\}/, { token: "identifier", next: "@pop" }]
|
| 250 |
+
],
|
| 251 |
+
nestedCall: [
|
| 252 |
+
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
| 253 |
+
[/\]/, { token: "@brackets", next: "@pop" }],
|
| 254 |
+
{ include: "root" }
|
| 255 |
+
],
|
| 256 |
+
specialFunc: [
|
| 257 |
+
[/"/, { token: "string", next: "@dstring" }],
|
| 258 |
+
[/'/, { token: "string", next: "@sstring" }],
|
| 259 |
+
[/\S+/, { token: "type", next: "@pop" }]
|
| 260 |
+
]
|
| 261 |
+
}
|
| 262 |
+
};
|
| 263 |
+
return __toCommonJS(tcl_exports);
|
| 264 |
+
})();
|
| 265 |
+
return moduleExports;
|
| 266 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/twig/twig.js
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/twig/twig", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/twig/twig.ts
|
| 29 |
+
var twig_exports = {};
|
| 30 |
+
__export(twig_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var conf = {
|
| 35 |
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
| 36 |
+
comments: {
|
| 37 |
+
blockComment: ["{#", "#}"]
|
| 38 |
+
},
|
| 39 |
+
brackets: [
|
| 40 |
+
["{#", "#}"],
|
| 41 |
+
["{%", "%}"],
|
| 42 |
+
["{{", "}}"],
|
| 43 |
+
["(", ")"],
|
| 44 |
+
["[", "]"],
|
| 45 |
+
// HTML
|
| 46 |
+
["<!--", "-->"],
|
| 47 |
+
["<", ">"]
|
| 48 |
+
],
|
| 49 |
+
autoClosingPairs: [
|
| 50 |
+
{ open: "{# ", close: " #}" },
|
| 51 |
+
{ open: "{% ", close: " %}" },
|
| 52 |
+
{ open: "{{ ", close: " }}" },
|
| 53 |
+
{ open: "[", close: "]" },
|
| 54 |
+
{ open: "(", close: ")" },
|
| 55 |
+
{ open: '"', close: '"' },
|
| 56 |
+
{ open: "'", close: "'" }
|
| 57 |
+
],
|
| 58 |
+
surroundingPairs: [
|
| 59 |
+
{ open: '"', close: '"' },
|
| 60 |
+
{ open: "'", close: "'" },
|
| 61 |
+
// HTML
|
| 62 |
+
{ open: "<", close: ">" }
|
| 63 |
+
]
|
| 64 |
+
};
|
| 65 |
+
var language = {
|
| 66 |
+
defaultToken: "",
|
| 67 |
+
tokenPostfix: "",
|
| 68 |
+
ignoreCase: true,
|
| 69 |
+
keywords: [
|
| 70 |
+
// (opening) tags
|
| 71 |
+
"apply",
|
| 72 |
+
"autoescape",
|
| 73 |
+
"block",
|
| 74 |
+
"deprecated",
|
| 75 |
+
"do",
|
| 76 |
+
"embed",
|
| 77 |
+
"extends",
|
| 78 |
+
"flush",
|
| 79 |
+
"for",
|
| 80 |
+
"from",
|
| 81 |
+
"if",
|
| 82 |
+
"import",
|
| 83 |
+
"include",
|
| 84 |
+
"macro",
|
| 85 |
+
"sandbox",
|
| 86 |
+
"set",
|
| 87 |
+
"use",
|
| 88 |
+
"verbatim",
|
| 89 |
+
"with",
|
| 90 |
+
// closing tags
|
| 91 |
+
"endapply",
|
| 92 |
+
"endautoescape",
|
| 93 |
+
"endblock",
|
| 94 |
+
"endembed",
|
| 95 |
+
"endfor",
|
| 96 |
+
"endif",
|
| 97 |
+
"endmacro",
|
| 98 |
+
"endsandbox",
|
| 99 |
+
"endset",
|
| 100 |
+
"endwith",
|
| 101 |
+
// literals
|
| 102 |
+
"true",
|
| 103 |
+
"false"
|
| 104 |
+
],
|
| 105 |
+
tokenizer: {
|
| 106 |
+
root: [
|
| 107 |
+
// whitespace
|
| 108 |
+
[/\s+/],
|
| 109 |
+
// Twig Tag Delimiters
|
| 110 |
+
[/{#/, "comment.twig", "@commentState"],
|
| 111 |
+
[/{%[-~]?/, "delimiter.twig", "@blockState"],
|
| 112 |
+
[/{{[-~]?/, "delimiter.twig", "@variableState"],
|
| 113 |
+
// HTML
|
| 114 |
+
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
| 115 |
+
[/<!--/, "comment.html", "@comment"],
|
| 116 |
+
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
|
| 117 |
+
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
| 118 |
+
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
| 119 |
+
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
| 120 |
+
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
| 121 |
+
[/</, "delimiter.html"],
|
| 122 |
+
[/[^<{]+/]
|
| 123 |
+
// text
|
| 124 |
+
],
|
| 125 |
+
/**
|
| 126 |
+
* Comment Tag Handling
|
| 127 |
+
*/
|
| 128 |
+
commentState: [
|
| 129 |
+
[/#}/, "comment.twig", "@pop"],
|
| 130 |
+
[/./, "comment.twig"]
|
| 131 |
+
],
|
| 132 |
+
/**
|
| 133 |
+
* Block Tag Handling
|
| 134 |
+
*/
|
| 135 |
+
blockState: [
|
| 136 |
+
[/[-~]?%}/, "delimiter.twig", "@pop"],
|
| 137 |
+
// whitespace
|
| 138 |
+
[/\s+/],
|
| 139 |
+
// verbatim
|
| 140 |
+
// Unlike other blocks, verbatim ehas its own state
|
| 141 |
+
// transition to ensure we mark its contents as strings.
|
| 142 |
+
[
|
| 143 |
+
/(verbatim)(\s*)([-~]?%})/,
|
| 144 |
+
["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
|
| 145 |
+
],
|
| 146 |
+
{ include: "expression" }
|
| 147 |
+
],
|
| 148 |
+
rawDataState: [
|
| 149 |
+
// endverbatim
|
| 150 |
+
[
|
| 151 |
+
/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
|
| 152 |
+
["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
|
| 153 |
+
],
|
| 154 |
+
[/./, "string.twig"]
|
| 155 |
+
],
|
| 156 |
+
/**
|
| 157 |
+
* Variable Tag Handling
|
| 158 |
+
*/
|
| 159 |
+
variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
|
| 160 |
+
stringState: [
|
| 161 |
+
// closing double quoted string
|
| 162 |
+
[/"/, "string.twig", "@pop"],
|
| 163 |
+
// interpolation start
|
| 164 |
+
[/#{\s*/, "string.twig", "@interpolationState"],
|
| 165 |
+
// string part
|
| 166 |
+
[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
|
| 167 |
+
],
|
| 168 |
+
interpolationState: [
|
| 169 |
+
// interpolation end
|
| 170 |
+
[/}/, "string.twig", "@pop"],
|
| 171 |
+
{ include: "expression" }
|
| 172 |
+
],
|
| 173 |
+
/**
|
| 174 |
+
* Expression Handling
|
| 175 |
+
*/
|
| 176 |
+
expression: [
|
| 177 |
+
// whitespace
|
| 178 |
+
[/\s+/],
|
| 179 |
+
// operators - math
|
| 180 |
+
[/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
|
| 181 |
+
// operators - logic
|
| 182 |
+
[/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
|
| 183 |
+
// operators - comparison (symbols)
|
| 184 |
+
[/==|!=|<|>|>=|<=/, "operators.twig"],
|
| 185 |
+
// operators - comparison (words)
|
| 186 |
+
[/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
|
| 187 |
+
// operators - containment
|
| 188 |
+
[/(in)(\s+)/, ["operators.twig", ""]],
|
| 189 |
+
// operators - test
|
| 190 |
+
[/(is)(\s+)/, ["operators.twig", ""]],
|
| 191 |
+
// operators - misc
|
| 192 |
+
[/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
|
| 193 |
+
// names
|
| 194 |
+
[
|
| 195 |
+
/[^\W\d][\w]*/,
|
| 196 |
+
{
|
| 197 |
+
cases: {
|
| 198 |
+
"@keywords": "keyword.twig",
|
| 199 |
+
"@default": "variable.twig"
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
],
|
| 203 |
+
// numbers
|
| 204 |
+
[/\d+(\.\d+)?/, "number.twig"],
|
| 205 |
+
// punctuation
|
| 206 |
+
[/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
|
| 207 |
+
// strings
|
| 208 |
+
[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
|
| 209 |
+
// opening double quoted string
|
| 210 |
+
[/"/, "string.twig", "@stringState"],
|
| 211 |
+
// misc syntactic constructs
|
| 212 |
+
// These are not operators per se, but for the purposes of lexical analysis we
|
| 213 |
+
// can treat them as such.
|
| 214 |
+
// arrow functions
|
| 215 |
+
[/=>/, "operators.twig"],
|
| 216 |
+
// assignment
|
| 217 |
+
[/=/, "operators.twig"]
|
| 218 |
+
],
|
| 219 |
+
/**
|
| 220 |
+
* HTML
|
| 221 |
+
*/
|
| 222 |
+
doctype: [
|
| 223 |
+
[/[^>]+/, "metatag.content.html"],
|
| 224 |
+
[/>/, "metatag.html", "@pop"]
|
| 225 |
+
],
|
| 226 |
+
comment: [
|
| 227 |
+
[/-->/, "comment.html", "@pop"],
|
| 228 |
+
[/[^-]+/, "comment.content.html"],
|
| 229 |
+
[/./, "comment.content.html"]
|
| 230 |
+
],
|
| 231 |
+
otherTag: [
|
| 232 |
+
[/\/?>/, "delimiter.html", "@pop"],
|
| 233 |
+
[/"([^"]*)"/, "attribute.value.html"],
|
| 234 |
+
[/'([^']*)'/, "attribute.value.html"],
|
| 235 |
+
[/[\w\-]+/, "attribute.name.html"],
|
| 236 |
+
[/=/, "delimiter.html"],
|
| 237 |
+
[/[ \t\r\n]+/]
|
| 238 |
+
// whitespace
|
| 239 |
+
],
|
| 240 |
+
// -- BEGIN <script> tags handling
|
| 241 |
+
// After <script
|
| 242 |
+
script: [
|
| 243 |
+
[/type/, "attribute.name.html", "@scriptAfterType"],
|
| 244 |
+
[/"([^"]*)"/, "attribute.value.html"],
|
| 245 |
+
[/'([^']*)'/, "attribute.value.html"],
|
| 246 |
+
[/[\w\-]+/, "attribute.name.html"],
|
| 247 |
+
[/=/, "delimiter.html"],
|
| 248 |
+
[
|
| 249 |
+
/>/,
|
| 250 |
+
{
|
| 251 |
+
token: "delimiter.html",
|
| 252 |
+
next: "@scriptEmbedded",
|
| 253 |
+
nextEmbedded: "text/javascript"
|
| 254 |
+
}
|
| 255 |
+
],
|
| 256 |
+
[/[ \t\r\n]+/],
|
| 257 |
+
// whitespace
|
| 258 |
+
[
|
| 259 |
+
/(<\/)(script\s*)(>)/,
|
| 260 |
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
| 261 |
+
]
|
| 262 |
+
],
|
| 263 |
+
// After <script ... type
|
| 264 |
+
scriptAfterType: [
|
| 265 |
+
[/=/, "delimiter.html", "@scriptAfterTypeEquals"],
|
| 266 |
+
[
|
| 267 |
+
/>/,
|
| 268 |
+
{
|
| 269 |
+
token: "delimiter.html",
|
| 270 |
+
next: "@scriptEmbedded",
|
| 271 |
+
nextEmbedded: "text/javascript"
|
| 272 |
+
}
|
| 273 |
+
],
|
| 274 |
+
// cover invalid e.g. <script type>
|
| 275 |
+
[/[ \t\r\n]+/],
|
| 276 |
+
// whitespace
|
| 277 |
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
| 278 |
+
],
|
| 279 |
+
// After <script ... type =
|
| 280 |
+
scriptAfterTypeEquals: [
|
| 281 |
+
[
|
| 282 |
+
/"([^"]*)"/,
|
| 283 |
+
{
|
| 284 |
+
token: "attribute.value.html",
|
| 285 |
+
switchTo: "@scriptWithCustomType.$1"
|
| 286 |
+
}
|
| 287 |
+
],
|
| 288 |
+
[
|
| 289 |
+
/'([^']*)'/,
|
| 290 |
+
{
|
| 291 |
+
token: "attribute.value.html",
|
| 292 |
+
switchTo: "@scriptWithCustomType.$1"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
[
|
| 296 |
+
/>/,
|
| 297 |
+
{
|
| 298 |
+
token: "delimiter.html",
|
| 299 |
+
next: "@scriptEmbedded",
|
| 300 |
+
nextEmbedded: "text/javascript"
|
| 301 |
+
}
|
| 302 |
+
],
|
| 303 |
+
// cover invalid e.g. <script type=>
|
| 304 |
+
[/[ \t\r\n]+/],
|
| 305 |
+
// whitespace
|
| 306 |
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
| 307 |
+
],
|
| 308 |
+
// After <script ... type = $S2
|
| 309 |
+
scriptWithCustomType: [
|
| 310 |
+
[
|
| 311 |
+
/>/,
|
| 312 |
+
{
|
| 313 |
+
token: "delimiter.html",
|
| 314 |
+
next: "@scriptEmbedded.$S2",
|
| 315 |
+
nextEmbedded: "$S2"
|
| 316 |
+
}
|
| 317 |
+
],
|
| 318 |
+
[/"([^"]*)"/, "attribute.value.html"],
|
| 319 |
+
[/'([^']*)'/, "attribute.value.html"],
|
| 320 |
+
[/[\w\-]+/, "attribute.name.html"],
|
| 321 |
+
[/=/, "delimiter.html"],
|
| 322 |
+
[/[ \t\r\n]+/],
|
| 323 |
+
// whitespace
|
| 324 |
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
| 325 |
+
],
|
| 326 |
+
scriptEmbedded: [
|
| 327 |
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
| 328 |
+
[/[^<]+/, ""]
|
| 329 |
+
],
|
| 330 |
+
// -- END <script> tags handling
|
| 331 |
+
// -- BEGIN <style> tags handling
|
| 332 |
+
// After <style
|
| 333 |
+
style: [
|
| 334 |
+
[/type/, "attribute.name.html", "@styleAfterType"],
|
| 335 |
+
[/"([^"]*)"/, "attribute.value.html"],
|
| 336 |
+
[/'([^']*)'/, "attribute.value.html"],
|
| 337 |
+
[/[\w\-]+/, "attribute.name.html"],
|
| 338 |
+
[/=/, "delimiter.html"],
|
| 339 |
+
[
|
| 340 |
+
/>/,
|
| 341 |
+
{
|
| 342 |
+
token: "delimiter.html",
|
| 343 |
+
next: "@styleEmbedded",
|
| 344 |
+
nextEmbedded: "text/css"
|
| 345 |
+
}
|
| 346 |
+
],
|
| 347 |
+
[/[ \t\r\n]+/],
|
| 348 |
+
// whitespace
|
| 349 |
+
[
|
| 350 |
+
/(<\/)(style\s*)(>)/,
|
| 351 |
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
| 352 |
+
]
|
| 353 |
+
],
|
| 354 |
+
// After <style ... type
|
| 355 |
+
styleAfterType: [
|
| 356 |
+
[/=/, "delimiter.html", "@styleAfterTypeEquals"],
|
| 357 |
+
[
|
| 358 |
+
/>/,
|
| 359 |
+
{
|
| 360 |
+
token: "delimiter.html",
|
| 361 |
+
next: "@styleEmbedded",
|
| 362 |
+
nextEmbedded: "text/css"
|
| 363 |
+
}
|
| 364 |
+
],
|
| 365 |
+
// cover invalid e.g. <style type>
|
| 366 |
+
[/[ \t\r\n]+/],
|
| 367 |
+
// whitespace
|
| 368 |
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
| 369 |
+
],
|
| 370 |
+
// After <style ... type =
|
| 371 |
+
styleAfterTypeEquals: [
|
| 372 |
+
[
|
| 373 |
+
/"([^"]*)"/,
|
| 374 |
+
{
|
| 375 |
+
token: "attribute.value.html",
|
| 376 |
+
switchTo: "@styleWithCustomType.$1"
|
| 377 |
+
}
|
| 378 |
+
],
|
| 379 |
+
[
|
| 380 |
+
/'([^']*)'/,
|
| 381 |
+
{
|
| 382 |
+
token: "attribute.value.html",
|
| 383 |
+
switchTo: "@styleWithCustomType.$1"
|
| 384 |
+
}
|
| 385 |
+
],
|
| 386 |
+
[
|
| 387 |
+
/>/,
|
| 388 |
+
{
|
| 389 |
+
token: "delimiter.html",
|
| 390 |
+
next: "@styleEmbedded",
|
| 391 |
+
nextEmbedded: "text/css"
|
| 392 |
+
}
|
| 393 |
+
],
|
| 394 |
+
// cover invalid e.g. <style type=>
|
| 395 |
+
[/[ \t\r\n]+/],
|
| 396 |
+
// whitespace
|
| 397 |
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
| 398 |
+
],
|
| 399 |
+
// After <style ... type = $S2
|
| 400 |
+
styleWithCustomType: [
|
| 401 |
+
[
|
| 402 |
+
/>/,
|
| 403 |
+
{
|
| 404 |
+
token: "delimiter.html",
|
| 405 |
+
next: "@styleEmbedded.$S2",
|
| 406 |
+
nextEmbedded: "$S2"
|
| 407 |
+
}
|
| 408 |
+
],
|
| 409 |
+
[/"([^"]*)"/, "attribute.value.html"],
|
| 410 |
+
[/'([^']*)'/, "attribute.value.html"],
|
| 411 |
+
[/[\w\-]+/, "attribute.name.html"],
|
| 412 |
+
[/=/, "delimiter.html"],
|
| 413 |
+
[/[ \t\r\n]+/],
|
| 414 |
+
// whitespace
|
| 415 |
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
| 416 |
+
],
|
| 417 |
+
styleEmbedded: [
|
| 418 |
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
| 419 |
+
[/[^<]+/, ""]
|
| 420 |
+
]
|
| 421 |
+
}
|
| 422 |
+
};
|
| 423 |
+
return __toCommonJS(twig_exports);
|
| 424 |
+
})();
|
| 425 |
+
return moduleExports;
|
| 426 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/typescript/typescript.js
ADDED
|
@@ -0,0 +1,404 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/typescript/typescript", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __create = Object.create;
|
| 11 |
+
var __defProp = Object.defineProperty;
|
| 12 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 13 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 14 |
+
var __getProtoOf = Object.getPrototypeOf;
|
| 15 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 16 |
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
| 17 |
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
| 18 |
+
}) : x)(function(x) {
|
| 19 |
+
if (typeof require !== "undefined")
|
| 20 |
+
return require.apply(this, arguments);
|
| 21 |
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
| 22 |
+
});
|
| 23 |
+
var __commonJS = (cb, mod) => function __require2() {
|
| 24 |
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
| 25 |
+
};
|
| 26 |
+
var __export = (target, all) => {
|
| 27 |
+
for (var name in all)
|
| 28 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 29 |
+
};
|
| 30 |
+
var __copyProps = (to, from, except, desc) => {
|
| 31 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 32 |
+
for (let key of __getOwnPropNames(from))
|
| 33 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 34 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 35 |
+
}
|
| 36 |
+
return to;
|
| 37 |
+
};
|
| 38 |
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
| 39 |
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
| 40 |
+
// If the importer is in node compatibility mode or this is not an ESM
|
| 41 |
+
// file that has been converted to a CommonJS file using a Babel-
|
| 42 |
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
| 43 |
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
| 44 |
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
| 45 |
+
mod
|
| 46 |
+
));
|
| 47 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 48 |
+
|
| 49 |
+
// src/fillers/monaco-editor-core-amd.ts
|
| 50 |
+
var require_monaco_editor_core_amd = __commonJS({
|
| 51 |
+
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
| 52 |
+
var api = __toESM(__require("vs/editor/editor.api"));
|
| 53 |
+
module.exports = api;
|
| 54 |
+
}
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
// src/basic-languages/typescript/typescript.ts
|
| 58 |
+
var typescript_exports = {};
|
| 59 |
+
__export(typescript_exports, {
|
| 60 |
+
conf: () => conf,
|
| 61 |
+
language: () => language
|
| 62 |
+
});
|
| 63 |
+
|
| 64 |
+
// src/fillers/monaco-editor-core.ts
|
| 65 |
+
var monaco_editor_core_exports = {};
|
| 66 |
+
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
| 67 |
+
|
| 68 |
+
// src/basic-languages/typescript/typescript.ts
|
| 69 |
+
var conf = {
|
| 70 |
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
| 71 |
+
comments: {
|
| 72 |
+
lineComment: "//",
|
| 73 |
+
blockComment: ["/*", "*/"]
|
| 74 |
+
},
|
| 75 |
+
brackets: [
|
| 76 |
+
["{", "}"],
|
| 77 |
+
["[", "]"],
|
| 78 |
+
["(", ")"]
|
| 79 |
+
],
|
| 80 |
+
onEnterRules: [
|
| 81 |
+
{
|
| 82 |
+
// e.g. /** | */
|
| 83 |
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
| 84 |
+
afterText: /^\s*\*\/$/,
|
| 85 |
+
action: {
|
| 86 |
+
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent,
|
| 87 |
+
appendText: " * "
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
// e.g. /** ...|
|
| 92 |
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
| 93 |
+
action: {
|
| 94 |
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
| 95 |
+
appendText: " * "
|
| 96 |
+
}
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
// e.g. * ...|
|
| 100 |
+
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
| 101 |
+
action: {
|
| 102 |
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
| 103 |
+
appendText: "* "
|
| 104 |
+
}
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
// e.g. */|
|
| 108 |
+
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
| 109 |
+
action: {
|
| 110 |
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
| 111 |
+
removeText: 1
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
autoClosingPairs: [
|
| 116 |
+
{ open: "{", close: "}" },
|
| 117 |
+
{ open: "[", close: "]" },
|
| 118 |
+
{ open: "(", close: ")" },
|
| 119 |
+
{ open: '"', close: '"', notIn: ["string"] },
|
| 120 |
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
| 121 |
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
| 122 |
+
{ open: "/**", close: " */", notIn: ["string"] }
|
| 123 |
+
],
|
| 124 |
+
folding: {
|
| 125 |
+
markers: {
|
| 126 |
+
start: new RegExp("^\\s*//\\s*#?region\\b"),
|
| 127 |
+
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
};
|
| 131 |
+
var language = {
|
| 132 |
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
| 133 |
+
defaultToken: "invalid",
|
| 134 |
+
tokenPostfix: ".ts",
|
| 135 |
+
keywords: [
|
| 136 |
+
// Should match the keys of textToKeywordObj in
|
| 137 |
+
// https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts
|
| 138 |
+
"abstract",
|
| 139 |
+
"any",
|
| 140 |
+
"as",
|
| 141 |
+
"asserts",
|
| 142 |
+
"bigint",
|
| 143 |
+
"boolean",
|
| 144 |
+
"break",
|
| 145 |
+
"case",
|
| 146 |
+
"catch",
|
| 147 |
+
"class",
|
| 148 |
+
"continue",
|
| 149 |
+
"const",
|
| 150 |
+
"constructor",
|
| 151 |
+
"debugger",
|
| 152 |
+
"declare",
|
| 153 |
+
"default",
|
| 154 |
+
"delete",
|
| 155 |
+
"do",
|
| 156 |
+
"else",
|
| 157 |
+
"enum",
|
| 158 |
+
"export",
|
| 159 |
+
"extends",
|
| 160 |
+
"false",
|
| 161 |
+
"finally",
|
| 162 |
+
"for",
|
| 163 |
+
"from",
|
| 164 |
+
"function",
|
| 165 |
+
"get",
|
| 166 |
+
"if",
|
| 167 |
+
"implements",
|
| 168 |
+
"import",
|
| 169 |
+
"in",
|
| 170 |
+
"infer",
|
| 171 |
+
"instanceof",
|
| 172 |
+
"interface",
|
| 173 |
+
"is",
|
| 174 |
+
"keyof",
|
| 175 |
+
"let",
|
| 176 |
+
"module",
|
| 177 |
+
"namespace",
|
| 178 |
+
"never",
|
| 179 |
+
"new",
|
| 180 |
+
"null",
|
| 181 |
+
"number",
|
| 182 |
+
"object",
|
| 183 |
+
"out",
|
| 184 |
+
"package",
|
| 185 |
+
"private",
|
| 186 |
+
"protected",
|
| 187 |
+
"public",
|
| 188 |
+
"override",
|
| 189 |
+
"readonly",
|
| 190 |
+
"require",
|
| 191 |
+
"global",
|
| 192 |
+
"return",
|
| 193 |
+
"satisfies",
|
| 194 |
+
"set",
|
| 195 |
+
"static",
|
| 196 |
+
"string",
|
| 197 |
+
"super",
|
| 198 |
+
"switch",
|
| 199 |
+
"symbol",
|
| 200 |
+
"this",
|
| 201 |
+
"throw",
|
| 202 |
+
"true",
|
| 203 |
+
"try",
|
| 204 |
+
"type",
|
| 205 |
+
"typeof",
|
| 206 |
+
"undefined",
|
| 207 |
+
"unique",
|
| 208 |
+
"unknown",
|
| 209 |
+
"var",
|
| 210 |
+
"void",
|
| 211 |
+
"while",
|
| 212 |
+
"with",
|
| 213 |
+
"yield",
|
| 214 |
+
"async",
|
| 215 |
+
"await",
|
| 216 |
+
"of"
|
| 217 |
+
],
|
| 218 |
+
operators: [
|
| 219 |
+
"<=",
|
| 220 |
+
">=",
|
| 221 |
+
"==",
|
| 222 |
+
"!=",
|
| 223 |
+
"===",
|
| 224 |
+
"!==",
|
| 225 |
+
"=>",
|
| 226 |
+
"+",
|
| 227 |
+
"-",
|
| 228 |
+
"**",
|
| 229 |
+
"*",
|
| 230 |
+
"/",
|
| 231 |
+
"%",
|
| 232 |
+
"++",
|
| 233 |
+
"--",
|
| 234 |
+
"<<",
|
| 235 |
+
"</",
|
| 236 |
+
">>",
|
| 237 |
+
">>>",
|
| 238 |
+
"&",
|
| 239 |
+
"|",
|
| 240 |
+
"^",
|
| 241 |
+
"!",
|
| 242 |
+
"~",
|
| 243 |
+
"&&",
|
| 244 |
+
"||",
|
| 245 |
+
"??",
|
| 246 |
+
"?",
|
| 247 |
+
":",
|
| 248 |
+
"=",
|
| 249 |
+
"+=",
|
| 250 |
+
"-=",
|
| 251 |
+
"*=",
|
| 252 |
+
"**=",
|
| 253 |
+
"/=",
|
| 254 |
+
"%=",
|
| 255 |
+
"<<=",
|
| 256 |
+
">>=",
|
| 257 |
+
">>>=",
|
| 258 |
+
"&=",
|
| 259 |
+
"|=",
|
| 260 |
+
"^=",
|
| 261 |
+
"@"
|
| 262 |
+
],
|
| 263 |
+
// we include these common regular expressions
|
| 264 |
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
| 265 |
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
| 266 |
+
digits: /\d+(_+\d+)*/,
|
| 267 |
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
| 268 |
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
| 269 |
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
| 270 |
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
| 271 |
+
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
| 272 |
+
// The main tokenizer for our languages
|
| 273 |
+
tokenizer: {
|
| 274 |
+
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
| 275 |
+
common: [
|
| 276 |
+
// identifiers and keywords
|
| 277 |
+
[
|
| 278 |
+
/#?[a-z_$][\w$]*/,
|
| 279 |
+
{
|
| 280 |
+
cases: {
|
| 281 |
+
"@keywords": "keyword",
|
| 282 |
+
"@default": "identifier"
|
| 283 |
+
}
|
| 284 |
+
}
|
| 285 |
+
],
|
| 286 |
+
[/[A-Z][\w\$]*/, "type.identifier"],
|
| 287 |
+
// to show class names nicely
|
| 288 |
+
// [/[A-Z][\w\$]*/, 'identifier'],
|
| 289 |
+
// whitespace
|
| 290 |
+
{ include: "@whitespace" },
|
| 291 |
+
// regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
|
| 292 |
+
[
|
| 293 |
+
/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
| 294 |
+
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
| 295 |
+
],
|
| 296 |
+
// delimiters and operators
|
| 297 |
+
[/[()\[\]]/, "@brackets"],
|
| 298 |
+
[/[<>](?!@symbols)/, "@brackets"],
|
| 299 |
+
[/!(?=([^=]|$))/, "delimiter"],
|
| 300 |
+
[
|
| 301 |
+
/@symbols/,
|
| 302 |
+
{
|
| 303 |
+
cases: {
|
| 304 |
+
"@operators": "delimiter",
|
| 305 |
+
"@default": ""
|
| 306 |
+
}
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
// numbers
|
| 310 |
+
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
| 311 |
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
| 312 |
+
[/0[xX](@hexdigits)n?/, "number.hex"],
|
| 313 |
+
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
| 314 |
+
[/0[bB](@binarydigits)n?/, "number.binary"],
|
| 315 |
+
[/(@digits)n?/, "number"],
|
| 316 |
+
// delimiter: after number because of .\d floats
|
| 317 |
+
[/[;,.]/, "delimiter"],
|
| 318 |
+
// strings
|
| 319 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 320 |
+
// non-teminated string
|
| 321 |
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
| 322 |
+
// non-teminated string
|
| 323 |
+
[/"/, "string", "@string_double"],
|
| 324 |
+
[/'/, "string", "@string_single"],
|
| 325 |
+
[/`/, "string", "@string_backtick"]
|
| 326 |
+
],
|
| 327 |
+
whitespace: [
|
| 328 |
+
[/[ \t\r\n]+/, ""],
|
| 329 |
+
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
| 330 |
+
[/\/\*/, "comment", "@comment"],
|
| 331 |
+
[/\/\/.*$/, "comment"]
|
| 332 |
+
],
|
| 333 |
+
comment: [
|
| 334 |
+
[/[^\/*]+/, "comment"],
|
| 335 |
+
[/\*\//, "comment", "@pop"],
|
| 336 |
+
[/[\/*]/, "comment"]
|
| 337 |
+
],
|
| 338 |
+
jsdoc: [
|
| 339 |
+
[/[^\/*]+/, "comment.doc"],
|
| 340 |
+
[/\*\//, "comment.doc", "@pop"],
|
| 341 |
+
[/[\/*]/, "comment.doc"]
|
| 342 |
+
],
|
| 343 |
+
// We match regular expression quite precisely
|
| 344 |
+
regexp: [
|
| 345 |
+
[
|
| 346 |
+
/(\{)(\d+(?:,\d*)?)(\})/,
|
| 347 |
+
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
| 348 |
+
],
|
| 349 |
+
[
|
| 350 |
+
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
| 351 |
+
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
| 352 |
+
],
|
| 353 |
+
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
| 354 |
+
[/[()]/, "regexp.escape.control"],
|
| 355 |
+
[/@regexpctl/, "regexp.escape.control"],
|
| 356 |
+
[/[^\\\/]/, "regexp"],
|
| 357 |
+
[/@regexpesc/, "regexp.escape"],
|
| 358 |
+
[/\\\./, "regexp.invalid"],
|
| 359 |
+
[/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
| 360 |
+
],
|
| 361 |
+
regexrange: [
|
| 362 |
+
[/-/, "regexp.escape.control"],
|
| 363 |
+
[/\^/, "regexp.invalid"],
|
| 364 |
+
[/@regexpesc/, "regexp.escape"],
|
| 365 |
+
[/[^\]]/, "regexp"],
|
| 366 |
+
[
|
| 367 |
+
/\]/,
|
| 368 |
+
{
|
| 369 |
+
token: "regexp.escape.control",
|
| 370 |
+
next: "@pop",
|
| 371 |
+
bracket: "@close"
|
| 372 |
+
}
|
| 373 |
+
]
|
| 374 |
+
],
|
| 375 |
+
string_double: [
|
| 376 |
+
[/[^\\"]+/, "string"],
|
| 377 |
+
[/@escapes/, "string.escape"],
|
| 378 |
+
[/\\./, "string.escape.invalid"],
|
| 379 |
+
[/"/, "string", "@pop"]
|
| 380 |
+
],
|
| 381 |
+
string_single: [
|
| 382 |
+
[/[^\\']+/, "string"],
|
| 383 |
+
[/@escapes/, "string.escape"],
|
| 384 |
+
[/\\./, "string.escape.invalid"],
|
| 385 |
+
[/'/, "string", "@pop"]
|
| 386 |
+
],
|
| 387 |
+
string_backtick: [
|
| 388 |
+
[/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
|
| 389 |
+
[/[^\\`$]+/, "string"],
|
| 390 |
+
[/@escapes/, "string.escape"],
|
| 391 |
+
[/\\./, "string.escape.invalid"],
|
| 392 |
+
[/`/, "string", "@pop"]
|
| 393 |
+
],
|
| 394 |
+
bracketCounting: [
|
| 395 |
+
[/\{/, "delimiter.bracket", "@bracketCounting"],
|
| 396 |
+
[/\}/, "delimiter.bracket", "@pop"],
|
| 397 |
+
{ include: "common" }
|
| 398 |
+
]
|
| 399 |
+
}
|
| 400 |
+
};
|
| 401 |
+
return __toCommonJS(typescript_exports);
|
| 402 |
+
})();
|
| 403 |
+
return moduleExports;
|
| 404 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/typespec/typespec.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/typespec/typespec", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __defProp = Object.defineProperty;
|
| 11 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 12 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 13 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 14 |
+
var __export = (target, all) => {
|
| 15 |
+
for (var name in all)
|
| 16 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 17 |
+
};
|
| 18 |
+
var __copyProps = (to, from, except, desc) => {
|
| 19 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 20 |
+
for (let key of __getOwnPropNames(from))
|
| 21 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 22 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 23 |
+
}
|
| 24 |
+
return to;
|
| 25 |
+
};
|
| 26 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 27 |
+
|
| 28 |
+
// src/basic-languages/typespec/typespec.ts
|
| 29 |
+
var typespec_exports = {};
|
| 30 |
+
__export(typespec_exports, {
|
| 31 |
+
conf: () => conf,
|
| 32 |
+
language: () => language
|
| 33 |
+
});
|
| 34 |
+
var bounded = (text) => `\\b${text}\\b`;
|
| 35 |
+
var notBefore = (regex) => `(?!${regex})`;
|
| 36 |
+
var identifierStart = "[_a-zA-Z]";
|
| 37 |
+
var identifierContinue = "[_a-zA-Z0-9]";
|
| 38 |
+
var identifier = bounded(`${identifierStart}${identifierContinue}*`);
|
| 39 |
+
var directive = bounded(`[_a-zA-Z-0-9]+`);
|
| 40 |
+
var keywords = [
|
| 41 |
+
"import",
|
| 42 |
+
"model",
|
| 43 |
+
"scalar",
|
| 44 |
+
"namespace",
|
| 45 |
+
"op",
|
| 46 |
+
"interface",
|
| 47 |
+
"union",
|
| 48 |
+
"using",
|
| 49 |
+
"is",
|
| 50 |
+
"extends",
|
| 51 |
+
"enum",
|
| 52 |
+
"alias",
|
| 53 |
+
"return",
|
| 54 |
+
"void",
|
| 55 |
+
"if",
|
| 56 |
+
"else",
|
| 57 |
+
"projection",
|
| 58 |
+
"dec",
|
| 59 |
+
"extern",
|
| 60 |
+
"fn"
|
| 61 |
+
];
|
| 62 |
+
var namedLiterals = ["true", "false", "null", "unknown", "never"];
|
| 63 |
+
var nonCommentWs = `[ \\t\\r\\n]`;
|
| 64 |
+
var numericLiteral = `[0-9]+`;
|
| 65 |
+
var conf = {
|
| 66 |
+
comments: {
|
| 67 |
+
lineComment: "//",
|
| 68 |
+
blockComment: ["/*", "*/"]
|
| 69 |
+
},
|
| 70 |
+
brackets: [
|
| 71 |
+
["{", "}"],
|
| 72 |
+
["[", "]"],
|
| 73 |
+
["(", ")"]
|
| 74 |
+
],
|
| 75 |
+
autoClosingPairs: [
|
| 76 |
+
{ open: "{", close: "}" },
|
| 77 |
+
{ open: "[", close: "]" },
|
| 78 |
+
{ open: "(", close: ")" },
|
| 79 |
+
{ open: '"', close: '"' },
|
| 80 |
+
{ open: "/**", close: " */", notIn: ["string"] }
|
| 81 |
+
],
|
| 82 |
+
surroundingPairs: [
|
| 83 |
+
{ open: "{", close: "}" },
|
| 84 |
+
{ open: "[", close: "]" },
|
| 85 |
+
{ open: "(", close: ")" },
|
| 86 |
+
{ open: '"', close: '"' }
|
| 87 |
+
],
|
| 88 |
+
indentationRules: {
|
| 89 |
+
decreaseIndentPattern: new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),
|
| 90 |
+
increaseIndentPattern: new RegExp(
|
| 91 |
+
"^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
|
| 92 |
+
),
|
| 93 |
+
// e.g. * ...| or */| or *-----*/|
|
| 94 |
+
unIndentedLinePattern: new RegExp(
|
| 95 |
+
"^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
| 96 |
+
)
|
| 97 |
+
}
|
| 98 |
+
};
|
| 99 |
+
var language = {
|
| 100 |
+
defaultToken: "",
|
| 101 |
+
tokenPostfix: ".tsp",
|
| 102 |
+
brackets: [
|
| 103 |
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
| 104 |
+
{ open: "[", close: "]", token: "delimiter.square" },
|
| 105 |
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
| 106 |
+
],
|
| 107 |
+
symbols: /[=:;<>]+/,
|
| 108 |
+
keywords,
|
| 109 |
+
namedLiterals,
|
| 110 |
+
escapes: `\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\\${)`,
|
| 111 |
+
tokenizer: {
|
| 112 |
+
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
| 113 |
+
stringVerbatim: [
|
| 114 |
+
{ regex: `(|"|"")[^"]`, action: { token: "string" } },
|
| 115 |
+
{ regex: `"""${notBefore(`"`)}`, action: { token: "string", next: "@pop" } }
|
| 116 |
+
],
|
| 117 |
+
stringLiteral: [
|
| 118 |
+
{ regex: `\\\${`, action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
| 119 |
+
{ regex: `[^\\\\"$]+`, action: { token: "string" } },
|
| 120 |
+
{ regex: "@escapes", action: { token: "string.escape" } },
|
| 121 |
+
{ regex: `\\\\.`, action: { token: "string.escape.invalid" } },
|
| 122 |
+
{ regex: `"`, action: { token: "string", next: "@pop" } }
|
| 123 |
+
],
|
| 124 |
+
bracketCounting: [
|
| 125 |
+
{ regex: `{`, action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
| 126 |
+
{ regex: `}`, action: { token: "delimiter.bracket", next: "@pop" } },
|
| 127 |
+
{ include: "@expression" }
|
| 128 |
+
],
|
| 129 |
+
comment: [
|
| 130 |
+
{ regex: `[^\\*]+`, action: { token: "comment" } },
|
| 131 |
+
{ regex: `\\*\\/`, action: { token: "comment", next: "@pop" } },
|
| 132 |
+
{ regex: `[\\/*]`, action: { token: "comment" } }
|
| 133 |
+
],
|
| 134 |
+
whitespace: [
|
| 135 |
+
{ regex: nonCommentWs },
|
| 136 |
+
{ regex: `\\/\\*`, action: { token: "comment", next: "@comment" } },
|
| 137 |
+
{ regex: `\\/\\/.*$`, action: { token: "comment" } }
|
| 138 |
+
],
|
| 139 |
+
expression: [
|
| 140 |
+
{ regex: `"""`, action: { token: "string", next: "@stringVerbatim" } },
|
| 141 |
+
{ regex: `"${notBefore(`""`)}`, action: { token: "string", next: "@stringLiteral" } },
|
| 142 |
+
{ regex: numericLiteral, action: { token: "number" } },
|
| 143 |
+
{
|
| 144 |
+
regex: identifier,
|
| 145 |
+
action: {
|
| 146 |
+
cases: {
|
| 147 |
+
"@keywords": { token: "keyword" },
|
| 148 |
+
"@namedLiterals": { token: "keyword" },
|
| 149 |
+
"@default": { token: "identifier" }
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
{ regex: `@${identifier}`, action: { token: "tag" } },
|
| 154 |
+
{ regex: `#${directive}`, action: { token: "directive" } }
|
| 155 |
+
]
|
| 156 |
+
}
|
| 157 |
+
};
|
| 158 |
+
return __toCommonJS(typespec_exports);
|
| 159 |
+
})();
|
| 160 |
+
return moduleExports;
|
| 161 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/basic-languages/yaml/yaml.js
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/basic-languages/yaml/yaml", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __create = Object.create;
|
| 11 |
+
var __defProp = Object.defineProperty;
|
| 12 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 13 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 14 |
+
var __getProtoOf = Object.getPrototypeOf;
|
| 15 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 16 |
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
| 17 |
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
| 18 |
+
}) : x)(function(x) {
|
| 19 |
+
if (typeof require !== "undefined")
|
| 20 |
+
return require.apply(this, arguments);
|
| 21 |
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
| 22 |
+
});
|
| 23 |
+
var __commonJS = (cb, mod) => function __require2() {
|
| 24 |
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
| 25 |
+
};
|
| 26 |
+
var __export = (target, all) => {
|
| 27 |
+
for (var name in all)
|
| 28 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 29 |
+
};
|
| 30 |
+
var __copyProps = (to, from, except, desc) => {
|
| 31 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 32 |
+
for (let key of __getOwnPropNames(from))
|
| 33 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 34 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 35 |
+
}
|
| 36 |
+
return to;
|
| 37 |
+
};
|
| 38 |
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
| 39 |
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
| 40 |
+
// If the importer is in node compatibility mode or this is not an ESM
|
| 41 |
+
// file that has been converted to a CommonJS file using a Babel-
|
| 42 |
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
| 43 |
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
| 44 |
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
| 45 |
+
mod
|
| 46 |
+
));
|
| 47 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 48 |
+
|
| 49 |
+
// src/fillers/monaco-editor-core-amd.ts
|
| 50 |
+
var require_monaco_editor_core_amd = __commonJS({
|
| 51 |
+
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
| 52 |
+
var api = __toESM(__require("vs/editor/editor.api"));
|
| 53 |
+
module.exports = api;
|
| 54 |
+
}
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
// src/basic-languages/yaml/yaml.ts
|
| 58 |
+
var yaml_exports = {};
|
| 59 |
+
__export(yaml_exports, {
|
| 60 |
+
conf: () => conf,
|
| 61 |
+
language: () => language
|
| 62 |
+
});
|
| 63 |
+
|
| 64 |
+
// src/fillers/monaco-editor-core.ts
|
| 65 |
+
var monaco_editor_core_exports = {};
|
| 66 |
+
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
| 67 |
+
|
| 68 |
+
// src/basic-languages/yaml/yaml.ts
|
| 69 |
+
var conf = {
|
| 70 |
+
comments: {
|
| 71 |
+
lineComment: "#"
|
| 72 |
+
},
|
| 73 |
+
brackets: [
|
| 74 |
+
["{", "}"],
|
| 75 |
+
["[", "]"],
|
| 76 |
+
["(", ")"]
|
| 77 |
+
],
|
| 78 |
+
autoClosingPairs: [
|
| 79 |
+
{ open: "{", close: "}" },
|
| 80 |
+
{ open: "[", close: "]" },
|
| 81 |
+
{ open: "(", close: ")" },
|
| 82 |
+
{ open: '"', close: '"' },
|
| 83 |
+
{ open: "'", close: "'" }
|
| 84 |
+
],
|
| 85 |
+
surroundingPairs: [
|
| 86 |
+
{ open: "{", close: "}" },
|
| 87 |
+
{ open: "[", close: "]" },
|
| 88 |
+
{ open: "(", close: ")" },
|
| 89 |
+
{ open: '"', close: '"' },
|
| 90 |
+
{ open: "'", close: "'" }
|
| 91 |
+
],
|
| 92 |
+
folding: {
|
| 93 |
+
offSide: true
|
| 94 |
+
},
|
| 95 |
+
onEnterRules: [
|
| 96 |
+
{
|
| 97 |
+
beforeText: /:\s*$/,
|
| 98 |
+
action: {
|
| 99 |
+
indentAction: monaco_editor_core_exports.languages.IndentAction.Indent
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
]
|
| 103 |
+
};
|
| 104 |
+
var language = {
|
| 105 |
+
tokenPostfix: ".yaml",
|
| 106 |
+
brackets: [
|
| 107 |
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
| 108 |
+
{ token: "delimiter.square", open: "[", close: "]" }
|
| 109 |
+
],
|
| 110 |
+
keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
|
| 111 |
+
numberInteger: /(?:0|[+-]?[0-9]+)/,
|
| 112 |
+
numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
|
| 113 |
+
numberOctal: /0o[0-7]+/,
|
| 114 |
+
numberHex: /0x[0-9a-fA-F]+/,
|
| 115 |
+
numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
|
| 116 |
+
numberNaN: /\.(?:nan|Nan|NAN)/,
|
| 117 |
+
numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
|
| 118 |
+
escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
| 119 |
+
tokenizer: {
|
| 120 |
+
root: [
|
| 121 |
+
{ include: "@whitespace" },
|
| 122 |
+
{ include: "@comment" },
|
| 123 |
+
// Directive
|
| 124 |
+
[/%[^ ]+.*$/, "meta.directive"],
|
| 125 |
+
// Document Markers
|
| 126 |
+
[/---/, "operators.directivesEnd"],
|
| 127 |
+
[/\.{3}/, "operators.documentEnd"],
|
| 128 |
+
// Block Structure Indicators
|
| 129 |
+
[/[-?:](?= )/, "operators"],
|
| 130 |
+
{ include: "@anchor" },
|
| 131 |
+
{ include: "@tagHandle" },
|
| 132 |
+
{ include: "@flowCollections" },
|
| 133 |
+
{ include: "@blockStyle" },
|
| 134 |
+
// Numbers
|
| 135 |
+
[/@numberInteger(?![ \t]*\S+)/, "number"],
|
| 136 |
+
[/@numberFloat(?![ \t]*\S+)/, "number.float"],
|
| 137 |
+
[/@numberOctal(?![ \t]*\S+)/, "number.octal"],
|
| 138 |
+
[/@numberHex(?![ \t]*\S+)/, "number.hex"],
|
| 139 |
+
[/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
|
| 140 |
+
[/@numberNaN(?![ \t]*\S+)/, "number.nan"],
|
| 141 |
+
[/@numberDate(?![ \t]*\S+)/, "number.date"],
|
| 142 |
+
// Key:Value pair
|
| 143 |
+
[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
|
| 144 |
+
{ include: "@flowScalars" },
|
| 145 |
+
// String nodes
|
| 146 |
+
[
|
| 147 |
+
/.+?(?=(\s+#|$))/,
|
| 148 |
+
{
|
| 149 |
+
cases: {
|
| 150 |
+
"@keywords": "keyword",
|
| 151 |
+
"@default": "string"
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
],
|
| 156 |
+
// Flow Collection: Flow Mapping
|
| 157 |
+
object: [
|
| 158 |
+
{ include: "@whitespace" },
|
| 159 |
+
{ include: "@comment" },
|
| 160 |
+
// Flow Mapping termination
|
| 161 |
+
[/\}/, "@brackets", "@pop"],
|
| 162 |
+
// Flow Mapping delimiter
|
| 163 |
+
[/,/, "delimiter.comma"],
|
| 164 |
+
// Flow Mapping Key:Value delimiter
|
| 165 |
+
[/:(?= )/, "operators"],
|
| 166 |
+
// Flow Mapping Key:Value key
|
| 167 |
+
[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
|
| 168 |
+
// Start Flow Style
|
| 169 |
+
{ include: "@flowCollections" },
|
| 170 |
+
{ include: "@flowScalars" },
|
| 171 |
+
// Scalar Data types
|
| 172 |
+
{ include: "@tagHandle" },
|
| 173 |
+
{ include: "@anchor" },
|
| 174 |
+
{ include: "@flowNumber" },
|
| 175 |
+
// Other value (keyword or string)
|
| 176 |
+
[
|
| 177 |
+
/[^\},]+/,
|
| 178 |
+
{
|
| 179 |
+
cases: {
|
| 180 |
+
"@keywords": "keyword",
|
| 181 |
+
"@default": "string"
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
]
|
| 185 |
+
],
|
| 186 |
+
// Flow Collection: Flow Sequence
|
| 187 |
+
array: [
|
| 188 |
+
{ include: "@whitespace" },
|
| 189 |
+
{ include: "@comment" },
|
| 190 |
+
// Flow Sequence termination
|
| 191 |
+
[/\]/, "@brackets", "@pop"],
|
| 192 |
+
// Flow Sequence delimiter
|
| 193 |
+
[/,/, "delimiter.comma"],
|
| 194 |
+
// Start Flow Style
|
| 195 |
+
{ include: "@flowCollections" },
|
| 196 |
+
{ include: "@flowScalars" },
|
| 197 |
+
// Scalar Data types
|
| 198 |
+
{ include: "@tagHandle" },
|
| 199 |
+
{ include: "@anchor" },
|
| 200 |
+
{ include: "@flowNumber" },
|
| 201 |
+
// Other value (keyword or string)
|
| 202 |
+
[
|
| 203 |
+
/[^\],]+/,
|
| 204 |
+
{
|
| 205 |
+
cases: {
|
| 206 |
+
"@keywords": "keyword",
|
| 207 |
+
"@default": "string"
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
]
|
| 211 |
+
],
|
| 212 |
+
// First line of a Block Style
|
| 213 |
+
multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
|
| 214 |
+
// Further lines of a Block Style
|
| 215 |
+
// Workaround for indentation detection
|
| 216 |
+
multiStringContinued: [
|
| 217 |
+
[
|
| 218 |
+
/^( *).+$/,
|
| 219 |
+
{
|
| 220 |
+
cases: {
|
| 221 |
+
"$1==$S2": "string",
|
| 222 |
+
"@default": { token: "@rematch", next: "@popall" }
|
| 223 |
+
}
|
| 224 |
+
}
|
| 225 |
+
]
|
| 226 |
+
],
|
| 227 |
+
whitespace: [[/[ \t\r\n]+/, "white"]],
|
| 228 |
+
// Only line comments
|
| 229 |
+
comment: [[/#.*$/, "comment"]],
|
| 230 |
+
// Start Flow Collections
|
| 231 |
+
flowCollections: [
|
| 232 |
+
[/\[/, "@brackets", "@array"],
|
| 233 |
+
[/\{/, "@brackets", "@object"]
|
| 234 |
+
],
|
| 235 |
+
// Start Flow Scalars (quoted strings)
|
| 236 |
+
flowScalars: [
|
| 237 |
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
| 238 |
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
| 239 |
+
[/'[^']*'/, "string"],
|
| 240 |
+
[/"/, "string", "@doubleQuotedString"]
|
| 241 |
+
],
|
| 242 |
+
doubleQuotedString: [
|
| 243 |
+
[/[^\\"]+/, "string"],
|
| 244 |
+
[/@escapes/, "string.escape"],
|
| 245 |
+
[/\\./, "string.escape.invalid"],
|
| 246 |
+
[/"/, "string", "@pop"]
|
| 247 |
+
],
|
| 248 |
+
// Start Block Scalar
|
| 249 |
+
blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
|
| 250 |
+
// Numbers in Flow Collections (terminate with ,]})
|
| 251 |
+
flowNumber: [
|
| 252 |
+
[/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
|
| 253 |
+
[/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
|
| 254 |
+
[/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
|
| 255 |
+
[/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
|
| 256 |
+
[/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
|
| 257 |
+
[/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
|
| 258 |
+
[/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
|
| 259 |
+
],
|
| 260 |
+
tagHandle: [[/\![^ ]*/, "tag"]],
|
| 261 |
+
anchor: [[/[&*][^ ]+/, "namespace"]]
|
| 262 |
+
}
|
| 263 |
+
};
|
| 264 |
+
return __toCommonJS(yaml_exports);
|
| 265 |
+
})();
|
| 266 |
+
return moduleExports;
|
| 267 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/language/css/cssMode.js
ADDED
|
@@ -0,0 +1,2094 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/language/css/cssMode", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __create = Object.create;
|
| 11 |
+
var __defProp = Object.defineProperty;
|
| 12 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 13 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 14 |
+
var __getProtoOf = Object.getPrototypeOf;
|
| 15 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 16 |
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
| 17 |
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
| 18 |
+
}) : x)(function(x) {
|
| 19 |
+
if (typeof require !== "undefined")
|
| 20 |
+
return require.apply(this, arguments);
|
| 21 |
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
| 22 |
+
});
|
| 23 |
+
var __commonJS = (cb, mod) => function __require2() {
|
| 24 |
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
| 25 |
+
};
|
| 26 |
+
var __export = (target, all) => {
|
| 27 |
+
for (var name in all)
|
| 28 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 29 |
+
};
|
| 30 |
+
var __copyProps = (to, from, except, desc) => {
|
| 31 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 32 |
+
for (let key of __getOwnPropNames(from))
|
| 33 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 34 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 35 |
+
}
|
| 36 |
+
return to;
|
| 37 |
+
};
|
| 38 |
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
| 39 |
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
| 40 |
+
// If the importer is in node compatibility mode or this is not an ESM
|
| 41 |
+
// file that has been converted to a CommonJS file using a Babel-
|
| 42 |
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
| 43 |
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
| 44 |
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
| 45 |
+
mod
|
| 46 |
+
));
|
| 47 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 48 |
+
|
| 49 |
+
// src/fillers/monaco-editor-core-amd.ts
|
| 50 |
+
var require_monaco_editor_core_amd = __commonJS({
|
| 51 |
+
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
| 52 |
+
var api = __toESM(__require("vs/editor/editor.api"));
|
| 53 |
+
module.exports = api;
|
| 54 |
+
}
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
// src/language/css/cssMode.ts
|
| 58 |
+
var cssMode_exports = {};
|
| 59 |
+
__export(cssMode_exports, {
|
| 60 |
+
CompletionAdapter: () => CompletionAdapter,
|
| 61 |
+
DefinitionAdapter: () => DefinitionAdapter,
|
| 62 |
+
DiagnosticsAdapter: () => DiagnosticsAdapter,
|
| 63 |
+
DocumentColorAdapter: () => DocumentColorAdapter,
|
| 64 |
+
DocumentFormattingEditProvider: () => DocumentFormattingEditProvider,
|
| 65 |
+
DocumentHighlightAdapter: () => DocumentHighlightAdapter,
|
| 66 |
+
DocumentLinkAdapter: () => DocumentLinkAdapter,
|
| 67 |
+
DocumentRangeFormattingEditProvider: () => DocumentRangeFormattingEditProvider,
|
| 68 |
+
DocumentSymbolAdapter: () => DocumentSymbolAdapter,
|
| 69 |
+
FoldingRangeAdapter: () => FoldingRangeAdapter,
|
| 70 |
+
HoverAdapter: () => HoverAdapter,
|
| 71 |
+
ReferenceAdapter: () => ReferenceAdapter,
|
| 72 |
+
RenameAdapter: () => RenameAdapter,
|
| 73 |
+
SelectionRangeAdapter: () => SelectionRangeAdapter,
|
| 74 |
+
WorkerManager: () => WorkerManager,
|
| 75 |
+
fromPosition: () => fromPosition,
|
| 76 |
+
fromRange: () => fromRange,
|
| 77 |
+
setupMode: () => setupMode,
|
| 78 |
+
toRange: () => toRange,
|
| 79 |
+
toTextEdit: () => toTextEdit
|
| 80 |
+
});
|
| 81 |
+
|
| 82 |
+
// src/fillers/monaco-editor-core.ts
|
| 83 |
+
var monaco_editor_core_exports = {};
|
| 84 |
+
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
| 85 |
+
|
| 86 |
+
// src/language/css/workerManager.ts
|
| 87 |
+
var STOP_WHEN_IDLE_FOR = 2 * 60 * 1e3;
|
| 88 |
+
var WorkerManager = class {
|
| 89 |
+
constructor(defaults) {
|
| 90 |
+
this._defaults = defaults;
|
| 91 |
+
this._worker = null;
|
| 92 |
+
this._client = null;
|
| 93 |
+
this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3);
|
| 94 |
+
this._lastUsedTime = 0;
|
| 95 |
+
this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
| 96 |
+
}
|
| 97 |
+
_stopWorker() {
|
| 98 |
+
if (this._worker) {
|
| 99 |
+
this._worker.dispose();
|
| 100 |
+
this._worker = null;
|
| 101 |
+
}
|
| 102 |
+
this._client = null;
|
| 103 |
+
}
|
| 104 |
+
dispose() {
|
| 105 |
+
clearInterval(this._idleCheckInterval);
|
| 106 |
+
this._configChangeListener.dispose();
|
| 107 |
+
this._stopWorker();
|
| 108 |
+
}
|
| 109 |
+
_checkIfIdle() {
|
| 110 |
+
if (!this._worker) {
|
| 111 |
+
return;
|
| 112 |
+
}
|
| 113 |
+
let timePassedSinceLastUsed = Date.now() - this._lastUsedTime;
|
| 114 |
+
if (timePassedSinceLastUsed > STOP_WHEN_IDLE_FOR) {
|
| 115 |
+
this._stopWorker();
|
| 116 |
+
}
|
| 117 |
+
}
|
| 118 |
+
_getClient() {
|
| 119 |
+
this._lastUsedTime = Date.now();
|
| 120 |
+
if (!this._client) {
|
| 121 |
+
this._worker = monaco_editor_core_exports.editor.createWebWorker({
|
| 122 |
+
// module that exports the create() method and returns a `CSSWorker` instance
|
| 123 |
+
moduleId: "vs/language/css/cssWorker",
|
| 124 |
+
label: this._defaults.languageId,
|
| 125 |
+
// passed in to the create() method
|
| 126 |
+
createData: {
|
| 127 |
+
options: this._defaults.options,
|
| 128 |
+
languageId: this._defaults.languageId
|
| 129 |
+
}
|
| 130 |
+
});
|
| 131 |
+
this._client = this._worker.getProxy();
|
| 132 |
+
}
|
| 133 |
+
return this._client;
|
| 134 |
+
}
|
| 135 |
+
getLanguageServiceWorker(...resources) {
|
| 136 |
+
let _client;
|
| 137 |
+
return this._getClient().then((client) => {
|
| 138 |
+
_client = client;
|
| 139 |
+
}).then((_) => {
|
| 140 |
+
if (this._worker) {
|
| 141 |
+
return this._worker.withSyncedResources(resources);
|
| 142 |
+
}
|
| 143 |
+
}).then((_) => _client);
|
| 144 |
+
}
|
| 145 |
+
};
|
| 146 |
+
|
| 147 |
+
// node_modules/vscode-languageserver-types/lib/esm/main.js
|
| 148 |
+
var DocumentUri;
|
| 149 |
+
(function(DocumentUri2) {
|
| 150 |
+
function is(value) {
|
| 151 |
+
return typeof value === "string";
|
| 152 |
+
}
|
| 153 |
+
DocumentUri2.is = is;
|
| 154 |
+
})(DocumentUri || (DocumentUri = {}));
|
| 155 |
+
var URI;
|
| 156 |
+
(function(URI2) {
|
| 157 |
+
function is(value) {
|
| 158 |
+
return typeof value === "string";
|
| 159 |
+
}
|
| 160 |
+
URI2.is = is;
|
| 161 |
+
})(URI || (URI = {}));
|
| 162 |
+
var integer;
|
| 163 |
+
(function(integer2) {
|
| 164 |
+
integer2.MIN_VALUE = -2147483648;
|
| 165 |
+
integer2.MAX_VALUE = 2147483647;
|
| 166 |
+
function is(value) {
|
| 167 |
+
return typeof value === "number" && integer2.MIN_VALUE <= value && value <= integer2.MAX_VALUE;
|
| 168 |
+
}
|
| 169 |
+
integer2.is = is;
|
| 170 |
+
})(integer || (integer = {}));
|
| 171 |
+
var uinteger;
|
| 172 |
+
(function(uinteger2) {
|
| 173 |
+
uinteger2.MIN_VALUE = 0;
|
| 174 |
+
uinteger2.MAX_VALUE = 2147483647;
|
| 175 |
+
function is(value) {
|
| 176 |
+
return typeof value === "number" && uinteger2.MIN_VALUE <= value && value <= uinteger2.MAX_VALUE;
|
| 177 |
+
}
|
| 178 |
+
uinteger2.is = is;
|
| 179 |
+
})(uinteger || (uinteger = {}));
|
| 180 |
+
var Position;
|
| 181 |
+
(function(Position3) {
|
| 182 |
+
function create(line, character) {
|
| 183 |
+
if (line === Number.MAX_VALUE) {
|
| 184 |
+
line = uinteger.MAX_VALUE;
|
| 185 |
+
}
|
| 186 |
+
if (character === Number.MAX_VALUE) {
|
| 187 |
+
character = uinteger.MAX_VALUE;
|
| 188 |
+
}
|
| 189 |
+
return { line, character };
|
| 190 |
+
}
|
| 191 |
+
Position3.create = create;
|
| 192 |
+
function is(value) {
|
| 193 |
+
let candidate = value;
|
| 194 |
+
return Is.objectLiteral(candidate) && Is.uinteger(candidate.line) && Is.uinteger(candidate.character);
|
| 195 |
+
}
|
| 196 |
+
Position3.is = is;
|
| 197 |
+
})(Position || (Position = {}));
|
| 198 |
+
var Range;
|
| 199 |
+
(function(Range3) {
|
| 200 |
+
function create(one, two, three, four) {
|
| 201 |
+
if (Is.uinteger(one) && Is.uinteger(two) && Is.uinteger(three) && Is.uinteger(four)) {
|
| 202 |
+
return { start: Position.create(one, two), end: Position.create(three, four) };
|
| 203 |
+
} else if (Position.is(one) && Position.is(two)) {
|
| 204 |
+
return { start: one, end: two };
|
| 205 |
+
} else {
|
| 206 |
+
throw new Error(`Range#create called with invalid arguments[${one}, ${two}, ${three}, ${four}]`);
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
Range3.create = create;
|
| 210 |
+
function is(value) {
|
| 211 |
+
let candidate = value;
|
| 212 |
+
return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
|
| 213 |
+
}
|
| 214 |
+
Range3.is = is;
|
| 215 |
+
})(Range || (Range = {}));
|
| 216 |
+
var Location;
|
| 217 |
+
(function(Location2) {
|
| 218 |
+
function create(uri, range) {
|
| 219 |
+
return { uri, range };
|
| 220 |
+
}
|
| 221 |
+
Location2.create = create;
|
| 222 |
+
function is(value) {
|
| 223 |
+
let candidate = value;
|
| 224 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.string(candidate.uri) || Is.undefined(candidate.uri));
|
| 225 |
+
}
|
| 226 |
+
Location2.is = is;
|
| 227 |
+
})(Location || (Location = {}));
|
| 228 |
+
var LocationLink;
|
| 229 |
+
(function(LocationLink2) {
|
| 230 |
+
function create(targetUri, targetRange, targetSelectionRange, originSelectionRange) {
|
| 231 |
+
return { targetUri, targetRange, targetSelectionRange, originSelectionRange };
|
| 232 |
+
}
|
| 233 |
+
LocationLink2.create = create;
|
| 234 |
+
function is(value) {
|
| 235 |
+
let candidate = value;
|
| 236 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.targetRange) && Is.string(candidate.targetUri) && Range.is(candidate.targetSelectionRange) && (Range.is(candidate.originSelectionRange) || Is.undefined(candidate.originSelectionRange));
|
| 237 |
+
}
|
| 238 |
+
LocationLink2.is = is;
|
| 239 |
+
})(LocationLink || (LocationLink = {}));
|
| 240 |
+
var Color;
|
| 241 |
+
(function(Color2) {
|
| 242 |
+
function create(red, green, blue, alpha) {
|
| 243 |
+
return {
|
| 244 |
+
red,
|
| 245 |
+
green,
|
| 246 |
+
blue,
|
| 247 |
+
alpha
|
| 248 |
+
};
|
| 249 |
+
}
|
| 250 |
+
Color2.create = create;
|
| 251 |
+
function is(value) {
|
| 252 |
+
const candidate = value;
|
| 253 |
+
return Is.objectLiteral(candidate) && Is.numberRange(candidate.red, 0, 1) && Is.numberRange(candidate.green, 0, 1) && Is.numberRange(candidate.blue, 0, 1) && Is.numberRange(candidate.alpha, 0, 1);
|
| 254 |
+
}
|
| 255 |
+
Color2.is = is;
|
| 256 |
+
})(Color || (Color = {}));
|
| 257 |
+
var ColorInformation;
|
| 258 |
+
(function(ColorInformation2) {
|
| 259 |
+
function create(range, color) {
|
| 260 |
+
return {
|
| 261 |
+
range,
|
| 262 |
+
color
|
| 263 |
+
};
|
| 264 |
+
}
|
| 265 |
+
ColorInformation2.create = create;
|
| 266 |
+
function is(value) {
|
| 267 |
+
const candidate = value;
|
| 268 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && Color.is(candidate.color);
|
| 269 |
+
}
|
| 270 |
+
ColorInformation2.is = is;
|
| 271 |
+
})(ColorInformation || (ColorInformation = {}));
|
| 272 |
+
var ColorPresentation;
|
| 273 |
+
(function(ColorPresentation2) {
|
| 274 |
+
function create(label, textEdit, additionalTextEdits) {
|
| 275 |
+
return {
|
| 276 |
+
label,
|
| 277 |
+
textEdit,
|
| 278 |
+
additionalTextEdits
|
| 279 |
+
};
|
| 280 |
+
}
|
| 281 |
+
ColorPresentation2.create = create;
|
| 282 |
+
function is(value) {
|
| 283 |
+
const candidate = value;
|
| 284 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.undefined(candidate.textEdit) || TextEdit.is(candidate)) && (Is.undefined(candidate.additionalTextEdits) || Is.typedArray(candidate.additionalTextEdits, TextEdit.is));
|
| 285 |
+
}
|
| 286 |
+
ColorPresentation2.is = is;
|
| 287 |
+
})(ColorPresentation || (ColorPresentation = {}));
|
| 288 |
+
var FoldingRangeKind;
|
| 289 |
+
(function(FoldingRangeKind2) {
|
| 290 |
+
FoldingRangeKind2.Comment = "comment";
|
| 291 |
+
FoldingRangeKind2.Imports = "imports";
|
| 292 |
+
FoldingRangeKind2.Region = "region";
|
| 293 |
+
})(FoldingRangeKind || (FoldingRangeKind = {}));
|
| 294 |
+
var FoldingRange;
|
| 295 |
+
(function(FoldingRange2) {
|
| 296 |
+
function create(startLine, endLine, startCharacter, endCharacter, kind, collapsedText) {
|
| 297 |
+
const result = {
|
| 298 |
+
startLine,
|
| 299 |
+
endLine
|
| 300 |
+
};
|
| 301 |
+
if (Is.defined(startCharacter)) {
|
| 302 |
+
result.startCharacter = startCharacter;
|
| 303 |
+
}
|
| 304 |
+
if (Is.defined(endCharacter)) {
|
| 305 |
+
result.endCharacter = endCharacter;
|
| 306 |
+
}
|
| 307 |
+
if (Is.defined(kind)) {
|
| 308 |
+
result.kind = kind;
|
| 309 |
+
}
|
| 310 |
+
if (Is.defined(collapsedText)) {
|
| 311 |
+
result.collapsedText = collapsedText;
|
| 312 |
+
}
|
| 313 |
+
return result;
|
| 314 |
+
}
|
| 315 |
+
FoldingRange2.create = create;
|
| 316 |
+
function is(value) {
|
| 317 |
+
const candidate = value;
|
| 318 |
+
return Is.objectLiteral(candidate) && Is.uinteger(candidate.startLine) && Is.uinteger(candidate.startLine) && (Is.undefined(candidate.startCharacter) || Is.uinteger(candidate.startCharacter)) && (Is.undefined(candidate.endCharacter) || Is.uinteger(candidate.endCharacter)) && (Is.undefined(candidate.kind) || Is.string(candidate.kind));
|
| 319 |
+
}
|
| 320 |
+
FoldingRange2.is = is;
|
| 321 |
+
})(FoldingRange || (FoldingRange = {}));
|
| 322 |
+
var DiagnosticRelatedInformation;
|
| 323 |
+
(function(DiagnosticRelatedInformation2) {
|
| 324 |
+
function create(location, message) {
|
| 325 |
+
return {
|
| 326 |
+
location,
|
| 327 |
+
message
|
| 328 |
+
};
|
| 329 |
+
}
|
| 330 |
+
DiagnosticRelatedInformation2.create = create;
|
| 331 |
+
function is(value) {
|
| 332 |
+
let candidate = value;
|
| 333 |
+
return Is.defined(candidate) && Location.is(candidate.location) && Is.string(candidate.message);
|
| 334 |
+
}
|
| 335 |
+
DiagnosticRelatedInformation2.is = is;
|
| 336 |
+
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {}));
|
| 337 |
+
var DiagnosticSeverity;
|
| 338 |
+
(function(DiagnosticSeverity2) {
|
| 339 |
+
DiagnosticSeverity2.Error = 1;
|
| 340 |
+
DiagnosticSeverity2.Warning = 2;
|
| 341 |
+
DiagnosticSeverity2.Information = 3;
|
| 342 |
+
DiagnosticSeverity2.Hint = 4;
|
| 343 |
+
})(DiagnosticSeverity || (DiagnosticSeverity = {}));
|
| 344 |
+
var DiagnosticTag;
|
| 345 |
+
(function(DiagnosticTag2) {
|
| 346 |
+
DiagnosticTag2.Unnecessary = 1;
|
| 347 |
+
DiagnosticTag2.Deprecated = 2;
|
| 348 |
+
})(DiagnosticTag || (DiagnosticTag = {}));
|
| 349 |
+
var CodeDescription;
|
| 350 |
+
(function(CodeDescription2) {
|
| 351 |
+
function is(value) {
|
| 352 |
+
const candidate = value;
|
| 353 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.href);
|
| 354 |
+
}
|
| 355 |
+
CodeDescription2.is = is;
|
| 356 |
+
})(CodeDescription || (CodeDescription = {}));
|
| 357 |
+
var Diagnostic;
|
| 358 |
+
(function(Diagnostic2) {
|
| 359 |
+
function create(range, message, severity, code, source, relatedInformation) {
|
| 360 |
+
let result = { range, message };
|
| 361 |
+
if (Is.defined(severity)) {
|
| 362 |
+
result.severity = severity;
|
| 363 |
+
}
|
| 364 |
+
if (Is.defined(code)) {
|
| 365 |
+
result.code = code;
|
| 366 |
+
}
|
| 367 |
+
if (Is.defined(source)) {
|
| 368 |
+
result.source = source;
|
| 369 |
+
}
|
| 370 |
+
if (Is.defined(relatedInformation)) {
|
| 371 |
+
result.relatedInformation = relatedInformation;
|
| 372 |
+
}
|
| 373 |
+
return result;
|
| 374 |
+
}
|
| 375 |
+
Diagnostic2.create = create;
|
| 376 |
+
function is(value) {
|
| 377 |
+
var _a;
|
| 378 |
+
let candidate = value;
|
| 379 |
+
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
| 380 |
+
}
|
| 381 |
+
Diagnostic2.is = is;
|
| 382 |
+
})(Diagnostic || (Diagnostic = {}));
|
| 383 |
+
var Command;
|
| 384 |
+
(function(Command2) {
|
| 385 |
+
function create(title, command, ...args) {
|
| 386 |
+
let result = { title, command };
|
| 387 |
+
if (Is.defined(args) && args.length > 0) {
|
| 388 |
+
result.arguments = args;
|
| 389 |
+
}
|
| 390 |
+
return result;
|
| 391 |
+
}
|
| 392 |
+
Command2.create = create;
|
| 393 |
+
function is(value) {
|
| 394 |
+
let candidate = value;
|
| 395 |
+
return Is.defined(candidate) && Is.string(candidate.title) && Is.string(candidate.command);
|
| 396 |
+
}
|
| 397 |
+
Command2.is = is;
|
| 398 |
+
})(Command || (Command = {}));
|
| 399 |
+
var TextEdit;
|
| 400 |
+
(function(TextEdit2) {
|
| 401 |
+
function replace(range, newText) {
|
| 402 |
+
return { range, newText };
|
| 403 |
+
}
|
| 404 |
+
TextEdit2.replace = replace;
|
| 405 |
+
function insert(position, newText) {
|
| 406 |
+
return { range: { start: position, end: position }, newText };
|
| 407 |
+
}
|
| 408 |
+
TextEdit2.insert = insert;
|
| 409 |
+
function del(range) {
|
| 410 |
+
return { range, newText: "" };
|
| 411 |
+
}
|
| 412 |
+
TextEdit2.del = del;
|
| 413 |
+
function is(value) {
|
| 414 |
+
const candidate = value;
|
| 415 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.newText) && Range.is(candidate.range);
|
| 416 |
+
}
|
| 417 |
+
TextEdit2.is = is;
|
| 418 |
+
})(TextEdit || (TextEdit = {}));
|
| 419 |
+
var ChangeAnnotation;
|
| 420 |
+
(function(ChangeAnnotation2) {
|
| 421 |
+
function create(label, needsConfirmation, description) {
|
| 422 |
+
const result = { label };
|
| 423 |
+
if (needsConfirmation !== void 0) {
|
| 424 |
+
result.needsConfirmation = needsConfirmation;
|
| 425 |
+
}
|
| 426 |
+
if (description !== void 0) {
|
| 427 |
+
result.description = description;
|
| 428 |
+
}
|
| 429 |
+
return result;
|
| 430 |
+
}
|
| 431 |
+
ChangeAnnotation2.create = create;
|
| 432 |
+
function is(value) {
|
| 433 |
+
const candidate = value;
|
| 434 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
| 435 |
+
}
|
| 436 |
+
ChangeAnnotation2.is = is;
|
| 437 |
+
})(ChangeAnnotation || (ChangeAnnotation = {}));
|
| 438 |
+
var ChangeAnnotationIdentifier;
|
| 439 |
+
(function(ChangeAnnotationIdentifier2) {
|
| 440 |
+
function is(value) {
|
| 441 |
+
const candidate = value;
|
| 442 |
+
return Is.string(candidate);
|
| 443 |
+
}
|
| 444 |
+
ChangeAnnotationIdentifier2.is = is;
|
| 445 |
+
})(ChangeAnnotationIdentifier || (ChangeAnnotationIdentifier = {}));
|
| 446 |
+
var AnnotatedTextEdit;
|
| 447 |
+
(function(AnnotatedTextEdit2) {
|
| 448 |
+
function replace(range, newText, annotation) {
|
| 449 |
+
return { range, newText, annotationId: annotation };
|
| 450 |
+
}
|
| 451 |
+
AnnotatedTextEdit2.replace = replace;
|
| 452 |
+
function insert(position, newText, annotation) {
|
| 453 |
+
return { range: { start: position, end: position }, newText, annotationId: annotation };
|
| 454 |
+
}
|
| 455 |
+
AnnotatedTextEdit2.insert = insert;
|
| 456 |
+
function del(range, annotation) {
|
| 457 |
+
return { range, newText: "", annotationId: annotation };
|
| 458 |
+
}
|
| 459 |
+
AnnotatedTextEdit2.del = del;
|
| 460 |
+
function is(value) {
|
| 461 |
+
const candidate = value;
|
| 462 |
+
return TextEdit.is(candidate) && (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 463 |
+
}
|
| 464 |
+
AnnotatedTextEdit2.is = is;
|
| 465 |
+
})(AnnotatedTextEdit || (AnnotatedTextEdit = {}));
|
| 466 |
+
var TextDocumentEdit;
|
| 467 |
+
(function(TextDocumentEdit2) {
|
| 468 |
+
function create(textDocument, edits) {
|
| 469 |
+
return { textDocument, edits };
|
| 470 |
+
}
|
| 471 |
+
TextDocumentEdit2.create = create;
|
| 472 |
+
function is(value) {
|
| 473 |
+
let candidate = value;
|
| 474 |
+
return Is.defined(candidate) && OptionalVersionedTextDocumentIdentifier.is(candidate.textDocument) && Array.isArray(candidate.edits);
|
| 475 |
+
}
|
| 476 |
+
TextDocumentEdit2.is = is;
|
| 477 |
+
})(TextDocumentEdit || (TextDocumentEdit = {}));
|
| 478 |
+
var CreateFile;
|
| 479 |
+
(function(CreateFile2) {
|
| 480 |
+
function create(uri, options, annotation) {
|
| 481 |
+
let result = {
|
| 482 |
+
kind: "create",
|
| 483 |
+
uri
|
| 484 |
+
};
|
| 485 |
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
| 486 |
+
result.options = options;
|
| 487 |
+
}
|
| 488 |
+
if (annotation !== void 0) {
|
| 489 |
+
result.annotationId = annotation;
|
| 490 |
+
}
|
| 491 |
+
return result;
|
| 492 |
+
}
|
| 493 |
+
CreateFile2.create = create;
|
| 494 |
+
function is(value) {
|
| 495 |
+
let candidate = value;
|
| 496 |
+
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 497 |
+
}
|
| 498 |
+
CreateFile2.is = is;
|
| 499 |
+
})(CreateFile || (CreateFile = {}));
|
| 500 |
+
var RenameFile;
|
| 501 |
+
(function(RenameFile2) {
|
| 502 |
+
function create(oldUri, newUri, options, annotation) {
|
| 503 |
+
let result = {
|
| 504 |
+
kind: "rename",
|
| 505 |
+
oldUri,
|
| 506 |
+
newUri
|
| 507 |
+
};
|
| 508 |
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
| 509 |
+
result.options = options;
|
| 510 |
+
}
|
| 511 |
+
if (annotation !== void 0) {
|
| 512 |
+
result.annotationId = annotation;
|
| 513 |
+
}
|
| 514 |
+
return result;
|
| 515 |
+
}
|
| 516 |
+
RenameFile2.create = create;
|
| 517 |
+
function is(value) {
|
| 518 |
+
let candidate = value;
|
| 519 |
+
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 520 |
+
}
|
| 521 |
+
RenameFile2.is = is;
|
| 522 |
+
})(RenameFile || (RenameFile = {}));
|
| 523 |
+
var DeleteFile;
|
| 524 |
+
(function(DeleteFile2) {
|
| 525 |
+
function create(uri, options, annotation) {
|
| 526 |
+
let result = {
|
| 527 |
+
kind: "delete",
|
| 528 |
+
uri
|
| 529 |
+
};
|
| 530 |
+
if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) {
|
| 531 |
+
result.options = options;
|
| 532 |
+
}
|
| 533 |
+
if (annotation !== void 0) {
|
| 534 |
+
result.annotationId = annotation;
|
| 535 |
+
}
|
| 536 |
+
return result;
|
| 537 |
+
}
|
| 538 |
+
DeleteFile2.create = create;
|
| 539 |
+
function is(value) {
|
| 540 |
+
let candidate = value;
|
| 541 |
+
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 542 |
+
}
|
| 543 |
+
DeleteFile2.is = is;
|
| 544 |
+
})(DeleteFile || (DeleteFile = {}));
|
| 545 |
+
var WorkspaceEdit;
|
| 546 |
+
(function(WorkspaceEdit2) {
|
| 547 |
+
function is(value) {
|
| 548 |
+
let candidate = value;
|
| 549 |
+
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every((change) => {
|
| 550 |
+
if (Is.string(change.kind)) {
|
| 551 |
+
return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
|
| 552 |
+
} else {
|
| 553 |
+
return TextDocumentEdit.is(change);
|
| 554 |
+
}
|
| 555 |
+
}));
|
| 556 |
+
}
|
| 557 |
+
WorkspaceEdit2.is = is;
|
| 558 |
+
})(WorkspaceEdit || (WorkspaceEdit = {}));
|
| 559 |
+
var TextDocumentIdentifier;
|
| 560 |
+
(function(TextDocumentIdentifier2) {
|
| 561 |
+
function create(uri) {
|
| 562 |
+
return { uri };
|
| 563 |
+
}
|
| 564 |
+
TextDocumentIdentifier2.create = create;
|
| 565 |
+
function is(value) {
|
| 566 |
+
let candidate = value;
|
| 567 |
+
return Is.defined(candidate) && Is.string(candidate.uri);
|
| 568 |
+
}
|
| 569 |
+
TextDocumentIdentifier2.is = is;
|
| 570 |
+
})(TextDocumentIdentifier || (TextDocumentIdentifier = {}));
|
| 571 |
+
var VersionedTextDocumentIdentifier;
|
| 572 |
+
(function(VersionedTextDocumentIdentifier2) {
|
| 573 |
+
function create(uri, version) {
|
| 574 |
+
return { uri, version };
|
| 575 |
+
}
|
| 576 |
+
VersionedTextDocumentIdentifier2.create = create;
|
| 577 |
+
function is(value) {
|
| 578 |
+
let candidate = value;
|
| 579 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && Is.integer(candidate.version);
|
| 580 |
+
}
|
| 581 |
+
VersionedTextDocumentIdentifier2.is = is;
|
| 582 |
+
})(VersionedTextDocumentIdentifier || (VersionedTextDocumentIdentifier = {}));
|
| 583 |
+
var OptionalVersionedTextDocumentIdentifier;
|
| 584 |
+
(function(OptionalVersionedTextDocumentIdentifier2) {
|
| 585 |
+
function create(uri, version) {
|
| 586 |
+
return { uri, version };
|
| 587 |
+
}
|
| 588 |
+
OptionalVersionedTextDocumentIdentifier2.create = create;
|
| 589 |
+
function is(value) {
|
| 590 |
+
let candidate = value;
|
| 591 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && (candidate.version === null || Is.integer(candidate.version));
|
| 592 |
+
}
|
| 593 |
+
OptionalVersionedTextDocumentIdentifier2.is = is;
|
| 594 |
+
})(OptionalVersionedTextDocumentIdentifier || (OptionalVersionedTextDocumentIdentifier = {}));
|
| 595 |
+
var TextDocumentItem;
|
| 596 |
+
(function(TextDocumentItem2) {
|
| 597 |
+
function create(uri, languageId, version, text) {
|
| 598 |
+
return { uri, languageId, version, text };
|
| 599 |
+
}
|
| 600 |
+
TextDocumentItem2.create = create;
|
| 601 |
+
function is(value) {
|
| 602 |
+
let candidate = value;
|
| 603 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && Is.string(candidate.languageId) && Is.integer(candidate.version) && Is.string(candidate.text);
|
| 604 |
+
}
|
| 605 |
+
TextDocumentItem2.is = is;
|
| 606 |
+
})(TextDocumentItem || (TextDocumentItem = {}));
|
| 607 |
+
var MarkupKind;
|
| 608 |
+
(function(MarkupKind2) {
|
| 609 |
+
MarkupKind2.PlainText = "plaintext";
|
| 610 |
+
MarkupKind2.Markdown = "markdown";
|
| 611 |
+
function is(value) {
|
| 612 |
+
const candidate = value;
|
| 613 |
+
return candidate === MarkupKind2.PlainText || candidate === MarkupKind2.Markdown;
|
| 614 |
+
}
|
| 615 |
+
MarkupKind2.is = is;
|
| 616 |
+
})(MarkupKind || (MarkupKind = {}));
|
| 617 |
+
var MarkupContent;
|
| 618 |
+
(function(MarkupContent2) {
|
| 619 |
+
function is(value) {
|
| 620 |
+
const candidate = value;
|
| 621 |
+
return Is.objectLiteral(value) && MarkupKind.is(candidate.kind) && Is.string(candidate.value);
|
| 622 |
+
}
|
| 623 |
+
MarkupContent2.is = is;
|
| 624 |
+
})(MarkupContent || (MarkupContent = {}));
|
| 625 |
+
var CompletionItemKind;
|
| 626 |
+
(function(CompletionItemKind2) {
|
| 627 |
+
CompletionItemKind2.Text = 1;
|
| 628 |
+
CompletionItemKind2.Method = 2;
|
| 629 |
+
CompletionItemKind2.Function = 3;
|
| 630 |
+
CompletionItemKind2.Constructor = 4;
|
| 631 |
+
CompletionItemKind2.Field = 5;
|
| 632 |
+
CompletionItemKind2.Variable = 6;
|
| 633 |
+
CompletionItemKind2.Class = 7;
|
| 634 |
+
CompletionItemKind2.Interface = 8;
|
| 635 |
+
CompletionItemKind2.Module = 9;
|
| 636 |
+
CompletionItemKind2.Property = 10;
|
| 637 |
+
CompletionItemKind2.Unit = 11;
|
| 638 |
+
CompletionItemKind2.Value = 12;
|
| 639 |
+
CompletionItemKind2.Enum = 13;
|
| 640 |
+
CompletionItemKind2.Keyword = 14;
|
| 641 |
+
CompletionItemKind2.Snippet = 15;
|
| 642 |
+
CompletionItemKind2.Color = 16;
|
| 643 |
+
CompletionItemKind2.File = 17;
|
| 644 |
+
CompletionItemKind2.Reference = 18;
|
| 645 |
+
CompletionItemKind2.Folder = 19;
|
| 646 |
+
CompletionItemKind2.EnumMember = 20;
|
| 647 |
+
CompletionItemKind2.Constant = 21;
|
| 648 |
+
CompletionItemKind2.Struct = 22;
|
| 649 |
+
CompletionItemKind2.Event = 23;
|
| 650 |
+
CompletionItemKind2.Operator = 24;
|
| 651 |
+
CompletionItemKind2.TypeParameter = 25;
|
| 652 |
+
})(CompletionItemKind || (CompletionItemKind = {}));
|
| 653 |
+
var InsertTextFormat;
|
| 654 |
+
(function(InsertTextFormat2) {
|
| 655 |
+
InsertTextFormat2.PlainText = 1;
|
| 656 |
+
InsertTextFormat2.Snippet = 2;
|
| 657 |
+
})(InsertTextFormat || (InsertTextFormat = {}));
|
| 658 |
+
var CompletionItemTag;
|
| 659 |
+
(function(CompletionItemTag2) {
|
| 660 |
+
CompletionItemTag2.Deprecated = 1;
|
| 661 |
+
})(CompletionItemTag || (CompletionItemTag = {}));
|
| 662 |
+
var InsertReplaceEdit;
|
| 663 |
+
(function(InsertReplaceEdit2) {
|
| 664 |
+
function create(newText, insert, replace) {
|
| 665 |
+
return { newText, insert, replace };
|
| 666 |
+
}
|
| 667 |
+
InsertReplaceEdit2.create = create;
|
| 668 |
+
function is(value) {
|
| 669 |
+
const candidate = value;
|
| 670 |
+
return candidate && Is.string(candidate.newText) && Range.is(candidate.insert) && Range.is(candidate.replace);
|
| 671 |
+
}
|
| 672 |
+
InsertReplaceEdit2.is = is;
|
| 673 |
+
})(InsertReplaceEdit || (InsertReplaceEdit = {}));
|
| 674 |
+
var InsertTextMode;
|
| 675 |
+
(function(InsertTextMode2) {
|
| 676 |
+
InsertTextMode2.asIs = 1;
|
| 677 |
+
InsertTextMode2.adjustIndentation = 2;
|
| 678 |
+
})(InsertTextMode || (InsertTextMode = {}));
|
| 679 |
+
var CompletionItemLabelDetails;
|
| 680 |
+
(function(CompletionItemLabelDetails2) {
|
| 681 |
+
function is(value) {
|
| 682 |
+
const candidate = value;
|
| 683 |
+
return candidate && (Is.string(candidate.detail) || candidate.detail === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
| 684 |
+
}
|
| 685 |
+
CompletionItemLabelDetails2.is = is;
|
| 686 |
+
})(CompletionItemLabelDetails || (CompletionItemLabelDetails = {}));
|
| 687 |
+
var CompletionItem;
|
| 688 |
+
(function(CompletionItem2) {
|
| 689 |
+
function create(label) {
|
| 690 |
+
return { label };
|
| 691 |
+
}
|
| 692 |
+
CompletionItem2.create = create;
|
| 693 |
+
})(CompletionItem || (CompletionItem = {}));
|
| 694 |
+
var CompletionList;
|
| 695 |
+
(function(CompletionList2) {
|
| 696 |
+
function create(items, isIncomplete) {
|
| 697 |
+
return { items: items ? items : [], isIncomplete: !!isIncomplete };
|
| 698 |
+
}
|
| 699 |
+
CompletionList2.create = create;
|
| 700 |
+
})(CompletionList || (CompletionList = {}));
|
| 701 |
+
var MarkedString;
|
| 702 |
+
(function(MarkedString2) {
|
| 703 |
+
function fromPlainText(plainText) {
|
| 704 |
+
return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
| 705 |
+
}
|
| 706 |
+
MarkedString2.fromPlainText = fromPlainText;
|
| 707 |
+
function is(value) {
|
| 708 |
+
const candidate = value;
|
| 709 |
+
return Is.string(candidate) || Is.objectLiteral(candidate) && Is.string(candidate.language) && Is.string(candidate.value);
|
| 710 |
+
}
|
| 711 |
+
MarkedString2.is = is;
|
| 712 |
+
})(MarkedString || (MarkedString = {}));
|
| 713 |
+
var Hover;
|
| 714 |
+
(function(Hover2) {
|
| 715 |
+
function is(value) {
|
| 716 |
+
let candidate = value;
|
| 717 |
+
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
|
| 718 |
+
}
|
| 719 |
+
Hover2.is = is;
|
| 720 |
+
})(Hover || (Hover = {}));
|
| 721 |
+
var ParameterInformation;
|
| 722 |
+
(function(ParameterInformation2) {
|
| 723 |
+
function create(label, documentation) {
|
| 724 |
+
return documentation ? { label, documentation } : { label };
|
| 725 |
+
}
|
| 726 |
+
ParameterInformation2.create = create;
|
| 727 |
+
})(ParameterInformation || (ParameterInformation = {}));
|
| 728 |
+
var SignatureInformation;
|
| 729 |
+
(function(SignatureInformation2) {
|
| 730 |
+
function create(label, documentation, ...parameters) {
|
| 731 |
+
let result = { label };
|
| 732 |
+
if (Is.defined(documentation)) {
|
| 733 |
+
result.documentation = documentation;
|
| 734 |
+
}
|
| 735 |
+
if (Is.defined(parameters)) {
|
| 736 |
+
result.parameters = parameters;
|
| 737 |
+
} else {
|
| 738 |
+
result.parameters = [];
|
| 739 |
+
}
|
| 740 |
+
return result;
|
| 741 |
+
}
|
| 742 |
+
SignatureInformation2.create = create;
|
| 743 |
+
})(SignatureInformation || (SignatureInformation = {}));
|
| 744 |
+
var DocumentHighlightKind;
|
| 745 |
+
(function(DocumentHighlightKind2) {
|
| 746 |
+
DocumentHighlightKind2.Text = 1;
|
| 747 |
+
DocumentHighlightKind2.Read = 2;
|
| 748 |
+
DocumentHighlightKind2.Write = 3;
|
| 749 |
+
})(DocumentHighlightKind || (DocumentHighlightKind = {}));
|
| 750 |
+
var DocumentHighlight;
|
| 751 |
+
(function(DocumentHighlight2) {
|
| 752 |
+
function create(range, kind) {
|
| 753 |
+
let result = { range };
|
| 754 |
+
if (Is.number(kind)) {
|
| 755 |
+
result.kind = kind;
|
| 756 |
+
}
|
| 757 |
+
return result;
|
| 758 |
+
}
|
| 759 |
+
DocumentHighlight2.create = create;
|
| 760 |
+
})(DocumentHighlight || (DocumentHighlight = {}));
|
| 761 |
+
var SymbolKind;
|
| 762 |
+
(function(SymbolKind2) {
|
| 763 |
+
SymbolKind2.File = 1;
|
| 764 |
+
SymbolKind2.Module = 2;
|
| 765 |
+
SymbolKind2.Namespace = 3;
|
| 766 |
+
SymbolKind2.Package = 4;
|
| 767 |
+
SymbolKind2.Class = 5;
|
| 768 |
+
SymbolKind2.Method = 6;
|
| 769 |
+
SymbolKind2.Property = 7;
|
| 770 |
+
SymbolKind2.Field = 8;
|
| 771 |
+
SymbolKind2.Constructor = 9;
|
| 772 |
+
SymbolKind2.Enum = 10;
|
| 773 |
+
SymbolKind2.Interface = 11;
|
| 774 |
+
SymbolKind2.Function = 12;
|
| 775 |
+
SymbolKind2.Variable = 13;
|
| 776 |
+
SymbolKind2.Constant = 14;
|
| 777 |
+
SymbolKind2.String = 15;
|
| 778 |
+
SymbolKind2.Number = 16;
|
| 779 |
+
SymbolKind2.Boolean = 17;
|
| 780 |
+
SymbolKind2.Array = 18;
|
| 781 |
+
SymbolKind2.Object = 19;
|
| 782 |
+
SymbolKind2.Key = 20;
|
| 783 |
+
SymbolKind2.Null = 21;
|
| 784 |
+
SymbolKind2.EnumMember = 22;
|
| 785 |
+
SymbolKind2.Struct = 23;
|
| 786 |
+
SymbolKind2.Event = 24;
|
| 787 |
+
SymbolKind2.Operator = 25;
|
| 788 |
+
SymbolKind2.TypeParameter = 26;
|
| 789 |
+
})(SymbolKind || (SymbolKind = {}));
|
| 790 |
+
var SymbolTag;
|
| 791 |
+
(function(SymbolTag2) {
|
| 792 |
+
SymbolTag2.Deprecated = 1;
|
| 793 |
+
})(SymbolTag || (SymbolTag = {}));
|
| 794 |
+
var SymbolInformation;
|
| 795 |
+
(function(SymbolInformation2) {
|
| 796 |
+
function create(name, kind, range, uri, containerName) {
|
| 797 |
+
let result = {
|
| 798 |
+
name,
|
| 799 |
+
kind,
|
| 800 |
+
location: { uri, range }
|
| 801 |
+
};
|
| 802 |
+
if (containerName) {
|
| 803 |
+
result.containerName = containerName;
|
| 804 |
+
}
|
| 805 |
+
return result;
|
| 806 |
+
}
|
| 807 |
+
SymbolInformation2.create = create;
|
| 808 |
+
})(SymbolInformation || (SymbolInformation = {}));
|
| 809 |
+
var WorkspaceSymbol;
|
| 810 |
+
(function(WorkspaceSymbol2) {
|
| 811 |
+
function create(name, kind, uri, range) {
|
| 812 |
+
return range !== void 0 ? { name, kind, location: { uri, range } } : { name, kind, location: { uri } };
|
| 813 |
+
}
|
| 814 |
+
WorkspaceSymbol2.create = create;
|
| 815 |
+
})(WorkspaceSymbol || (WorkspaceSymbol = {}));
|
| 816 |
+
var DocumentSymbol;
|
| 817 |
+
(function(DocumentSymbol2) {
|
| 818 |
+
function create(name, detail, kind, range, selectionRange, children) {
|
| 819 |
+
let result = {
|
| 820 |
+
name,
|
| 821 |
+
detail,
|
| 822 |
+
kind,
|
| 823 |
+
range,
|
| 824 |
+
selectionRange
|
| 825 |
+
};
|
| 826 |
+
if (children !== void 0) {
|
| 827 |
+
result.children = children;
|
| 828 |
+
}
|
| 829 |
+
return result;
|
| 830 |
+
}
|
| 831 |
+
DocumentSymbol2.create = create;
|
| 832 |
+
function is(value) {
|
| 833 |
+
let candidate = value;
|
| 834 |
+
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail === void 0 || Is.string(candidate.detail)) && (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && (candidate.children === void 0 || Array.isArray(candidate.children)) && (candidate.tags === void 0 || Array.isArray(candidate.tags));
|
| 835 |
+
}
|
| 836 |
+
DocumentSymbol2.is = is;
|
| 837 |
+
})(DocumentSymbol || (DocumentSymbol = {}));
|
| 838 |
+
var CodeActionKind;
|
| 839 |
+
(function(CodeActionKind2) {
|
| 840 |
+
CodeActionKind2.Empty = "";
|
| 841 |
+
CodeActionKind2.QuickFix = "quickfix";
|
| 842 |
+
CodeActionKind2.Refactor = "refactor";
|
| 843 |
+
CodeActionKind2.RefactorExtract = "refactor.extract";
|
| 844 |
+
CodeActionKind2.RefactorInline = "refactor.inline";
|
| 845 |
+
CodeActionKind2.RefactorRewrite = "refactor.rewrite";
|
| 846 |
+
CodeActionKind2.Source = "source";
|
| 847 |
+
CodeActionKind2.SourceOrganizeImports = "source.organizeImports";
|
| 848 |
+
CodeActionKind2.SourceFixAll = "source.fixAll";
|
| 849 |
+
})(CodeActionKind || (CodeActionKind = {}));
|
| 850 |
+
var CodeActionTriggerKind;
|
| 851 |
+
(function(CodeActionTriggerKind2) {
|
| 852 |
+
CodeActionTriggerKind2.Invoked = 1;
|
| 853 |
+
CodeActionTriggerKind2.Automatic = 2;
|
| 854 |
+
})(CodeActionTriggerKind || (CodeActionTriggerKind = {}));
|
| 855 |
+
var CodeActionContext;
|
| 856 |
+
(function(CodeActionContext2) {
|
| 857 |
+
function create(diagnostics, only, triggerKind) {
|
| 858 |
+
let result = { diagnostics };
|
| 859 |
+
if (only !== void 0 && only !== null) {
|
| 860 |
+
result.only = only;
|
| 861 |
+
}
|
| 862 |
+
if (triggerKind !== void 0 && triggerKind !== null) {
|
| 863 |
+
result.triggerKind = triggerKind;
|
| 864 |
+
}
|
| 865 |
+
return result;
|
| 866 |
+
}
|
| 867 |
+
CodeActionContext2.create = create;
|
| 868 |
+
function is(value) {
|
| 869 |
+
let candidate = value;
|
| 870 |
+
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)) && (candidate.triggerKind === void 0 || candidate.triggerKind === CodeActionTriggerKind.Invoked || candidate.triggerKind === CodeActionTriggerKind.Automatic);
|
| 871 |
+
}
|
| 872 |
+
CodeActionContext2.is = is;
|
| 873 |
+
})(CodeActionContext || (CodeActionContext = {}));
|
| 874 |
+
var CodeAction;
|
| 875 |
+
(function(CodeAction2) {
|
| 876 |
+
function create(title, kindOrCommandOrEdit, kind) {
|
| 877 |
+
let result = { title };
|
| 878 |
+
let checkKind = true;
|
| 879 |
+
if (typeof kindOrCommandOrEdit === "string") {
|
| 880 |
+
checkKind = false;
|
| 881 |
+
result.kind = kindOrCommandOrEdit;
|
| 882 |
+
} else if (Command.is(kindOrCommandOrEdit)) {
|
| 883 |
+
result.command = kindOrCommandOrEdit;
|
| 884 |
+
} else {
|
| 885 |
+
result.edit = kindOrCommandOrEdit;
|
| 886 |
+
}
|
| 887 |
+
if (checkKind && kind !== void 0) {
|
| 888 |
+
result.kind = kind;
|
| 889 |
+
}
|
| 890 |
+
return result;
|
| 891 |
+
}
|
| 892 |
+
CodeAction2.create = create;
|
| 893 |
+
function is(value) {
|
| 894 |
+
let candidate = value;
|
| 895 |
+
return candidate && Is.string(candidate.title) && (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && (candidate.kind === void 0 || Is.string(candidate.kind)) && (candidate.edit !== void 0 || candidate.command !== void 0) && (candidate.command === void 0 || Command.is(candidate.command)) && (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit));
|
| 896 |
+
}
|
| 897 |
+
CodeAction2.is = is;
|
| 898 |
+
})(CodeAction || (CodeAction = {}));
|
| 899 |
+
var CodeLens;
|
| 900 |
+
(function(CodeLens2) {
|
| 901 |
+
function create(range, data) {
|
| 902 |
+
let result = { range };
|
| 903 |
+
if (Is.defined(data)) {
|
| 904 |
+
result.data = data;
|
| 905 |
+
}
|
| 906 |
+
return result;
|
| 907 |
+
}
|
| 908 |
+
CodeLens2.create = create;
|
| 909 |
+
function is(value) {
|
| 910 |
+
let candidate = value;
|
| 911 |
+
return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.command) || Command.is(candidate.command));
|
| 912 |
+
}
|
| 913 |
+
CodeLens2.is = is;
|
| 914 |
+
})(CodeLens || (CodeLens = {}));
|
| 915 |
+
var FormattingOptions;
|
| 916 |
+
(function(FormattingOptions2) {
|
| 917 |
+
function create(tabSize, insertSpaces) {
|
| 918 |
+
return { tabSize, insertSpaces };
|
| 919 |
+
}
|
| 920 |
+
FormattingOptions2.create = create;
|
| 921 |
+
function is(value) {
|
| 922 |
+
let candidate = value;
|
| 923 |
+
return Is.defined(candidate) && Is.uinteger(candidate.tabSize) && Is.boolean(candidate.insertSpaces);
|
| 924 |
+
}
|
| 925 |
+
FormattingOptions2.is = is;
|
| 926 |
+
})(FormattingOptions || (FormattingOptions = {}));
|
| 927 |
+
var DocumentLink;
|
| 928 |
+
(function(DocumentLink2) {
|
| 929 |
+
function create(range, target, data) {
|
| 930 |
+
return { range, target, data };
|
| 931 |
+
}
|
| 932 |
+
DocumentLink2.create = create;
|
| 933 |
+
function is(value) {
|
| 934 |
+
let candidate = value;
|
| 935 |
+
return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.target) || Is.string(candidate.target));
|
| 936 |
+
}
|
| 937 |
+
DocumentLink2.is = is;
|
| 938 |
+
})(DocumentLink || (DocumentLink = {}));
|
| 939 |
+
var SelectionRange;
|
| 940 |
+
(function(SelectionRange2) {
|
| 941 |
+
function create(range, parent) {
|
| 942 |
+
return { range, parent };
|
| 943 |
+
}
|
| 944 |
+
SelectionRange2.create = create;
|
| 945 |
+
function is(value) {
|
| 946 |
+
let candidate = value;
|
| 947 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent === void 0 || SelectionRange2.is(candidate.parent));
|
| 948 |
+
}
|
| 949 |
+
SelectionRange2.is = is;
|
| 950 |
+
})(SelectionRange || (SelectionRange = {}));
|
| 951 |
+
var SemanticTokenTypes;
|
| 952 |
+
(function(SemanticTokenTypes2) {
|
| 953 |
+
SemanticTokenTypes2["namespace"] = "namespace";
|
| 954 |
+
SemanticTokenTypes2["type"] = "type";
|
| 955 |
+
SemanticTokenTypes2["class"] = "class";
|
| 956 |
+
SemanticTokenTypes2["enum"] = "enum";
|
| 957 |
+
SemanticTokenTypes2["interface"] = "interface";
|
| 958 |
+
SemanticTokenTypes2["struct"] = "struct";
|
| 959 |
+
SemanticTokenTypes2["typeParameter"] = "typeParameter";
|
| 960 |
+
SemanticTokenTypes2["parameter"] = "parameter";
|
| 961 |
+
SemanticTokenTypes2["variable"] = "variable";
|
| 962 |
+
SemanticTokenTypes2["property"] = "property";
|
| 963 |
+
SemanticTokenTypes2["enumMember"] = "enumMember";
|
| 964 |
+
SemanticTokenTypes2["event"] = "event";
|
| 965 |
+
SemanticTokenTypes2["function"] = "function";
|
| 966 |
+
SemanticTokenTypes2["method"] = "method";
|
| 967 |
+
SemanticTokenTypes2["macro"] = "macro";
|
| 968 |
+
SemanticTokenTypes2["keyword"] = "keyword";
|
| 969 |
+
SemanticTokenTypes2["modifier"] = "modifier";
|
| 970 |
+
SemanticTokenTypes2["comment"] = "comment";
|
| 971 |
+
SemanticTokenTypes2["string"] = "string";
|
| 972 |
+
SemanticTokenTypes2["number"] = "number";
|
| 973 |
+
SemanticTokenTypes2["regexp"] = "regexp";
|
| 974 |
+
SemanticTokenTypes2["operator"] = "operator";
|
| 975 |
+
SemanticTokenTypes2["decorator"] = "decorator";
|
| 976 |
+
})(SemanticTokenTypes || (SemanticTokenTypes = {}));
|
| 977 |
+
var SemanticTokenModifiers;
|
| 978 |
+
(function(SemanticTokenModifiers2) {
|
| 979 |
+
SemanticTokenModifiers2["declaration"] = "declaration";
|
| 980 |
+
SemanticTokenModifiers2["definition"] = "definition";
|
| 981 |
+
SemanticTokenModifiers2["readonly"] = "readonly";
|
| 982 |
+
SemanticTokenModifiers2["static"] = "static";
|
| 983 |
+
SemanticTokenModifiers2["deprecated"] = "deprecated";
|
| 984 |
+
SemanticTokenModifiers2["abstract"] = "abstract";
|
| 985 |
+
SemanticTokenModifiers2["async"] = "async";
|
| 986 |
+
SemanticTokenModifiers2["modification"] = "modification";
|
| 987 |
+
SemanticTokenModifiers2["documentation"] = "documentation";
|
| 988 |
+
SemanticTokenModifiers2["defaultLibrary"] = "defaultLibrary";
|
| 989 |
+
})(SemanticTokenModifiers || (SemanticTokenModifiers = {}));
|
| 990 |
+
var SemanticTokens;
|
| 991 |
+
(function(SemanticTokens2) {
|
| 992 |
+
function is(value) {
|
| 993 |
+
const candidate = value;
|
| 994 |
+
return Is.objectLiteral(candidate) && (candidate.resultId === void 0 || typeof candidate.resultId === "string") && Array.isArray(candidate.data) && (candidate.data.length === 0 || typeof candidate.data[0] === "number");
|
| 995 |
+
}
|
| 996 |
+
SemanticTokens2.is = is;
|
| 997 |
+
})(SemanticTokens || (SemanticTokens = {}));
|
| 998 |
+
var InlineValueText;
|
| 999 |
+
(function(InlineValueText2) {
|
| 1000 |
+
function create(range, text) {
|
| 1001 |
+
return { range, text };
|
| 1002 |
+
}
|
| 1003 |
+
InlineValueText2.create = create;
|
| 1004 |
+
function is(value) {
|
| 1005 |
+
const candidate = value;
|
| 1006 |
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.string(candidate.text);
|
| 1007 |
+
}
|
| 1008 |
+
InlineValueText2.is = is;
|
| 1009 |
+
})(InlineValueText || (InlineValueText = {}));
|
| 1010 |
+
var InlineValueVariableLookup;
|
| 1011 |
+
(function(InlineValueVariableLookup2) {
|
| 1012 |
+
function create(range, variableName, caseSensitiveLookup) {
|
| 1013 |
+
return { range, variableName, caseSensitiveLookup };
|
| 1014 |
+
}
|
| 1015 |
+
InlineValueVariableLookup2.create = create;
|
| 1016 |
+
function is(value) {
|
| 1017 |
+
const candidate = value;
|
| 1018 |
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.boolean(candidate.caseSensitiveLookup) && (Is.string(candidate.variableName) || candidate.variableName === void 0);
|
| 1019 |
+
}
|
| 1020 |
+
InlineValueVariableLookup2.is = is;
|
| 1021 |
+
})(InlineValueVariableLookup || (InlineValueVariableLookup = {}));
|
| 1022 |
+
var InlineValueEvaluatableExpression;
|
| 1023 |
+
(function(InlineValueEvaluatableExpression2) {
|
| 1024 |
+
function create(range, expression) {
|
| 1025 |
+
return { range, expression };
|
| 1026 |
+
}
|
| 1027 |
+
InlineValueEvaluatableExpression2.create = create;
|
| 1028 |
+
function is(value) {
|
| 1029 |
+
const candidate = value;
|
| 1030 |
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && (Is.string(candidate.expression) || candidate.expression === void 0);
|
| 1031 |
+
}
|
| 1032 |
+
InlineValueEvaluatableExpression2.is = is;
|
| 1033 |
+
})(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {}));
|
| 1034 |
+
var InlineValueContext;
|
| 1035 |
+
(function(InlineValueContext2) {
|
| 1036 |
+
function create(frameId, stoppedLocation) {
|
| 1037 |
+
return { frameId, stoppedLocation };
|
| 1038 |
+
}
|
| 1039 |
+
InlineValueContext2.create = create;
|
| 1040 |
+
function is(value) {
|
| 1041 |
+
const candidate = value;
|
| 1042 |
+
return Is.defined(candidate) && Range.is(value.stoppedLocation);
|
| 1043 |
+
}
|
| 1044 |
+
InlineValueContext2.is = is;
|
| 1045 |
+
})(InlineValueContext || (InlineValueContext = {}));
|
| 1046 |
+
var InlayHintKind;
|
| 1047 |
+
(function(InlayHintKind2) {
|
| 1048 |
+
InlayHintKind2.Type = 1;
|
| 1049 |
+
InlayHintKind2.Parameter = 2;
|
| 1050 |
+
function is(value) {
|
| 1051 |
+
return value === 1 || value === 2;
|
| 1052 |
+
}
|
| 1053 |
+
InlayHintKind2.is = is;
|
| 1054 |
+
})(InlayHintKind || (InlayHintKind = {}));
|
| 1055 |
+
var InlayHintLabelPart;
|
| 1056 |
+
(function(InlayHintLabelPart2) {
|
| 1057 |
+
function create(value) {
|
| 1058 |
+
return { value };
|
| 1059 |
+
}
|
| 1060 |
+
InlayHintLabelPart2.create = create;
|
| 1061 |
+
function is(value) {
|
| 1062 |
+
const candidate = value;
|
| 1063 |
+
return Is.objectLiteral(candidate) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.location === void 0 || Location.is(candidate.location)) && (candidate.command === void 0 || Command.is(candidate.command));
|
| 1064 |
+
}
|
| 1065 |
+
InlayHintLabelPart2.is = is;
|
| 1066 |
+
})(InlayHintLabelPart || (InlayHintLabelPart = {}));
|
| 1067 |
+
var InlayHint;
|
| 1068 |
+
(function(InlayHint2) {
|
| 1069 |
+
function create(position, label, kind) {
|
| 1070 |
+
const result = { position, label };
|
| 1071 |
+
if (kind !== void 0) {
|
| 1072 |
+
result.kind = kind;
|
| 1073 |
+
}
|
| 1074 |
+
return result;
|
| 1075 |
+
}
|
| 1076 |
+
InlayHint2.create = create;
|
| 1077 |
+
function is(value) {
|
| 1078 |
+
const candidate = value;
|
| 1079 |
+
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind === void 0 || InlayHintKind.is(candidate.kind)) && candidate.textEdits === void 0 || Is.typedArray(candidate.textEdits, TextEdit.is) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.paddingLeft === void 0 || Is.boolean(candidate.paddingLeft)) && (candidate.paddingRight === void 0 || Is.boolean(candidate.paddingRight));
|
| 1080 |
+
}
|
| 1081 |
+
InlayHint2.is = is;
|
| 1082 |
+
})(InlayHint || (InlayHint = {}));
|
| 1083 |
+
var StringValue;
|
| 1084 |
+
(function(StringValue2) {
|
| 1085 |
+
function createSnippet(value) {
|
| 1086 |
+
return { kind: "snippet", value };
|
| 1087 |
+
}
|
| 1088 |
+
StringValue2.createSnippet = createSnippet;
|
| 1089 |
+
})(StringValue || (StringValue = {}));
|
| 1090 |
+
var InlineCompletionItem;
|
| 1091 |
+
(function(InlineCompletionItem2) {
|
| 1092 |
+
function create(insertText, filterText, range, command) {
|
| 1093 |
+
return { insertText, filterText, range, command };
|
| 1094 |
+
}
|
| 1095 |
+
InlineCompletionItem2.create = create;
|
| 1096 |
+
})(InlineCompletionItem || (InlineCompletionItem = {}));
|
| 1097 |
+
var InlineCompletionList;
|
| 1098 |
+
(function(InlineCompletionList2) {
|
| 1099 |
+
function create(items) {
|
| 1100 |
+
return { items };
|
| 1101 |
+
}
|
| 1102 |
+
InlineCompletionList2.create = create;
|
| 1103 |
+
})(InlineCompletionList || (InlineCompletionList = {}));
|
| 1104 |
+
var InlineCompletionTriggerKind;
|
| 1105 |
+
(function(InlineCompletionTriggerKind2) {
|
| 1106 |
+
InlineCompletionTriggerKind2.Invoked = 0;
|
| 1107 |
+
InlineCompletionTriggerKind2.Automatic = 1;
|
| 1108 |
+
})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
|
| 1109 |
+
var SelectedCompletionInfo;
|
| 1110 |
+
(function(SelectedCompletionInfo2) {
|
| 1111 |
+
function create(range, text) {
|
| 1112 |
+
return { range, text };
|
| 1113 |
+
}
|
| 1114 |
+
SelectedCompletionInfo2.create = create;
|
| 1115 |
+
})(SelectedCompletionInfo || (SelectedCompletionInfo = {}));
|
| 1116 |
+
var InlineCompletionContext;
|
| 1117 |
+
(function(InlineCompletionContext2) {
|
| 1118 |
+
function create(triggerKind, selectedCompletionInfo) {
|
| 1119 |
+
return { triggerKind, selectedCompletionInfo };
|
| 1120 |
+
}
|
| 1121 |
+
InlineCompletionContext2.create = create;
|
| 1122 |
+
})(InlineCompletionContext || (InlineCompletionContext = {}));
|
| 1123 |
+
var WorkspaceFolder;
|
| 1124 |
+
(function(WorkspaceFolder2) {
|
| 1125 |
+
function is(value) {
|
| 1126 |
+
const candidate = value;
|
| 1127 |
+
return Is.objectLiteral(candidate) && URI.is(candidate.uri) && Is.string(candidate.name);
|
| 1128 |
+
}
|
| 1129 |
+
WorkspaceFolder2.is = is;
|
| 1130 |
+
})(WorkspaceFolder || (WorkspaceFolder = {}));
|
| 1131 |
+
var TextDocument;
|
| 1132 |
+
(function(TextDocument2) {
|
| 1133 |
+
function create(uri, languageId, version, content) {
|
| 1134 |
+
return new FullTextDocument(uri, languageId, version, content);
|
| 1135 |
+
}
|
| 1136 |
+
TextDocument2.create = create;
|
| 1137 |
+
function is(value) {
|
| 1138 |
+
let candidate = value;
|
| 1139 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.uinteger(candidate.lineCount) && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false;
|
| 1140 |
+
}
|
| 1141 |
+
TextDocument2.is = is;
|
| 1142 |
+
function applyEdits(document, edits) {
|
| 1143 |
+
let text = document.getText();
|
| 1144 |
+
let sortedEdits = mergeSort(edits, (a, b) => {
|
| 1145 |
+
let diff = a.range.start.line - b.range.start.line;
|
| 1146 |
+
if (diff === 0) {
|
| 1147 |
+
return a.range.start.character - b.range.start.character;
|
| 1148 |
+
}
|
| 1149 |
+
return diff;
|
| 1150 |
+
});
|
| 1151 |
+
let lastModifiedOffset = text.length;
|
| 1152 |
+
for (let i = sortedEdits.length - 1; i >= 0; i--) {
|
| 1153 |
+
let e = sortedEdits[i];
|
| 1154 |
+
let startOffset = document.offsetAt(e.range.start);
|
| 1155 |
+
let endOffset = document.offsetAt(e.range.end);
|
| 1156 |
+
if (endOffset <= lastModifiedOffset) {
|
| 1157 |
+
text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length);
|
| 1158 |
+
} else {
|
| 1159 |
+
throw new Error("Overlapping edit");
|
| 1160 |
+
}
|
| 1161 |
+
lastModifiedOffset = startOffset;
|
| 1162 |
+
}
|
| 1163 |
+
return text;
|
| 1164 |
+
}
|
| 1165 |
+
TextDocument2.applyEdits = applyEdits;
|
| 1166 |
+
function mergeSort(data, compare) {
|
| 1167 |
+
if (data.length <= 1) {
|
| 1168 |
+
return data;
|
| 1169 |
+
}
|
| 1170 |
+
const p = data.length / 2 | 0;
|
| 1171 |
+
const left = data.slice(0, p);
|
| 1172 |
+
const right = data.slice(p);
|
| 1173 |
+
mergeSort(left, compare);
|
| 1174 |
+
mergeSort(right, compare);
|
| 1175 |
+
let leftIdx = 0;
|
| 1176 |
+
let rightIdx = 0;
|
| 1177 |
+
let i = 0;
|
| 1178 |
+
while (leftIdx < left.length && rightIdx < right.length) {
|
| 1179 |
+
let ret = compare(left[leftIdx], right[rightIdx]);
|
| 1180 |
+
if (ret <= 0) {
|
| 1181 |
+
data[i++] = left[leftIdx++];
|
| 1182 |
+
} else {
|
| 1183 |
+
data[i++] = right[rightIdx++];
|
| 1184 |
+
}
|
| 1185 |
+
}
|
| 1186 |
+
while (leftIdx < left.length) {
|
| 1187 |
+
data[i++] = left[leftIdx++];
|
| 1188 |
+
}
|
| 1189 |
+
while (rightIdx < right.length) {
|
| 1190 |
+
data[i++] = right[rightIdx++];
|
| 1191 |
+
}
|
| 1192 |
+
return data;
|
| 1193 |
+
}
|
| 1194 |
+
})(TextDocument || (TextDocument = {}));
|
| 1195 |
+
var FullTextDocument = class {
|
| 1196 |
+
constructor(uri, languageId, version, content) {
|
| 1197 |
+
this._uri = uri;
|
| 1198 |
+
this._languageId = languageId;
|
| 1199 |
+
this._version = version;
|
| 1200 |
+
this._content = content;
|
| 1201 |
+
this._lineOffsets = void 0;
|
| 1202 |
+
}
|
| 1203 |
+
get uri() {
|
| 1204 |
+
return this._uri;
|
| 1205 |
+
}
|
| 1206 |
+
get languageId() {
|
| 1207 |
+
return this._languageId;
|
| 1208 |
+
}
|
| 1209 |
+
get version() {
|
| 1210 |
+
return this._version;
|
| 1211 |
+
}
|
| 1212 |
+
getText(range) {
|
| 1213 |
+
if (range) {
|
| 1214 |
+
let start = this.offsetAt(range.start);
|
| 1215 |
+
let end = this.offsetAt(range.end);
|
| 1216 |
+
return this._content.substring(start, end);
|
| 1217 |
+
}
|
| 1218 |
+
return this._content;
|
| 1219 |
+
}
|
| 1220 |
+
update(event, version) {
|
| 1221 |
+
this._content = event.text;
|
| 1222 |
+
this._version = version;
|
| 1223 |
+
this._lineOffsets = void 0;
|
| 1224 |
+
}
|
| 1225 |
+
getLineOffsets() {
|
| 1226 |
+
if (this._lineOffsets === void 0) {
|
| 1227 |
+
let lineOffsets = [];
|
| 1228 |
+
let text = this._content;
|
| 1229 |
+
let isLineStart = true;
|
| 1230 |
+
for (let i = 0; i < text.length; i++) {
|
| 1231 |
+
if (isLineStart) {
|
| 1232 |
+
lineOffsets.push(i);
|
| 1233 |
+
isLineStart = false;
|
| 1234 |
+
}
|
| 1235 |
+
let ch = text.charAt(i);
|
| 1236 |
+
isLineStart = ch === "\r" || ch === "\n";
|
| 1237 |
+
if (ch === "\r" && i + 1 < text.length && text.charAt(i + 1) === "\n") {
|
| 1238 |
+
i++;
|
| 1239 |
+
}
|
| 1240 |
+
}
|
| 1241 |
+
if (isLineStart && text.length > 0) {
|
| 1242 |
+
lineOffsets.push(text.length);
|
| 1243 |
+
}
|
| 1244 |
+
this._lineOffsets = lineOffsets;
|
| 1245 |
+
}
|
| 1246 |
+
return this._lineOffsets;
|
| 1247 |
+
}
|
| 1248 |
+
positionAt(offset) {
|
| 1249 |
+
offset = Math.max(Math.min(offset, this._content.length), 0);
|
| 1250 |
+
let lineOffsets = this.getLineOffsets();
|
| 1251 |
+
let low = 0, high = lineOffsets.length;
|
| 1252 |
+
if (high === 0) {
|
| 1253 |
+
return Position.create(0, offset);
|
| 1254 |
+
}
|
| 1255 |
+
while (low < high) {
|
| 1256 |
+
let mid = Math.floor((low + high) / 2);
|
| 1257 |
+
if (lineOffsets[mid] > offset) {
|
| 1258 |
+
high = mid;
|
| 1259 |
+
} else {
|
| 1260 |
+
low = mid + 1;
|
| 1261 |
+
}
|
| 1262 |
+
}
|
| 1263 |
+
let line = low - 1;
|
| 1264 |
+
return Position.create(line, offset - lineOffsets[line]);
|
| 1265 |
+
}
|
| 1266 |
+
offsetAt(position) {
|
| 1267 |
+
let lineOffsets = this.getLineOffsets();
|
| 1268 |
+
if (position.line >= lineOffsets.length) {
|
| 1269 |
+
return this._content.length;
|
| 1270 |
+
} else if (position.line < 0) {
|
| 1271 |
+
return 0;
|
| 1272 |
+
}
|
| 1273 |
+
let lineOffset = lineOffsets[position.line];
|
| 1274 |
+
let nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length;
|
| 1275 |
+
return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
|
| 1276 |
+
}
|
| 1277 |
+
get lineCount() {
|
| 1278 |
+
return this.getLineOffsets().length;
|
| 1279 |
+
}
|
| 1280 |
+
};
|
| 1281 |
+
var Is;
|
| 1282 |
+
(function(Is2) {
|
| 1283 |
+
const toString = Object.prototype.toString;
|
| 1284 |
+
function defined(value) {
|
| 1285 |
+
return typeof value !== "undefined";
|
| 1286 |
+
}
|
| 1287 |
+
Is2.defined = defined;
|
| 1288 |
+
function undefined2(value) {
|
| 1289 |
+
return typeof value === "undefined";
|
| 1290 |
+
}
|
| 1291 |
+
Is2.undefined = undefined2;
|
| 1292 |
+
function boolean(value) {
|
| 1293 |
+
return value === true || value === false;
|
| 1294 |
+
}
|
| 1295 |
+
Is2.boolean = boolean;
|
| 1296 |
+
function string(value) {
|
| 1297 |
+
return toString.call(value) === "[object String]";
|
| 1298 |
+
}
|
| 1299 |
+
Is2.string = string;
|
| 1300 |
+
function number(value) {
|
| 1301 |
+
return toString.call(value) === "[object Number]";
|
| 1302 |
+
}
|
| 1303 |
+
Is2.number = number;
|
| 1304 |
+
function numberRange(value, min, max) {
|
| 1305 |
+
return toString.call(value) === "[object Number]" && min <= value && value <= max;
|
| 1306 |
+
}
|
| 1307 |
+
Is2.numberRange = numberRange;
|
| 1308 |
+
function integer2(value) {
|
| 1309 |
+
return toString.call(value) === "[object Number]" && -2147483648 <= value && value <= 2147483647;
|
| 1310 |
+
}
|
| 1311 |
+
Is2.integer = integer2;
|
| 1312 |
+
function uinteger2(value) {
|
| 1313 |
+
return toString.call(value) === "[object Number]" && 0 <= value && value <= 2147483647;
|
| 1314 |
+
}
|
| 1315 |
+
Is2.uinteger = uinteger2;
|
| 1316 |
+
function func(value) {
|
| 1317 |
+
return toString.call(value) === "[object Function]";
|
| 1318 |
+
}
|
| 1319 |
+
Is2.func = func;
|
| 1320 |
+
function objectLiteral(value) {
|
| 1321 |
+
return value !== null && typeof value === "object";
|
| 1322 |
+
}
|
| 1323 |
+
Is2.objectLiteral = objectLiteral;
|
| 1324 |
+
function typedArray(value, check) {
|
| 1325 |
+
return Array.isArray(value) && value.every(check);
|
| 1326 |
+
}
|
| 1327 |
+
Is2.typedArray = typedArray;
|
| 1328 |
+
})(Is || (Is = {}));
|
| 1329 |
+
|
| 1330 |
+
// src/language/common/lspLanguageFeatures.ts
|
| 1331 |
+
var DiagnosticsAdapter = class {
|
| 1332 |
+
constructor(_languageId, _worker, configChangeEvent) {
|
| 1333 |
+
this._languageId = _languageId;
|
| 1334 |
+
this._worker = _worker;
|
| 1335 |
+
this._disposables = [];
|
| 1336 |
+
this._listener = /* @__PURE__ */ Object.create(null);
|
| 1337 |
+
const onModelAdd = (model) => {
|
| 1338 |
+
let modeId = model.getLanguageId();
|
| 1339 |
+
if (modeId !== this._languageId) {
|
| 1340 |
+
return;
|
| 1341 |
+
}
|
| 1342 |
+
let handle;
|
| 1343 |
+
this._listener[model.uri.toString()] = model.onDidChangeContent(() => {
|
| 1344 |
+
window.clearTimeout(handle);
|
| 1345 |
+
handle = window.setTimeout(() => this._doValidate(model.uri, modeId), 500);
|
| 1346 |
+
});
|
| 1347 |
+
this._doValidate(model.uri, modeId);
|
| 1348 |
+
};
|
| 1349 |
+
const onModelRemoved = (model) => {
|
| 1350 |
+
monaco_editor_core_exports.editor.setModelMarkers(model, this._languageId, []);
|
| 1351 |
+
let uriStr = model.uri.toString();
|
| 1352 |
+
let listener = this._listener[uriStr];
|
| 1353 |
+
if (listener) {
|
| 1354 |
+
listener.dispose();
|
| 1355 |
+
delete this._listener[uriStr];
|
| 1356 |
+
}
|
| 1357 |
+
};
|
| 1358 |
+
this._disposables.push(monaco_editor_core_exports.editor.onDidCreateModel(onModelAdd));
|
| 1359 |
+
this._disposables.push(monaco_editor_core_exports.editor.onWillDisposeModel(onModelRemoved));
|
| 1360 |
+
this._disposables.push(
|
| 1361 |
+
monaco_editor_core_exports.editor.onDidChangeModelLanguage((event) => {
|
| 1362 |
+
onModelRemoved(event.model);
|
| 1363 |
+
onModelAdd(event.model);
|
| 1364 |
+
})
|
| 1365 |
+
);
|
| 1366 |
+
this._disposables.push(
|
| 1367 |
+
configChangeEvent((_) => {
|
| 1368 |
+
monaco_editor_core_exports.editor.getModels().forEach((model) => {
|
| 1369 |
+
if (model.getLanguageId() === this._languageId) {
|
| 1370 |
+
onModelRemoved(model);
|
| 1371 |
+
onModelAdd(model);
|
| 1372 |
+
}
|
| 1373 |
+
});
|
| 1374 |
+
})
|
| 1375 |
+
);
|
| 1376 |
+
this._disposables.push({
|
| 1377 |
+
dispose: () => {
|
| 1378 |
+
monaco_editor_core_exports.editor.getModels().forEach(onModelRemoved);
|
| 1379 |
+
for (let key in this._listener) {
|
| 1380 |
+
this._listener[key].dispose();
|
| 1381 |
+
}
|
| 1382 |
+
}
|
| 1383 |
+
});
|
| 1384 |
+
monaco_editor_core_exports.editor.getModels().forEach(onModelAdd);
|
| 1385 |
+
}
|
| 1386 |
+
dispose() {
|
| 1387 |
+
this._disposables.forEach((d) => d && d.dispose());
|
| 1388 |
+
this._disposables.length = 0;
|
| 1389 |
+
}
|
| 1390 |
+
_doValidate(resource, languageId) {
|
| 1391 |
+
this._worker(resource).then((worker) => {
|
| 1392 |
+
return worker.doValidation(resource.toString());
|
| 1393 |
+
}).then((diagnostics) => {
|
| 1394 |
+
const markers = diagnostics.map((d) => toDiagnostics(resource, d));
|
| 1395 |
+
let model = monaco_editor_core_exports.editor.getModel(resource);
|
| 1396 |
+
if (model && model.getLanguageId() === languageId) {
|
| 1397 |
+
monaco_editor_core_exports.editor.setModelMarkers(model, languageId, markers);
|
| 1398 |
+
}
|
| 1399 |
+
}).then(void 0, (err) => {
|
| 1400 |
+
console.error(err);
|
| 1401 |
+
});
|
| 1402 |
+
}
|
| 1403 |
+
};
|
| 1404 |
+
function toSeverity(lsSeverity) {
|
| 1405 |
+
switch (lsSeverity) {
|
| 1406 |
+
case DiagnosticSeverity.Error:
|
| 1407 |
+
return monaco_editor_core_exports.MarkerSeverity.Error;
|
| 1408 |
+
case DiagnosticSeverity.Warning:
|
| 1409 |
+
return monaco_editor_core_exports.MarkerSeverity.Warning;
|
| 1410 |
+
case DiagnosticSeverity.Information:
|
| 1411 |
+
return monaco_editor_core_exports.MarkerSeverity.Info;
|
| 1412 |
+
case DiagnosticSeverity.Hint:
|
| 1413 |
+
return monaco_editor_core_exports.MarkerSeverity.Hint;
|
| 1414 |
+
default:
|
| 1415 |
+
return monaco_editor_core_exports.MarkerSeverity.Info;
|
| 1416 |
+
}
|
| 1417 |
+
}
|
| 1418 |
+
function toDiagnostics(resource, diag) {
|
| 1419 |
+
let code = typeof diag.code === "number" ? String(diag.code) : diag.code;
|
| 1420 |
+
return {
|
| 1421 |
+
severity: toSeverity(diag.severity),
|
| 1422 |
+
startLineNumber: diag.range.start.line + 1,
|
| 1423 |
+
startColumn: diag.range.start.character + 1,
|
| 1424 |
+
endLineNumber: diag.range.end.line + 1,
|
| 1425 |
+
endColumn: diag.range.end.character + 1,
|
| 1426 |
+
message: diag.message,
|
| 1427 |
+
code,
|
| 1428 |
+
source: diag.source
|
| 1429 |
+
};
|
| 1430 |
+
}
|
| 1431 |
+
var CompletionAdapter = class {
|
| 1432 |
+
constructor(_worker, _triggerCharacters) {
|
| 1433 |
+
this._worker = _worker;
|
| 1434 |
+
this._triggerCharacters = _triggerCharacters;
|
| 1435 |
+
}
|
| 1436 |
+
get triggerCharacters() {
|
| 1437 |
+
return this._triggerCharacters;
|
| 1438 |
+
}
|
| 1439 |
+
provideCompletionItems(model, position, context, token) {
|
| 1440 |
+
const resource = model.uri;
|
| 1441 |
+
return this._worker(resource).then((worker) => {
|
| 1442 |
+
return worker.doComplete(resource.toString(), fromPosition(position));
|
| 1443 |
+
}).then((info) => {
|
| 1444 |
+
if (!info) {
|
| 1445 |
+
return;
|
| 1446 |
+
}
|
| 1447 |
+
const wordInfo = model.getWordUntilPosition(position);
|
| 1448 |
+
const wordRange = new monaco_editor_core_exports.Range(
|
| 1449 |
+
position.lineNumber,
|
| 1450 |
+
wordInfo.startColumn,
|
| 1451 |
+
position.lineNumber,
|
| 1452 |
+
wordInfo.endColumn
|
| 1453 |
+
);
|
| 1454 |
+
const items = info.items.map((entry) => {
|
| 1455 |
+
const item = {
|
| 1456 |
+
label: entry.label,
|
| 1457 |
+
insertText: entry.insertText || entry.label,
|
| 1458 |
+
sortText: entry.sortText,
|
| 1459 |
+
filterText: entry.filterText,
|
| 1460 |
+
documentation: entry.documentation,
|
| 1461 |
+
detail: entry.detail,
|
| 1462 |
+
command: toCommand(entry.command),
|
| 1463 |
+
range: wordRange,
|
| 1464 |
+
kind: toCompletionItemKind(entry.kind)
|
| 1465 |
+
};
|
| 1466 |
+
if (entry.textEdit) {
|
| 1467 |
+
if (isInsertReplaceEdit(entry.textEdit)) {
|
| 1468 |
+
item.range = {
|
| 1469 |
+
insert: toRange(entry.textEdit.insert),
|
| 1470 |
+
replace: toRange(entry.textEdit.replace)
|
| 1471 |
+
};
|
| 1472 |
+
} else {
|
| 1473 |
+
item.range = toRange(entry.textEdit.range);
|
| 1474 |
+
}
|
| 1475 |
+
item.insertText = entry.textEdit.newText;
|
| 1476 |
+
}
|
| 1477 |
+
if (entry.additionalTextEdits) {
|
| 1478 |
+
item.additionalTextEdits = entry.additionalTextEdits.map(toTextEdit);
|
| 1479 |
+
}
|
| 1480 |
+
if (entry.insertTextFormat === InsertTextFormat.Snippet) {
|
| 1481 |
+
item.insertTextRules = monaco_editor_core_exports.languages.CompletionItemInsertTextRule.InsertAsSnippet;
|
| 1482 |
+
}
|
| 1483 |
+
return item;
|
| 1484 |
+
});
|
| 1485 |
+
return {
|
| 1486 |
+
isIncomplete: info.isIncomplete,
|
| 1487 |
+
suggestions: items
|
| 1488 |
+
};
|
| 1489 |
+
});
|
| 1490 |
+
}
|
| 1491 |
+
};
|
| 1492 |
+
function fromPosition(position) {
|
| 1493 |
+
if (!position) {
|
| 1494 |
+
return void 0;
|
| 1495 |
+
}
|
| 1496 |
+
return { character: position.column - 1, line: position.lineNumber - 1 };
|
| 1497 |
+
}
|
| 1498 |
+
function fromRange(range) {
|
| 1499 |
+
if (!range) {
|
| 1500 |
+
return void 0;
|
| 1501 |
+
}
|
| 1502 |
+
return {
|
| 1503 |
+
start: {
|
| 1504 |
+
line: range.startLineNumber - 1,
|
| 1505 |
+
character: range.startColumn - 1
|
| 1506 |
+
},
|
| 1507 |
+
end: { line: range.endLineNumber - 1, character: range.endColumn - 1 }
|
| 1508 |
+
};
|
| 1509 |
+
}
|
| 1510 |
+
function toRange(range) {
|
| 1511 |
+
if (!range) {
|
| 1512 |
+
return void 0;
|
| 1513 |
+
}
|
| 1514 |
+
return new monaco_editor_core_exports.Range(
|
| 1515 |
+
range.start.line + 1,
|
| 1516 |
+
range.start.character + 1,
|
| 1517 |
+
range.end.line + 1,
|
| 1518 |
+
range.end.character + 1
|
| 1519 |
+
);
|
| 1520 |
+
}
|
| 1521 |
+
function isInsertReplaceEdit(edit) {
|
| 1522 |
+
return typeof edit.insert !== "undefined" && typeof edit.replace !== "undefined";
|
| 1523 |
+
}
|
| 1524 |
+
function toCompletionItemKind(kind) {
|
| 1525 |
+
const mItemKind = monaco_editor_core_exports.languages.CompletionItemKind;
|
| 1526 |
+
switch (kind) {
|
| 1527 |
+
case CompletionItemKind.Text:
|
| 1528 |
+
return mItemKind.Text;
|
| 1529 |
+
case CompletionItemKind.Method:
|
| 1530 |
+
return mItemKind.Method;
|
| 1531 |
+
case CompletionItemKind.Function:
|
| 1532 |
+
return mItemKind.Function;
|
| 1533 |
+
case CompletionItemKind.Constructor:
|
| 1534 |
+
return mItemKind.Constructor;
|
| 1535 |
+
case CompletionItemKind.Field:
|
| 1536 |
+
return mItemKind.Field;
|
| 1537 |
+
case CompletionItemKind.Variable:
|
| 1538 |
+
return mItemKind.Variable;
|
| 1539 |
+
case CompletionItemKind.Class:
|
| 1540 |
+
return mItemKind.Class;
|
| 1541 |
+
case CompletionItemKind.Interface:
|
| 1542 |
+
return mItemKind.Interface;
|
| 1543 |
+
case CompletionItemKind.Module:
|
| 1544 |
+
return mItemKind.Module;
|
| 1545 |
+
case CompletionItemKind.Property:
|
| 1546 |
+
return mItemKind.Property;
|
| 1547 |
+
case CompletionItemKind.Unit:
|
| 1548 |
+
return mItemKind.Unit;
|
| 1549 |
+
case CompletionItemKind.Value:
|
| 1550 |
+
return mItemKind.Value;
|
| 1551 |
+
case CompletionItemKind.Enum:
|
| 1552 |
+
return mItemKind.Enum;
|
| 1553 |
+
case CompletionItemKind.Keyword:
|
| 1554 |
+
return mItemKind.Keyword;
|
| 1555 |
+
case CompletionItemKind.Snippet:
|
| 1556 |
+
return mItemKind.Snippet;
|
| 1557 |
+
case CompletionItemKind.Color:
|
| 1558 |
+
return mItemKind.Color;
|
| 1559 |
+
case CompletionItemKind.File:
|
| 1560 |
+
return mItemKind.File;
|
| 1561 |
+
case CompletionItemKind.Reference:
|
| 1562 |
+
return mItemKind.Reference;
|
| 1563 |
+
}
|
| 1564 |
+
return mItemKind.Property;
|
| 1565 |
+
}
|
| 1566 |
+
function toTextEdit(textEdit) {
|
| 1567 |
+
if (!textEdit) {
|
| 1568 |
+
return void 0;
|
| 1569 |
+
}
|
| 1570 |
+
return {
|
| 1571 |
+
range: toRange(textEdit.range),
|
| 1572 |
+
text: textEdit.newText
|
| 1573 |
+
};
|
| 1574 |
+
}
|
| 1575 |
+
function toCommand(c) {
|
| 1576 |
+
return c && c.command === "editor.action.triggerSuggest" ? { id: c.command, title: c.title, arguments: c.arguments } : void 0;
|
| 1577 |
+
}
|
| 1578 |
+
var HoverAdapter = class {
|
| 1579 |
+
constructor(_worker) {
|
| 1580 |
+
this._worker = _worker;
|
| 1581 |
+
}
|
| 1582 |
+
provideHover(model, position, token) {
|
| 1583 |
+
let resource = model.uri;
|
| 1584 |
+
return this._worker(resource).then((worker) => {
|
| 1585 |
+
return worker.doHover(resource.toString(), fromPosition(position));
|
| 1586 |
+
}).then((info) => {
|
| 1587 |
+
if (!info) {
|
| 1588 |
+
return;
|
| 1589 |
+
}
|
| 1590 |
+
return {
|
| 1591 |
+
range: toRange(info.range),
|
| 1592 |
+
contents: toMarkedStringArray(info.contents)
|
| 1593 |
+
};
|
| 1594 |
+
});
|
| 1595 |
+
}
|
| 1596 |
+
};
|
| 1597 |
+
function isMarkupContent(thing) {
|
| 1598 |
+
return thing && typeof thing === "object" && typeof thing.kind === "string";
|
| 1599 |
+
}
|
| 1600 |
+
function toMarkdownString(entry) {
|
| 1601 |
+
if (typeof entry === "string") {
|
| 1602 |
+
return {
|
| 1603 |
+
value: entry
|
| 1604 |
+
};
|
| 1605 |
+
}
|
| 1606 |
+
if (isMarkupContent(entry)) {
|
| 1607 |
+
if (entry.kind === "plaintext") {
|
| 1608 |
+
return {
|
| 1609 |
+
value: entry.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
|
| 1610 |
+
};
|
| 1611 |
+
}
|
| 1612 |
+
return {
|
| 1613 |
+
value: entry.value
|
| 1614 |
+
};
|
| 1615 |
+
}
|
| 1616 |
+
return { value: "```" + entry.language + "\n" + entry.value + "\n```\n" };
|
| 1617 |
+
}
|
| 1618 |
+
function toMarkedStringArray(contents) {
|
| 1619 |
+
if (!contents) {
|
| 1620 |
+
return void 0;
|
| 1621 |
+
}
|
| 1622 |
+
if (Array.isArray(contents)) {
|
| 1623 |
+
return contents.map(toMarkdownString);
|
| 1624 |
+
}
|
| 1625 |
+
return [toMarkdownString(contents)];
|
| 1626 |
+
}
|
| 1627 |
+
var DocumentHighlightAdapter = class {
|
| 1628 |
+
constructor(_worker) {
|
| 1629 |
+
this._worker = _worker;
|
| 1630 |
+
}
|
| 1631 |
+
provideDocumentHighlights(model, position, token) {
|
| 1632 |
+
const resource = model.uri;
|
| 1633 |
+
return this._worker(resource).then((worker) => worker.findDocumentHighlights(resource.toString(), fromPosition(position))).then((entries) => {
|
| 1634 |
+
if (!entries) {
|
| 1635 |
+
return;
|
| 1636 |
+
}
|
| 1637 |
+
return entries.map((entry) => {
|
| 1638 |
+
return {
|
| 1639 |
+
range: toRange(entry.range),
|
| 1640 |
+
kind: toDocumentHighlightKind(entry.kind)
|
| 1641 |
+
};
|
| 1642 |
+
});
|
| 1643 |
+
});
|
| 1644 |
+
}
|
| 1645 |
+
};
|
| 1646 |
+
function toDocumentHighlightKind(kind) {
|
| 1647 |
+
switch (kind) {
|
| 1648 |
+
case DocumentHighlightKind.Read:
|
| 1649 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Read;
|
| 1650 |
+
case DocumentHighlightKind.Write:
|
| 1651 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Write;
|
| 1652 |
+
case DocumentHighlightKind.Text:
|
| 1653 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Text;
|
| 1654 |
+
}
|
| 1655 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Text;
|
| 1656 |
+
}
|
| 1657 |
+
var DefinitionAdapter = class {
|
| 1658 |
+
constructor(_worker) {
|
| 1659 |
+
this._worker = _worker;
|
| 1660 |
+
}
|
| 1661 |
+
provideDefinition(model, position, token) {
|
| 1662 |
+
const resource = model.uri;
|
| 1663 |
+
return this._worker(resource).then((worker) => {
|
| 1664 |
+
return worker.findDefinition(resource.toString(), fromPosition(position));
|
| 1665 |
+
}).then((definition) => {
|
| 1666 |
+
if (!definition) {
|
| 1667 |
+
return;
|
| 1668 |
+
}
|
| 1669 |
+
return [toLocation(definition)];
|
| 1670 |
+
});
|
| 1671 |
+
}
|
| 1672 |
+
};
|
| 1673 |
+
function toLocation(location) {
|
| 1674 |
+
return {
|
| 1675 |
+
uri: monaco_editor_core_exports.Uri.parse(location.uri),
|
| 1676 |
+
range: toRange(location.range)
|
| 1677 |
+
};
|
| 1678 |
+
}
|
| 1679 |
+
var ReferenceAdapter = class {
|
| 1680 |
+
constructor(_worker) {
|
| 1681 |
+
this._worker = _worker;
|
| 1682 |
+
}
|
| 1683 |
+
provideReferences(model, position, context, token) {
|
| 1684 |
+
const resource = model.uri;
|
| 1685 |
+
return this._worker(resource).then((worker) => {
|
| 1686 |
+
return worker.findReferences(resource.toString(), fromPosition(position));
|
| 1687 |
+
}).then((entries) => {
|
| 1688 |
+
if (!entries) {
|
| 1689 |
+
return;
|
| 1690 |
+
}
|
| 1691 |
+
return entries.map(toLocation);
|
| 1692 |
+
});
|
| 1693 |
+
}
|
| 1694 |
+
};
|
| 1695 |
+
var RenameAdapter = class {
|
| 1696 |
+
constructor(_worker) {
|
| 1697 |
+
this._worker = _worker;
|
| 1698 |
+
}
|
| 1699 |
+
provideRenameEdits(model, position, newName, token) {
|
| 1700 |
+
const resource = model.uri;
|
| 1701 |
+
return this._worker(resource).then((worker) => {
|
| 1702 |
+
return worker.doRename(resource.toString(), fromPosition(position), newName);
|
| 1703 |
+
}).then((edit) => {
|
| 1704 |
+
return toWorkspaceEdit(edit);
|
| 1705 |
+
});
|
| 1706 |
+
}
|
| 1707 |
+
};
|
| 1708 |
+
function toWorkspaceEdit(edit) {
|
| 1709 |
+
if (!edit || !edit.changes) {
|
| 1710 |
+
return void 0;
|
| 1711 |
+
}
|
| 1712 |
+
let resourceEdits = [];
|
| 1713 |
+
for (let uri in edit.changes) {
|
| 1714 |
+
const _uri = monaco_editor_core_exports.Uri.parse(uri);
|
| 1715 |
+
for (let e of edit.changes[uri]) {
|
| 1716 |
+
resourceEdits.push({
|
| 1717 |
+
resource: _uri,
|
| 1718 |
+
versionId: void 0,
|
| 1719 |
+
textEdit: {
|
| 1720 |
+
range: toRange(e.range),
|
| 1721 |
+
text: e.newText
|
| 1722 |
+
}
|
| 1723 |
+
});
|
| 1724 |
+
}
|
| 1725 |
+
}
|
| 1726 |
+
return {
|
| 1727 |
+
edits: resourceEdits
|
| 1728 |
+
};
|
| 1729 |
+
}
|
| 1730 |
+
var DocumentSymbolAdapter = class {
|
| 1731 |
+
constructor(_worker) {
|
| 1732 |
+
this._worker = _worker;
|
| 1733 |
+
}
|
| 1734 |
+
provideDocumentSymbols(model, token) {
|
| 1735 |
+
const resource = model.uri;
|
| 1736 |
+
return this._worker(resource).then((worker) => worker.findDocumentSymbols(resource.toString())).then((items) => {
|
| 1737 |
+
if (!items) {
|
| 1738 |
+
return;
|
| 1739 |
+
}
|
| 1740 |
+
return items.map((item) => {
|
| 1741 |
+
if (isDocumentSymbol(item)) {
|
| 1742 |
+
return toDocumentSymbol(item);
|
| 1743 |
+
}
|
| 1744 |
+
return {
|
| 1745 |
+
name: item.name,
|
| 1746 |
+
detail: "",
|
| 1747 |
+
containerName: item.containerName,
|
| 1748 |
+
kind: toSymbolKind(item.kind),
|
| 1749 |
+
range: toRange(item.location.range),
|
| 1750 |
+
selectionRange: toRange(item.location.range),
|
| 1751 |
+
tags: []
|
| 1752 |
+
};
|
| 1753 |
+
});
|
| 1754 |
+
});
|
| 1755 |
+
}
|
| 1756 |
+
};
|
| 1757 |
+
function isDocumentSymbol(symbol) {
|
| 1758 |
+
return "children" in symbol;
|
| 1759 |
+
}
|
| 1760 |
+
function toDocumentSymbol(symbol) {
|
| 1761 |
+
return {
|
| 1762 |
+
name: symbol.name,
|
| 1763 |
+
detail: symbol.detail ?? "",
|
| 1764 |
+
kind: toSymbolKind(symbol.kind),
|
| 1765 |
+
range: toRange(symbol.range),
|
| 1766 |
+
selectionRange: toRange(symbol.selectionRange),
|
| 1767 |
+
tags: symbol.tags ?? [],
|
| 1768 |
+
children: (symbol.children ?? []).map((item) => toDocumentSymbol(item))
|
| 1769 |
+
};
|
| 1770 |
+
}
|
| 1771 |
+
function toSymbolKind(kind) {
|
| 1772 |
+
let mKind = monaco_editor_core_exports.languages.SymbolKind;
|
| 1773 |
+
switch (kind) {
|
| 1774 |
+
case SymbolKind.File:
|
| 1775 |
+
return mKind.File;
|
| 1776 |
+
case SymbolKind.Module:
|
| 1777 |
+
return mKind.Module;
|
| 1778 |
+
case SymbolKind.Namespace:
|
| 1779 |
+
return mKind.Namespace;
|
| 1780 |
+
case SymbolKind.Package:
|
| 1781 |
+
return mKind.Package;
|
| 1782 |
+
case SymbolKind.Class:
|
| 1783 |
+
return mKind.Class;
|
| 1784 |
+
case SymbolKind.Method:
|
| 1785 |
+
return mKind.Method;
|
| 1786 |
+
case SymbolKind.Property:
|
| 1787 |
+
return mKind.Property;
|
| 1788 |
+
case SymbolKind.Field:
|
| 1789 |
+
return mKind.Field;
|
| 1790 |
+
case SymbolKind.Constructor:
|
| 1791 |
+
return mKind.Constructor;
|
| 1792 |
+
case SymbolKind.Enum:
|
| 1793 |
+
return mKind.Enum;
|
| 1794 |
+
case SymbolKind.Interface:
|
| 1795 |
+
return mKind.Interface;
|
| 1796 |
+
case SymbolKind.Function:
|
| 1797 |
+
return mKind.Function;
|
| 1798 |
+
case SymbolKind.Variable:
|
| 1799 |
+
return mKind.Variable;
|
| 1800 |
+
case SymbolKind.Constant:
|
| 1801 |
+
return mKind.Constant;
|
| 1802 |
+
case SymbolKind.String:
|
| 1803 |
+
return mKind.String;
|
| 1804 |
+
case SymbolKind.Number:
|
| 1805 |
+
return mKind.Number;
|
| 1806 |
+
case SymbolKind.Boolean:
|
| 1807 |
+
return mKind.Boolean;
|
| 1808 |
+
case SymbolKind.Array:
|
| 1809 |
+
return mKind.Array;
|
| 1810 |
+
}
|
| 1811 |
+
return mKind.Function;
|
| 1812 |
+
}
|
| 1813 |
+
var DocumentLinkAdapter = class {
|
| 1814 |
+
constructor(_worker) {
|
| 1815 |
+
this._worker = _worker;
|
| 1816 |
+
}
|
| 1817 |
+
provideLinks(model, token) {
|
| 1818 |
+
const resource = model.uri;
|
| 1819 |
+
return this._worker(resource).then((worker) => worker.findDocumentLinks(resource.toString())).then((items) => {
|
| 1820 |
+
if (!items) {
|
| 1821 |
+
return;
|
| 1822 |
+
}
|
| 1823 |
+
return {
|
| 1824 |
+
links: items.map((item) => ({
|
| 1825 |
+
range: toRange(item.range),
|
| 1826 |
+
url: item.target
|
| 1827 |
+
}))
|
| 1828 |
+
};
|
| 1829 |
+
});
|
| 1830 |
+
}
|
| 1831 |
+
};
|
| 1832 |
+
var DocumentFormattingEditProvider = class {
|
| 1833 |
+
constructor(_worker) {
|
| 1834 |
+
this._worker = _worker;
|
| 1835 |
+
}
|
| 1836 |
+
provideDocumentFormattingEdits(model, options, token) {
|
| 1837 |
+
const resource = model.uri;
|
| 1838 |
+
return this._worker(resource).then((worker) => {
|
| 1839 |
+
return worker.format(resource.toString(), null, fromFormattingOptions(options)).then((edits) => {
|
| 1840 |
+
if (!edits || edits.length === 0) {
|
| 1841 |
+
return;
|
| 1842 |
+
}
|
| 1843 |
+
return edits.map(toTextEdit);
|
| 1844 |
+
});
|
| 1845 |
+
});
|
| 1846 |
+
}
|
| 1847 |
+
};
|
| 1848 |
+
var DocumentRangeFormattingEditProvider = class {
|
| 1849 |
+
constructor(_worker) {
|
| 1850 |
+
this._worker = _worker;
|
| 1851 |
+
this.canFormatMultipleRanges = false;
|
| 1852 |
+
}
|
| 1853 |
+
provideDocumentRangeFormattingEdits(model, range, options, token) {
|
| 1854 |
+
const resource = model.uri;
|
| 1855 |
+
return this._worker(resource).then((worker) => {
|
| 1856 |
+
return worker.format(resource.toString(), fromRange(range), fromFormattingOptions(options)).then((edits) => {
|
| 1857 |
+
if (!edits || edits.length === 0) {
|
| 1858 |
+
return;
|
| 1859 |
+
}
|
| 1860 |
+
return edits.map(toTextEdit);
|
| 1861 |
+
});
|
| 1862 |
+
});
|
| 1863 |
+
}
|
| 1864 |
+
};
|
| 1865 |
+
function fromFormattingOptions(options) {
|
| 1866 |
+
return {
|
| 1867 |
+
tabSize: options.tabSize,
|
| 1868 |
+
insertSpaces: options.insertSpaces
|
| 1869 |
+
};
|
| 1870 |
+
}
|
| 1871 |
+
var DocumentColorAdapter = class {
|
| 1872 |
+
constructor(_worker) {
|
| 1873 |
+
this._worker = _worker;
|
| 1874 |
+
}
|
| 1875 |
+
provideDocumentColors(model, token) {
|
| 1876 |
+
const resource = model.uri;
|
| 1877 |
+
return this._worker(resource).then((worker) => worker.findDocumentColors(resource.toString())).then((infos) => {
|
| 1878 |
+
if (!infos) {
|
| 1879 |
+
return;
|
| 1880 |
+
}
|
| 1881 |
+
return infos.map((item) => ({
|
| 1882 |
+
color: item.color,
|
| 1883 |
+
range: toRange(item.range)
|
| 1884 |
+
}));
|
| 1885 |
+
});
|
| 1886 |
+
}
|
| 1887 |
+
provideColorPresentations(model, info, token) {
|
| 1888 |
+
const resource = model.uri;
|
| 1889 |
+
return this._worker(resource).then(
|
| 1890 |
+
(worker) => worker.getColorPresentations(resource.toString(), info.color, fromRange(info.range))
|
| 1891 |
+
).then((presentations) => {
|
| 1892 |
+
if (!presentations) {
|
| 1893 |
+
return;
|
| 1894 |
+
}
|
| 1895 |
+
return presentations.map((presentation) => {
|
| 1896 |
+
let item = {
|
| 1897 |
+
label: presentation.label
|
| 1898 |
+
};
|
| 1899 |
+
if (presentation.textEdit) {
|
| 1900 |
+
item.textEdit = toTextEdit(presentation.textEdit);
|
| 1901 |
+
}
|
| 1902 |
+
if (presentation.additionalTextEdits) {
|
| 1903 |
+
item.additionalTextEdits = presentation.additionalTextEdits.map(toTextEdit);
|
| 1904 |
+
}
|
| 1905 |
+
return item;
|
| 1906 |
+
});
|
| 1907 |
+
});
|
| 1908 |
+
}
|
| 1909 |
+
};
|
| 1910 |
+
var FoldingRangeAdapter = class {
|
| 1911 |
+
constructor(_worker) {
|
| 1912 |
+
this._worker = _worker;
|
| 1913 |
+
}
|
| 1914 |
+
provideFoldingRanges(model, context, token) {
|
| 1915 |
+
const resource = model.uri;
|
| 1916 |
+
return this._worker(resource).then((worker) => worker.getFoldingRanges(resource.toString(), context)).then((ranges) => {
|
| 1917 |
+
if (!ranges) {
|
| 1918 |
+
return;
|
| 1919 |
+
}
|
| 1920 |
+
return ranges.map((range) => {
|
| 1921 |
+
const result = {
|
| 1922 |
+
start: range.startLine + 1,
|
| 1923 |
+
end: range.endLine + 1
|
| 1924 |
+
};
|
| 1925 |
+
if (typeof range.kind !== "undefined") {
|
| 1926 |
+
result.kind = toFoldingRangeKind(range.kind);
|
| 1927 |
+
}
|
| 1928 |
+
return result;
|
| 1929 |
+
});
|
| 1930 |
+
});
|
| 1931 |
+
}
|
| 1932 |
+
};
|
| 1933 |
+
function toFoldingRangeKind(kind) {
|
| 1934 |
+
switch (kind) {
|
| 1935 |
+
case FoldingRangeKind.Comment:
|
| 1936 |
+
return monaco_editor_core_exports.languages.FoldingRangeKind.Comment;
|
| 1937 |
+
case FoldingRangeKind.Imports:
|
| 1938 |
+
return monaco_editor_core_exports.languages.FoldingRangeKind.Imports;
|
| 1939 |
+
case FoldingRangeKind.Region:
|
| 1940 |
+
return monaco_editor_core_exports.languages.FoldingRangeKind.Region;
|
| 1941 |
+
}
|
| 1942 |
+
return void 0;
|
| 1943 |
+
}
|
| 1944 |
+
var SelectionRangeAdapter = class {
|
| 1945 |
+
constructor(_worker) {
|
| 1946 |
+
this._worker = _worker;
|
| 1947 |
+
}
|
| 1948 |
+
provideSelectionRanges(model, positions, token) {
|
| 1949 |
+
const resource = model.uri;
|
| 1950 |
+
return this._worker(resource).then(
|
| 1951 |
+
(worker) => worker.getSelectionRanges(
|
| 1952 |
+
resource.toString(),
|
| 1953 |
+
positions.map(fromPosition)
|
| 1954 |
+
)
|
| 1955 |
+
).then((selectionRanges) => {
|
| 1956 |
+
if (!selectionRanges) {
|
| 1957 |
+
return;
|
| 1958 |
+
}
|
| 1959 |
+
return selectionRanges.map((selectionRange) => {
|
| 1960 |
+
const result = [];
|
| 1961 |
+
while (selectionRange) {
|
| 1962 |
+
result.push({ range: toRange(selectionRange.range) });
|
| 1963 |
+
selectionRange = selectionRange.parent;
|
| 1964 |
+
}
|
| 1965 |
+
return result;
|
| 1966 |
+
});
|
| 1967 |
+
});
|
| 1968 |
+
}
|
| 1969 |
+
};
|
| 1970 |
+
|
| 1971 |
+
// src/language/css/cssMode.ts
|
| 1972 |
+
function setupMode(defaults) {
|
| 1973 |
+
const disposables = [];
|
| 1974 |
+
const providers = [];
|
| 1975 |
+
const client = new WorkerManager(defaults);
|
| 1976 |
+
disposables.push(client);
|
| 1977 |
+
const worker = (...uris) => {
|
| 1978 |
+
return client.getLanguageServiceWorker(...uris);
|
| 1979 |
+
};
|
| 1980 |
+
function registerProviders() {
|
| 1981 |
+
const { languageId, modeConfiguration } = defaults;
|
| 1982 |
+
disposeAll(providers);
|
| 1983 |
+
if (modeConfiguration.completionItems) {
|
| 1984 |
+
providers.push(
|
| 1985 |
+
monaco_editor_core_exports.languages.registerCompletionItemProvider(
|
| 1986 |
+
languageId,
|
| 1987 |
+
new CompletionAdapter(worker, ["/", "-", ":"])
|
| 1988 |
+
)
|
| 1989 |
+
);
|
| 1990 |
+
}
|
| 1991 |
+
if (modeConfiguration.hovers) {
|
| 1992 |
+
providers.push(
|
| 1993 |
+
monaco_editor_core_exports.languages.registerHoverProvider(languageId, new HoverAdapter(worker))
|
| 1994 |
+
);
|
| 1995 |
+
}
|
| 1996 |
+
if (modeConfiguration.documentHighlights) {
|
| 1997 |
+
providers.push(
|
| 1998 |
+
monaco_editor_core_exports.languages.registerDocumentHighlightProvider(
|
| 1999 |
+
languageId,
|
| 2000 |
+
new DocumentHighlightAdapter(worker)
|
| 2001 |
+
)
|
| 2002 |
+
);
|
| 2003 |
+
}
|
| 2004 |
+
if (modeConfiguration.definitions) {
|
| 2005 |
+
providers.push(
|
| 2006 |
+
monaco_editor_core_exports.languages.registerDefinitionProvider(
|
| 2007 |
+
languageId,
|
| 2008 |
+
new DefinitionAdapter(worker)
|
| 2009 |
+
)
|
| 2010 |
+
);
|
| 2011 |
+
}
|
| 2012 |
+
if (modeConfiguration.references) {
|
| 2013 |
+
providers.push(
|
| 2014 |
+
monaco_editor_core_exports.languages.registerReferenceProvider(
|
| 2015 |
+
languageId,
|
| 2016 |
+
new ReferenceAdapter(worker)
|
| 2017 |
+
)
|
| 2018 |
+
);
|
| 2019 |
+
}
|
| 2020 |
+
if (modeConfiguration.documentSymbols) {
|
| 2021 |
+
providers.push(
|
| 2022 |
+
monaco_editor_core_exports.languages.registerDocumentSymbolProvider(
|
| 2023 |
+
languageId,
|
| 2024 |
+
new DocumentSymbolAdapter(worker)
|
| 2025 |
+
)
|
| 2026 |
+
);
|
| 2027 |
+
}
|
| 2028 |
+
if (modeConfiguration.rename) {
|
| 2029 |
+
providers.push(
|
| 2030 |
+
monaco_editor_core_exports.languages.registerRenameProvider(languageId, new RenameAdapter(worker))
|
| 2031 |
+
);
|
| 2032 |
+
}
|
| 2033 |
+
if (modeConfiguration.colors) {
|
| 2034 |
+
providers.push(
|
| 2035 |
+
monaco_editor_core_exports.languages.registerColorProvider(
|
| 2036 |
+
languageId,
|
| 2037 |
+
new DocumentColorAdapter(worker)
|
| 2038 |
+
)
|
| 2039 |
+
);
|
| 2040 |
+
}
|
| 2041 |
+
if (modeConfiguration.foldingRanges) {
|
| 2042 |
+
providers.push(
|
| 2043 |
+
monaco_editor_core_exports.languages.registerFoldingRangeProvider(
|
| 2044 |
+
languageId,
|
| 2045 |
+
new FoldingRangeAdapter(worker)
|
| 2046 |
+
)
|
| 2047 |
+
);
|
| 2048 |
+
}
|
| 2049 |
+
if (modeConfiguration.diagnostics) {
|
| 2050 |
+
providers.push(
|
| 2051 |
+
new DiagnosticsAdapter(languageId, worker, defaults.onDidChange)
|
| 2052 |
+
);
|
| 2053 |
+
}
|
| 2054 |
+
if (modeConfiguration.selectionRanges) {
|
| 2055 |
+
providers.push(
|
| 2056 |
+
monaco_editor_core_exports.languages.registerSelectionRangeProvider(
|
| 2057 |
+
languageId,
|
| 2058 |
+
new SelectionRangeAdapter(worker)
|
| 2059 |
+
)
|
| 2060 |
+
);
|
| 2061 |
+
}
|
| 2062 |
+
if (modeConfiguration.documentFormattingEdits) {
|
| 2063 |
+
providers.push(
|
| 2064 |
+
monaco_editor_core_exports.languages.registerDocumentFormattingEditProvider(
|
| 2065 |
+
languageId,
|
| 2066 |
+
new DocumentFormattingEditProvider(worker)
|
| 2067 |
+
)
|
| 2068 |
+
);
|
| 2069 |
+
}
|
| 2070 |
+
if (modeConfiguration.documentRangeFormattingEdits) {
|
| 2071 |
+
providers.push(
|
| 2072 |
+
monaco_editor_core_exports.languages.registerDocumentRangeFormattingEditProvider(
|
| 2073 |
+
languageId,
|
| 2074 |
+
new DocumentRangeFormattingEditProvider(worker)
|
| 2075 |
+
)
|
| 2076 |
+
);
|
| 2077 |
+
}
|
| 2078 |
+
}
|
| 2079 |
+
registerProviders();
|
| 2080 |
+
disposables.push(asDisposable(providers));
|
| 2081 |
+
return asDisposable(disposables);
|
| 2082 |
+
}
|
| 2083 |
+
function asDisposable(disposables) {
|
| 2084 |
+
return { dispose: () => disposeAll(disposables) };
|
| 2085 |
+
}
|
| 2086 |
+
function disposeAll(disposables) {
|
| 2087 |
+
while (disposables.length) {
|
| 2088 |
+
disposables.pop().dispose();
|
| 2089 |
+
}
|
| 2090 |
+
}
|
| 2091 |
+
return __toCommonJS(cssMode_exports);
|
| 2092 |
+
})();
|
| 2093 |
+
return moduleExports;
|
| 2094 |
+
});
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/monaco-editor/dev/vs/language/html/htmlMode.js
ADDED
|
@@ -0,0 +1,2110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*!-----------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
| 4 |
+
* Released under the MIT license
|
| 5 |
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
| 6 |
+
*-----------------------------------------------------------------------------*/
|
| 7 |
+
define("vs/language/html/htmlMode", ["require"],(require)=>{
|
| 8 |
+
"use strict";
|
| 9 |
+
var moduleExports = (() => {
|
| 10 |
+
var __create = Object.create;
|
| 11 |
+
var __defProp = Object.defineProperty;
|
| 12 |
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
| 13 |
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
| 14 |
+
var __getProtoOf = Object.getPrototypeOf;
|
| 15 |
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
| 16 |
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
| 17 |
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
| 18 |
+
}) : x)(function(x) {
|
| 19 |
+
if (typeof require !== "undefined")
|
| 20 |
+
return require.apply(this, arguments);
|
| 21 |
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
| 22 |
+
});
|
| 23 |
+
var __commonJS = (cb, mod) => function __require2() {
|
| 24 |
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
| 25 |
+
};
|
| 26 |
+
var __export = (target, all) => {
|
| 27 |
+
for (var name in all)
|
| 28 |
+
__defProp(target, name, { get: all[name], enumerable: true });
|
| 29 |
+
};
|
| 30 |
+
var __copyProps = (to, from, except, desc) => {
|
| 31 |
+
if (from && typeof from === "object" || typeof from === "function") {
|
| 32 |
+
for (let key of __getOwnPropNames(from))
|
| 33 |
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
| 34 |
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
| 35 |
+
}
|
| 36 |
+
return to;
|
| 37 |
+
};
|
| 38 |
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
| 39 |
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
| 40 |
+
// If the importer is in node compatibility mode or this is not an ESM
|
| 41 |
+
// file that has been converted to a CommonJS file using a Babel-
|
| 42 |
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
| 43 |
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
| 44 |
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
| 45 |
+
mod
|
| 46 |
+
));
|
| 47 |
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
| 48 |
+
|
| 49 |
+
// src/fillers/monaco-editor-core-amd.ts
|
| 50 |
+
var require_monaco_editor_core_amd = __commonJS({
|
| 51 |
+
"src/fillers/monaco-editor-core-amd.ts"(exports, module) {
|
| 52 |
+
var api = __toESM(__require("vs/editor/editor.api"));
|
| 53 |
+
module.exports = api;
|
| 54 |
+
}
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
// src/language/html/htmlMode.ts
|
| 58 |
+
var htmlMode_exports = {};
|
| 59 |
+
__export(htmlMode_exports, {
|
| 60 |
+
CompletionAdapter: () => CompletionAdapter,
|
| 61 |
+
DefinitionAdapter: () => DefinitionAdapter,
|
| 62 |
+
DiagnosticsAdapter: () => DiagnosticsAdapter,
|
| 63 |
+
DocumentColorAdapter: () => DocumentColorAdapter,
|
| 64 |
+
DocumentFormattingEditProvider: () => DocumentFormattingEditProvider,
|
| 65 |
+
DocumentHighlightAdapter: () => DocumentHighlightAdapter,
|
| 66 |
+
DocumentLinkAdapter: () => DocumentLinkAdapter,
|
| 67 |
+
DocumentRangeFormattingEditProvider: () => DocumentRangeFormattingEditProvider,
|
| 68 |
+
DocumentSymbolAdapter: () => DocumentSymbolAdapter,
|
| 69 |
+
FoldingRangeAdapter: () => FoldingRangeAdapter,
|
| 70 |
+
HoverAdapter: () => HoverAdapter,
|
| 71 |
+
ReferenceAdapter: () => ReferenceAdapter,
|
| 72 |
+
RenameAdapter: () => RenameAdapter,
|
| 73 |
+
SelectionRangeAdapter: () => SelectionRangeAdapter,
|
| 74 |
+
WorkerManager: () => WorkerManager,
|
| 75 |
+
fromPosition: () => fromPosition,
|
| 76 |
+
fromRange: () => fromRange,
|
| 77 |
+
setupMode: () => setupMode,
|
| 78 |
+
setupMode1: () => setupMode1,
|
| 79 |
+
toRange: () => toRange,
|
| 80 |
+
toTextEdit: () => toTextEdit
|
| 81 |
+
});
|
| 82 |
+
|
| 83 |
+
// src/fillers/monaco-editor-core.ts
|
| 84 |
+
var monaco_editor_core_exports = {};
|
| 85 |
+
__reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd()));
|
| 86 |
+
|
| 87 |
+
// src/language/html/workerManager.ts
|
| 88 |
+
var STOP_WHEN_IDLE_FOR = 2 * 60 * 1e3;
|
| 89 |
+
var WorkerManager = class {
|
| 90 |
+
constructor(defaults) {
|
| 91 |
+
this._defaults = defaults;
|
| 92 |
+
this._worker = null;
|
| 93 |
+
this._client = null;
|
| 94 |
+
this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3);
|
| 95 |
+
this._lastUsedTime = 0;
|
| 96 |
+
this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
| 97 |
+
}
|
| 98 |
+
_stopWorker() {
|
| 99 |
+
if (this._worker) {
|
| 100 |
+
this._worker.dispose();
|
| 101 |
+
this._worker = null;
|
| 102 |
+
}
|
| 103 |
+
this._client = null;
|
| 104 |
+
}
|
| 105 |
+
dispose() {
|
| 106 |
+
clearInterval(this._idleCheckInterval);
|
| 107 |
+
this._configChangeListener.dispose();
|
| 108 |
+
this._stopWorker();
|
| 109 |
+
}
|
| 110 |
+
_checkIfIdle() {
|
| 111 |
+
if (!this._worker) {
|
| 112 |
+
return;
|
| 113 |
+
}
|
| 114 |
+
let timePassedSinceLastUsed = Date.now() - this._lastUsedTime;
|
| 115 |
+
if (timePassedSinceLastUsed > STOP_WHEN_IDLE_FOR) {
|
| 116 |
+
this._stopWorker();
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
_getClient() {
|
| 120 |
+
this._lastUsedTime = Date.now();
|
| 121 |
+
if (!this._client) {
|
| 122 |
+
this._worker = monaco_editor_core_exports.editor.createWebWorker({
|
| 123 |
+
// module that exports the create() method and returns a `HTMLWorker` instance
|
| 124 |
+
moduleId: "vs/language/html/htmlWorker",
|
| 125 |
+
// passed in to the create() method
|
| 126 |
+
createData: {
|
| 127 |
+
languageSettings: this._defaults.options,
|
| 128 |
+
languageId: this._defaults.languageId
|
| 129 |
+
},
|
| 130 |
+
label: this._defaults.languageId
|
| 131 |
+
});
|
| 132 |
+
this._client = this._worker.getProxy();
|
| 133 |
+
}
|
| 134 |
+
return this._client;
|
| 135 |
+
}
|
| 136 |
+
getLanguageServiceWorker(...resources) {
|
| 137 |
+
let _client;
|
| 138 |
+
return this._getClient().then((client) => {
|
| 139 |
+
_client = client;
|
| 140 |
+
}).then((_) => {
|
| 141 |
+
if (this._worker) {
|
| 142 |
+
return this._worker.withSyncedResources(resources);
|
| 143 |
+
}
|
| 144 |
+
}).then((_) => _client);
|
| 145 |
+
}
|
| 146 |
+
};
|
| 147 |
+
|
| 148 |
+
// node_modules/vscode-languageserver-types/lib/esm/main.js
|
| 149 |
+
var DocumentUri;
|
| 150 |
+
(function(DocumentUri2) {
|
| 151 |
+
function is(value) {
|
| 152 |
+
return typeof value === "string";
|
| 153 |
+
}
|
| 154 |
+
DocumentUri2.is = is;
|
| 155 |
+
})(DocumentUri || (DocumentUri = {}));
|
| 156 |
+
var URI;
|
| 157 |
+
(function(URI2) {
|
| 158 |
+
function is(value) {
|
| 159 |
+
return typeof value === "string";
|
| 160 |
+
}
|
| 161 |
+
URI2.is = is;
|
| 162 |
+
})(URI || (URI = {}));
|
| 163 |
+
var integer;
|
| 164 |
+
(function(integer2) {
|
| 165 |
+
integer2.MIN_VALUE = -2147483648;
|
| 166 |
+
integer2.MAX_VALUE = 2147483647;
|
| 167 |
+
function is(value) {
|
| 168 |
+
return typeof value === "number" && integer2.MIN_VALUE <= value && value <= integer2.MAX_VALUE;
|
| 169 |
+
}
|
| 170 |
+
integer2.is = is;
|
| 171 |
+
})(integer || (integer = {}));
|
| 172 |
+
var uinteger;
|
| 173 |
+
(function(uinteger2) {
|
| 174 |
+
uinteger2.MIN_VALUE = 0;
|
| 175 |
+
uinteger2.MAX_VALUE = 2147483647;
|
| 176 |
+
function is(value) {
|
| 177 |
+
return typeof value === "number" && uinteger2.MIN_VALUE <= value && value <= uinteger2.MAX_VALUE;
|
| 178 |
+
}
|
| 179 |
+
uinteger2.is = is;
|
| 180 |
+
})(uinteger || (uinteger = {}));
|
| 181 |
+
var Position;
|
| 182 |
+
(function(Position3) {
|
| 183 |
+
function create(line, character) {
|
| 184 |
+
if (line === Number.MAX_VALUE) {
|
| 185 |
+
line = uinteger.MAX_VALUE;
|
| 186 |
+
}
|
| 187 |
+
if (character === Number.MAX_VALUE) {
|
| 188 |
+
character = uinteger.MAX_VALUE;
|
| 189 |
+
}
|
| 190 |
+
return { line, character };
|
| 191 |
+
}
|
| 192 |
+
Position3.create = create;
|
| 193 |
+
function is(value) {
|
| 194 |
+
let candidate = value;
|
| 195 |
+
return Is.objectLiteral(candidate) && Is.uinteger(candidate.line) && Is.uinteger(candidate.character);
|
| 196 |
+
}
|
| 197 |
+
Position3.is = is;
|
| 198 |
+
})(Position || (Position = {}));
|
| 199 |
+
var Range;
|
| 200 |
+
(function(Range3) {
|
| 201 |
+
function create(one, two, three, four) {
|
| 202 |
+
if (Is.uinteger(one) && Is.uinteger(two) && Is.uinteger(three) && Is.uinteger(four)) {
|
| 203 |
+
return { start: Position.create(one, two), end: Position.create(three, four) };
|
| 204 |
+
} else if (Position.is(one) && Position.is(two)) {
|
| 205 |
+
return { start: one, end: two };
|
| 206 |
+
} else {
|
| 207 |
+
throw new Error(`Range#create called with invalid arguments[${one}, ${two}, ${three}, ${four}]`);
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
Range3.create = create;
|
| 211 |
+
function is(value) {
|
| 212 |
+
let candidate = value;
|
| 213 |
+
return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
|
| 214 |
+
}
|
| 215 |
+
Range3.is = is;
|
| 216 |
+
})(Range || (Range = {}));
|
| 217 |
+
var Location;
|
| 218 |
+
(function(Location2) {
|
| 219 |
+
function create(uri, range) {
|
| 220 |
+
return { uri, range };
|
| 221 |
+
}
|
| 222 |
+
Location2.create = create;
|
| 223 |
+
function is(value) {
|
| 224 |
+
let candidate = value;
|
| 225 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (Is.string(candidate.uri) || Is.undefined(candidate.uri));
|
| 226 |
+
}
|
| 227 |
+
Location2.is = is;
|
| 228 |
+
})(Location || (Location = {}));
|
| 229 |
+
var LocationLink;
|
| 230 |
+
(function(LocationLink2) {
|
| 231 |
+
function create(targetUri, targetRange, targetSelectionRange, originSelectionRange) {
|
| 232 |
+
return { targetUri, targetRange, targetSelectionRange, originSelectionRange };
|
| 233 |
+
}
|
| 234 |
+
LocationLink2.create = create;
|
| 235 |
+
function is(value) {
|
| 236 |
+
let candidate = value;
|
| 237 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.targetRange) && Is.string(candidate.targetUri) && Range.is(candidate.targetSelectionRange) && (Range.is(candidate.originSelectionRange) || Is.undefined(candidate.originSelectionRange));
|
| 238 |
+
}
|
| 239 |
+
LocationLink2.is = is;
|
| 240 |
+
})(LocationLink || (LocationLink = {}));
|
| 241 |
+
var Color;
|
| 242 |
+
(function(Color2) {
|
| 243 |
+
function create(red, green, blue, alpha) {
|
| 244 |
+
return {
|
| 245 |
+
red,
|
| 246 |
+
green,
|
| 247 |
+
blue,
|
| 248 |
+
alpha
|
| 249 |
+
};
|
| 250 |
+
}
|
| 251 |
+
Color2.create = create;
|
| 252 |
+
function is(value) {
|
| 253 |
+
const candidate = value;
|
| 254 |
+
return Is.objectLiteral(candidate) && Is.numberRange(candidate.red, 0, 1) && Is.numberRange(candidate.green, 0, 1) && Is.numberRange(candidate.blue, 0, 1) && Is.numberRange(candidate.alpha, 0, 1);
|
| 255 |
+
}
|
| 256 |
+
Color2.is = is;
|
| 257 |
+
})(Color || (Color = {}));
|
| 258 |
+
var ColorInformation;
|
| 259 |
+
(function(ColorInformation2) {
|
| 260 |
+
function create(range, color) {
|
| 261 |
+
return {
|
| 262 |
+
range,
|
| 263 |
+
color
|
| 264 |
+
};
|
| 265 |
+
}
|
| 266 |
+
ColorInformation2.create = create;
|
| 267 |
+
function is(value) {
|
| 268 |
+
const candidate = value;
|
| 269 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && Color.is(candidate.color);
|
| 270 |
+
}
|
| 271 |
+
ColorInformation2.is = is;
|
| 272 |
+
})(ColorInformation || (ColorInformation = {}));
|
| 273 |
+
var ColorPresentation;
|
| 274 |
+
(function(ColorPresentation2) {
|
| 275 |
+
function create(label, textEdit, additionalTextEdits) {
|
| 276 |
+
return {
|
| 277 |
+
label,
|
| 278 |
+
textEdit,
|
| 279 |
+
additionalTextEdits
|
| 280 |
+
};
|
| 281 |
+
}
|
| 282 |
+
ColorPresentation2.create = create;
|
| 283 |
+
function is(value) {
|
| 284 |
+
const candidate = value;
|
| 285 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.undefined(candidate.textEdit) || TextEdit.is(candidate)) && (Is.undefined(candidate.additionalTextEdits) || Is.typedArray(candidate.additionalTextEdits, TextEdit.is));
|
| 286 |
+
}
|
| 287 |
+
ColorPresentation2.is = is;
|
| 288 |
+
})(ColorPresentation || (ColorPresentation = {}));
|
| 289 |
+
var FoldingRangeKind;
|
| 290 |
+
(function(FoldingRangeKind2) {
|
| 291 |
+
FoldingRangeKind2.Comment = "comment";
|
| 292 |
+
FoldingRangeKind2.Imports = "imports";
|
| 293 |
+
FoldingRangeKind2.Region = "region";
|
| 294 |
+
})(FoldingRangeKind || (FoldingRangeKind = {}));
|
| 295 |
+
var FoldingRange;
|
| 296 |
+
(function(FoldingRange2) {
|
| 297 |
+
function create(startLine, endLine, startCharacter, endCharacter, kind, collapsedText) {
|
| 298 |
+
const result = {
|
| 299 |
+
startLine,
|
| 300 |
+
endLine
|
| 301 |
+
};
|
| 302 |
+
if (Is.defined(startCharacter)) {
|
| 303 |
+
result.startCharacter = startCharacter;
|
| 304 |
+
}
|
| 305 |
+
if (Is.defined(endCharacter)) {
|
| 306 |
+
result.endCharacter = endCharacter;
|
| 307 |
+
}
|
| 308 |
+
if (Is.defined(kind)) {
|
| 309 |
+
result.kind = kind;
|
| 310 |
+
}
|
| 311 |
+
if (Is.defined(collapsedText)) {
|
| 312 |
+
result.collapsedText = collapsedText;
|
| 313 |
+
}
|
| 314 |
+
return result;
|
| 315 |
+
}
|
| 316 |
+
FoldingRange2.create = create;
|
| 317 |
+
function is(value) {
|
| 318 |
+
const candidate = value;
|
| 319 |
+
return Is.objectLiteral(candidate) && Is.uinteger(candidate.startLine) && Is.uinteger(candidate.startLine) && (Is.undefined(candidate.startCharacter) || Is.uinteger(candidate.startCharacter)) && (Is.undefined(candidate.endCharacter) || Is.uinteger(candidate.endCharacter)) && (Is.undefined(candidate.kind) || Is.string(candidate.kind));
|
| 320 |
+
}
|
| 321 |
+
FoldingRange2.is = is;
|
| 322 |
+
})(FoldingRange || (FoldingRange = {}));
|
| 323 |
+
var DiagnosticRelatedInformation;
|
| 324 |
+
(function(DiagnosticRelatedInformation2) {
|
| 325 |
+
function create(location, message) {
|
| 326 |
+
return {
|
| 327 |
+
location,
|
| 328 |
+
message
|
| 329 |
+
};
|
| 330 |
+
}
|
| 331 |
+
DiagnosticRelatedInformation2.create = create;
|
| 332 |
+
function is(value) {
|
| 333 |
+
let candidate = value;
|
| 334 |
+
return Is.defined(candidate) && Location.is(candidate.location) && Is.string(candidate.message);
|
| 335 |
+
}
|
| 336 |
+
DiagnosticRelatedInformation2.is = is;
|
| 337 |
+
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {}));
|
| 338 |
+
var DiagnosticSeverity;
|
| 339 |
+
(function(DiagnosticSeverity2) {
|
| 340 |
+
DiagnosticSeverity2.Error = 1;
|
| 341 |
+
DiagnosticSeverity2.Warning = 2;
|
| 342 |
+
DiagnosticSeverity2.Information = 3;
|
| 343 |
+
DiagnosticSeverity2.Hint = 4;
|
| 344 |
+
})(DiagnosticSeverity || (DiagnosticSeverity = {}));
|
| 345 |
+
var DiagnosticTag;
|
| 346 |
+
(function(DiagnosticTag2) {
|
| 347 |
+
DiagnosticTag2.Unnecessary = 1;
|
| 348 |
+
DiagnosticTag2.Deprecated = 2;
|
| 349 |
+
})(DiagnosticTag || (DiagnosticTag = {}));
|
| 350 |
+
var CodeDescription;
|
| 351 |
+
(function(CodeDescription2) {
|
| 352 |
+
function is(value) {
|
| 353 |
+
const candidate = value;
|
| 354 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.href);
|
| 355 |
+
}
|
| 356 |
+
CodeDescription2.is = is;
|
| 357 |
+
})(CodeDescription || (CodeDescription = {}));
|
| 358 |
+
var Diagnostic;
|
| 359 |
+
(function(Diagnostic2) {
|
| 360 |
+
function create(range, message, severity, code, source, relatedInformation) {
|
| 361 |
+
let result = { range, message };
|
| 362 |
+
if (Is.defined(severity)) {
|
| 363 |
+
result.severity = severity;
|
| 364 |
+
}
|
| 365 |
+
if (Is.defined(code)) {
|
| 366 |
+
result.code = code;
|
| 367 |
+
}
|
| 368 |
+
if (Is.defined(source)) {
|
| 369 |
+
result.source = source;
|
| 370 |
+
}
|
| 371 |
+
if (Is.defined(relatedInformation)) {
|
| 372 |
+
result.relatedInformation = relatedInformation;
|
| 373 |
+
}
|
| 374 |
+
return result;
|
| 375 |
+
}
|
| 376 |
+
Diagnostic2.create = create;
|
| 377 |
+
function is(value) {
|
| 378 |
+
var _a;
|
| 379 |
+
let candidate = value;
|
| 380 |
+
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
| 381 |
+
}
|
| 382 |
+
Diagnostic2.is = is;
|
| 383 |
+
})(Diagnostic || (Diagnostic = {}));
|
| 384 |
+
var Command;
|
| 385 |
+
(function(Command2) {
|
| 386 |
+
function create(title, command, ...args) {
|
| 387 |
+
let result = { title, command };
|
| 388 |
+
if (Is.defined(args) && args.length > 0) {
|
| 389 |
+
result.arguments = args;
|
| 390 |
+
}
|
| 391 |
+
return result;
|
| 392 |
+
}
|
| 393 |
+
Command2.create = create;
|
| 394 |
+
function is(value) {
|
| 395 |
+
let candidate = value;
|
| 396 |
+
return Is.defined(candidate) && Is.string(candidate.title) && Is.string(candidate.command);
|
| 397 |
+
}
|
| 398 |
+
Command2.is = is;
|
| 399 |
+
})(Command || (Command = {}));
|
| 400 |
+
var TextEdit;
|
| 401 |
+
(function(TextEdit2) {
|
| 402 |
+
function replace(range, newText) {
|
| 403 |
+
return { range, newText };
|
| 404 |
+
}
|
| 405 |
+
TextEdit2.replace = replace;
|
| 406 |
+
function insert(position, newText) {
|
| 407 |
+
return { range: { start: position, end: position }, newText };
|
| 408 |
+
}
|
| 409 |
+
TextEdit2.insert = insert;
|
| 410 |
+
function del(range) {
|
| 411 |
+
return { range, newText: "" };
|
| 412 |
+
}
|
| 413 |
+
TextEdit2.del = del;
|
| 414 |
+
function is(value) {
|
| 415 |
+
const candidate = value;
|
| 416 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.newText) && Range.is(candidate.range);
|
| 417 |
+
}
|
| 418 |
+
TextEdit2.is = is;
|
| 419 |
+
})(TextEdit || (TextEdit = {}));
|
| 420 |
+
var ChangeAnnotation;
|
| 421 |
+
(function(ChangeAnnotation2) {
|
| 422 |
+
function create(label, needsConfirmation, description) {
|
| 423 |
+
const result = { label };
|
| 424 |
+
if (needsConfirmation !== void 0) {
|
| 425 |
+
result.needsConfirmation = needsConfirmation;
|
| 426 |
+
}
|
| 427 |
+
if (description !== void 0) {
|
| 428 |
+
result.description = description;
|
| 429 |
+
}
|
| 430 |
+
return result;
|
| 431 |
+
}
|
| 432 |
+
ChangeAnnotation2.create = create;
|
| 433 |
+
function is(value) {
|
| 434 |
+
const candidate = value;
|
| 435 |
+
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
| 436 |
+
}
|
| 437 |
+
ChangeAnnotation2.is = is;
|
| 438 |
+
})(ChangeAnnotation || (ChangeAnnotation = {}));
|
| 439 |
+
var ChangeAnnotationIdentifier;
|
| 440 |
+
(function(ChangeAnnotationIdentifier2) {
|
| 441 |
+
function is(value) {
|
| 442 |
+
const candidate = value;
|
| 443 |
+
return Is.string(candidate);
|
| 444 |
+
}
|
| 445 |
+
ChangeAnnotationIdentifier2.is = is;
|
| 446 |
+
})(ChangeAnnotationIdentifier || (ChangeAnnotationIdentifier = {}));
|
| 447 |
+
var AnnotatedTextEdit;
|
| 448 |
+
(function(AnnotatedTextEdit2) {
|
| 449 |
+
function replace(range, newText, annotation) {
|
| 450 |
+
return { range, newText, annotationId: annotation };
|
| 451 |
+
}
|
| 452 |
+
AnnotatedTextEdit2.replace = replace;
|
| 453 |
+
function insert(position, newText, annotation) {
|
| 454 |
+
return { range: { start: position, end: position }, newText, annotationId: annotation };
|
| 455 |
+
}
|
| 456 |
+
AnnotatedTextEdit2.insert = insert;
|
| 457 |
+
function del(range, annotation) {
|
| 458 |
+
return { range, newText: "", annotationId: annotation };
|
| 459 |
+
}
|
| 460 |
+
AnnotatedTextEdit2.del = del;
|
| 461 |
+
function is(value) {
|
| 462 |
+
const candidate = value;
|
| 463 |
+
return TextEdit.is(candidate) && (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 464 |
+
}
|
| 465 |
+
AnnotatedTextEdit2.is = is;
|
| 466 |
+
})(AnnotatedTextEdit || (AnnotatedTextEdit = {}));
|
| 467 |
+
var TextDocumentEdit;
|
| 468 |
+
(function(TextDocumentEdit2) {
|
| 469 |
+
function create(textDocument, edits) {
|
| 470 |
+
return { textDocument, edits };
|
| 471 |
+
}
|
| 472 |
+
TextDocumentEdit2.create = create;
|
| 473 |
+
function is(value) {
|
| 474 |
+
let candidate = value;
|
| 475 |
+
return Is.defined(candidate) && OptionalVersionedTextDocumentIdentifier.is(candidate.textDocument) && Array.isArray(candidate.edits);
|
| 476 |
+
}
|
| 477 |
+
TextDocumentEdit2.is = is;
|
| 478 |
+
})(TextDocumentEdit || (TextDocumentEdit = {}));
|
| 479 |
+
var CreateFile;
|
| 480 |
+
(function(CreateFile2) {
|
| 481 |
+
function create(uri, options, annotation) {
|
| 482 |
+
let result = {
|
| 483 |
+
kind: "create",
|
| 484 |
+
uri
|
| 485 |
+
};
|
| 486 |
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
| 487 |
+
result.options = options;
|
| 488 |
+
}
|
| 489 |
+
if (annotation !== void 0) {
|
| 490 |
+
result.annotationId = annotation;
|
| 491 |
+
}
|
| 492 |
+
return result;
|
| 493 |
+
}
|
| 494 |
+
CreateFile2.create = create;
|
| 495 |
+
function is(value) {
|
| 496 |
+
let candidate = value;
|
| 497 |
+
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 498 |
+
}
|
| 499 |
+
CreateFile2.is = is;
|
| 500 |
+
})(CreateFile || (CreateFile = {}));
|
| 501 |
+
var RenameFile;
|
| 502 |
+
(function(RenameFile2) {
|
| 503 |
+
function create(oldUri, newUri, options, annotation) {
|
| 504 |
+
let result = {
|
| 505 |
+
kind: "rename",
|
| 506 |
+
oldUri,
|
| 507 |
+
newUri
|
| 508 |
+
};
|
| 509 |
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
| 510 |
+
result.options = options;
|
| 511 |
+
}
|
| 512 |
+
if (annotation !== void 0) {
|
| 513 |
+
result.annotationId = annotation;
|
| 514 |
+
}
|
| 515 |
+
return result;
|
| 516 |
+
}
|
| 517 |
+
RenameFile2.create = create;
|
| 518 |
+
function is(value) {
|
| 519 |
+
let candidate = value;
|
| 520 |
+
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 521 |
+
}
|
| 522 |
+
RenameFile2.is = is;
|
| 523 |
+
})(RenameFile || (RenameFile = {}));
|
| 524 |
+
var DeleteFile;
|
| 525 |
+
(function(DeleteFile2) {
|
| 526 |
+
function create(uri, options, annotation) {
|
| 527 |
+
let result = {
|
| 528 |
+
kind: "delete",
|
| 529 |
+
uri
|
| 530 |
+
};
|
| 531 |
+
if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) {
|
| 532 |
+
result.options = options;
|
| 533 |
+
}
|
| 534 |
+
if (annotation !== void 0) {
|
| 535 |
+
result.annotationId = annotation;
|
| 536 |
+
}
|
| 537 |
+
return result;
|
| 538 |
+
}
|
| 539 |
+
DeleteFile2.create = create;
|
| 540 |
+
function is(value) {
|
| 541 |
+
let candidate = value;
|
| 542 |
+
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
| 543 |
+
}
|
| 544 |
+
DeleteFile2.is = is;
|
| 545 |
+
})(DeleteFile || (DeleteFile = {}));
|
| 546 |
+
var WorkspaceEdit;
|
| 547 |
+
(function(WorkspaceEdit2) {
|
| 548 |
+
function is(value) {
|
| 549 |
+
let candidate = value;
|
| 550 |
+
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every((change) => {
|
| 551 |
+
if (Is.string(change.kind)) {
|
| 552 |
+
return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
|
| 553 |
+
} else {
|
| 554 |
+
return TextDocumentEdit.is(change);
|
| 555 |
+
}
|
| 556 |
+
}));
|
| 557 |
+
}
|
| 558 |
+
WorkspaceEdit2.is = is;
|
| 559 |
+
})(WorkspaceEdit || (WorkspaceEdit = {}));
|
| 560 |
+
var TextDocumentIdentifier;
|
| 561 |
+
(function(TextDocumentIdentifier2) {
|
| 562 |
+
function create(uri) {
|
| 563 |
+
return { uri };
|
| 564 |
+
}
|
| 565 |
+
TextDocumentIdentifier2.create = create;
|
| 566 |
+
function is(value) {
|
| 567 |
+
let candidate = value;
|
| 568 |
+
return Is.defined(candidate) && Is.string(candidate.uri);
|
| 569 |
+
}
|
| 570 |
+
TextDocumentIdentifier2.is = is;
|
| 571 |
+
})(TextDocumentIdentifier || (TextDocumentIdentifier = {}));
|
| 572 |
+
var VersionedTextDocumentIdentifier;
|
| 573 |
+
(function(VersionedTextDocumentIdentifier2) {
|
| 574 |
+
function create(uri, version) {
|
| 575 |
+
return { uri, version };
|
| 576 |
+
}
|
| 577 |
+
VersionedTextDocumentIdentifier2.create = create;
|
| 578 |
+
function is(value) {
|
| 579 |
+
let candidate = value;
|
| 580 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && Is.integer(candidate.version);
|
| 581 |
+
}
|
| 582 |
+
VersionedTextDocumentIdentifier2.is = is;
|
| 583 |
+
})(VersionedTextDocumentIdentifier || (VersionedTextDocumentIdentifier = {}));
|
| 584 |
+
var OptionalVersionedTextDocumentIdentifier;
|
| 585 |
+
(function(OptionalVersionedTextDocumentIdentifier2) {
|
| 586 |
+
function create(uri, version) {
|
| 587 |
+
return { uri, version };
|
| 588 |
+
}
|
| 589 |
+
OptionalVersionedTextDocumentIdentifier2.create = create;
|
| 590 |
+
function is(value) {
|
| 591 |
+
let candidate = value;
|
| 592 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && (candidate.version === null || Is.integer(candidate.version));
|
| 593 |
+
}
|
| 594 |
+
OptionalVersionedTextDocumentIdentifier2.is = is;
|
| 595 |
+
})(OptionalVersionedTextDocumentIdentifier || (OptionalVersionedTextDocumentIdentifier = {}));
|
| 596 |
+
var TextDocumentItem;
|
| 597 |
+
(function(TextDocumentItem2) {
|
| 598 |
+
function create(uri, languageId, version, text) {
|
| 599 |
+
return { uri, languageId, version, text };
|
| 600 |
+
}
|
| 601 |
+
TextDocumentItem2.create = create;
|
| 602 |
+
function is(value) {
|
| 603 |
+
let candidate = value;
|
| 604 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && Is.string(candidate.languageId) && Is.integer(candidate.version) && Is.string(candidate.text);
|
| 605 |
+
}
|
| 606 |
+
TextDocumentItem2.is = is;
|
| 607 |
+
})(TextDocumentItem || (TextDocumentItem = {}));
|
| 608 |
+
var MarkupKind;
|
| 609 |
+
(function(MarkupKind2) {
|
| 610 |
+
MarkupKind2.PlainText = "plaintext";
|
| 611 |
+
MarkupKind2.Markdown = "markdown";
|
| 612 |
+
function is(value) {
|
| 613 |
+
const candidate = value;
|
| 614 |
+
return candidate === MarkupKind2.PlainText || candidate === MarkupKind2.Markdown;
|
| 615 |
+
}
|
| 616 |
+
MarkupKind2.is = is;
|
| 617 |
+
})(MarkupKind || (MarkupKind = {}));
|
| 618 |
+
var MarkupContent;
|
| 619 |
+
(function(MarkupContent2) {
|
| 620 |
+
function is(value) {
|
| 621 |
+
const candidate = value;
|
| 622 |
+
return Is.objectLiteral(value) && MarkupKind.is(candidate.kind) && Is.string(candidate.value);
|
| 623 |
+
}
|
| 624 |
+
MarkupContent2.is = is;
|
| 625 |
+
})(MarkupContent || (MarkupContent = {}));
|
| 626 |
+
var CompletionItemKind;
|
| 627 |
+
(function(CompletionItemKind2) {
|
| 628 |
+
CompletionItemKind2.Text = 1;
|
| 629 |
+
CompletionItemKind2.Method = 2;
|
| 630 |
+
CompletionItemKind2.Function = 3;
|
| 631 |
+
CompletionItemKind2.Constructor = 4;
|
| 632 |
+
CompletionItemKind2.Field = 5;
|
| 633 |
+
CompletionItemKind2.Variable = 6;
|
| 634 |
+
CompletionItemKind2.Class = 7;
|
| 635 |
+
CompletionItemKind2.Interface = 8;
|
| 636 |
+
CompletionItemKind2.Module = 9;
|
| 637 |
+
CompletionItemKind2.Property = 10;
|
| 638 |
+
CompletionItemKind2.Unit = 11;
|
| 639 |
+
CompletionItemKind2.Value = 12;
|
| 640 |
+
CompletionItemKind2.Enum = 13;
|
| 641 |
+
CompletionItemKind2.Keyword = 14;
|
| 642 |
+
CompletionItemKind2.Snippet = 15;
|
| 643 |
+
CompletionItemKind2.Color = 16;
|
| 644 |
+
CompletionItemKind2.File = 17;
|
| 645 |
+
CompletionItemKind2.Reference = 18;
|
| 646 |
+
CompletionItemKind2.Folder = 19;
|
| 647 |
+
CompletionItemKind2.EnumMember = 20;
|
| 648 |
+
CompletionItemKind2.Constant = 21;
|
| 649 |
+
CompletionItemKind2.Struct = 22;
|
| 650 |
+
CompletionItemKind2.Event = 23;
|
| 651 |
+
CompletionItemKind2.Operator = 24;
|
| 652 |
+
CompletionItemKind2.TypeParameter = 25;
|
| 653 |
+
})(CompletionItemKind || (CompletionItemKind = {}));
|
| 654 |
+
var InsertTextFormat;
|
| 655 |
+
(function(InsertTextFormat2) {
|
| 656 |
+
InsertTextFormat2.PlainText = 1;
|
| 657 |
+
InsertTextFormat2.Snippet = 2;
|
| 658 |
+
})(InsertTextFormat || (InsertTextFormat = {}));
|
| 659 |
+
var CompletionItemTag;
|
| 660 |
+
(function(CompletionItemTag2) {
|
| 661 |
+
CompletionItemTag2.Deprecated = 1;
|
| 662 |
+
})(CompletionItemTag || (CompletionItemTag = {}));
|
| 663 |
+
var InsertReplaceEdit;
|
| 664 |
+
(function(InsertReplaceEdit2) {
|
| 665 |
+
function create(newText, insert, replace) {
|
| 666 |
+
return { newText, insert, replace };
|
| 667 |
+
}
|
| 668 |
+
InsertReplaceEdit2.create = create;
|
| 669 |
+
function is(value) {
|
| 670 |
+
const candidate = value;
|
| 671 |
+
return candidate && Is.string(candidate.newText) && Range.is(candidate.insert) && Range.is(candidate.replace);
|
| 672 |
+
}
|
| 673 |
+
InsertReplaceEdit2.is = is;
|
| 674 |
+
})(InsertReplaceEdit || (InsertReplaceEdit = {}));
|
| 675 |
+
var InsertTextMode;
|
| 676 |
+
(function(InsertTextMode2) {
|
| 677 |
+
InsertTextMode2.asIs = 1;
|
| 678 |
+
InsertTextMode2.adjustIndentation = 2;
|
| 679 |
+
})(InsertTextMode || (InsertTextMode = {}));
|
| 680 |
+
var CompletionItemLabelDetails;
|
| 681 |
+
(function(CompletionItemLabelDetails2) {
|
| 682 |
+
function is(value) {
|
| 683 |
+
const candidate = value;
|
| 684 |
+
return candidate && (Is.string(candidate.detail) || candidate.detail === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
| 685 |
+
}
|
| 686 |
+
CompletionItemLabelDetails2.is = is;
|
| 687 |
+
})(CompletionItemLabelDetails || (CompletionItemLabelDetails = {}));
|
| 688 |
+
var CompletionItem;
|
| 689 |
+
(function(CompletionItem2) {
|
| 690 |
+
function create(label) {
|
| 691 |
+
return { label };
|
| 692 |
+
}
|
| 693 |
+
CompletionItem2.create = create;
|
| 694 |
+
})(CompletionItem || (CompletionItem = {}));
|
| 695 |
+
var CompletionList;
|
| 696 |
+
(function(CompletionList2) {
|
| 697 |
+
function create(items, isIncomplete) {
|
| 698 |
+
return { items: items ? items : [], isIncomplete: !!isIncomplete };
|
| 699 |
+
}
|
| 700 |
+
CompletionList2.create = create;
|
| 701 |
+
})(CompletionList || (CompletionList = {}));
|
| 702 |
+
var MarkedString;
|
| 703 |
+
(function(MarkedString2) {
|
| 704 |
+
function fromPlainText(plainText) {
|
| 705 |
+
return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
| 706 |
+
}
|
| 707 |
+
MarkedString2.fromPlainText = fromPlainText;
|
| 708 |
+
function is(value) {
|
| 709 |
+
const candidate = value;
|
| 710 |
+
return Is.string(candidate) || Is.objectLiteral(candidate) && Is.string(candidate.language) && Is.string(candidate.value);
|
| 711 |
+
}
|
| 712 |
+
MarkedString2.is = is;
|
| 713 |
+
})(MarkedString || (MarkedString = {}));
|
| 714 |
+
var Hover;
|
| 715 |
+
(function(Hover2) {
|
| 716 |
+
function is(value) {
|
| 717 |
+
let candidate = value;
|
| 718 |
+
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
|
| 719 |
+
}
|
| 720 |
+
Hover2.is = is;
|
| 721 |
+
})(Hover || (Hover = {}));
|
| 722 |
+
var ParameterInformation;
|
| 723 |
+
(function(ParameterInformation2) {
|
| 724 |
+
function create(label, documentation) {
|
| 725 |
+
return documentation ? { label, documentation } : { label };
|
| 726 |
+
}
|
| 727 |
+
ParameterInformation2.create = create;
|
| 728 |
+
})(ParameterInformation || (ParameterInformation = {}));
|
| 729 |
+
var SignatureInformation;
|
| 730 |
+
(function(SignatureInformation2) {
|
| 731 |
+
function create(label, documentation, ...parameters) {
|
| 732 |
+
let result = { label };
|
| 733 |
+
if (Is.defined(documentation)) {
|
| 734 |
+
result.documentation = documentation;
|
| 735 |
+
}
|
| 736 |
+
if (Is.defined(parameters)) {
|
| 737 |
+
result.parameters = parameters;
|
| 738 |
+
} else {
|
| 739 |
+
result.parameters = [];
|
| 740 |
+
}
|
| 741 |
+
return result;
|
| 742 |
+
}
|
| 743 |
+
SignatureInformation2.create = create;
|
| 744 |
+
})(SignatureInformation || (SignatureInformation = {}));
|
| 745 |
+
var DocumentHighlightKind;
|
| 746 |
+
(function(DocumentHighlightKind2) {
|
| 747 |
+
DocumentHighlightKind2.Text = 1;
|
| 748 |
+
DocumentHighlightKind2.Read = 2;
|
| 749 |
+
DocumentHighlightKind2.Write = 3;
|
| 750 |
+
})(DocumentHighlightKind || (DocumentHighlightKind = {}));
|
| 751 |
+
var DocumentHighlight;
|
| 752 |
+
(function(DocumentHighlight2) {
|
| 753 |
+
function create(range, kind) {
|
| 754 |
+
let result = { range };
|
| 755 |
+
if (Is.number(kind)) {
|
| 756 |
+
result.kind = kind;
|
| 757 |
+
}
|
| 758 |
+
return result;
|
| 759 |
+
}
|
| 760 |
+
DocumentHighlight2.create = create;
|
| 761 |
+
})(DocumentHighlight || (DocumentHighlight = {}));
|
| 762 |
+
var SymbolKind;
|
| 763 |
+
(function(SymbolKind2) {
|
| 764 |
+
SymbolKind2.File = 1;
|
| 765 |
+
SymbolKind2.Module = 2;
|
| 766 |
+
SymbolKind2.Namespace = 3;
|
| 767 |
+
SymbolKind2.Package = 4;
|
| 768 |
+
SymbolKind2.Class = 5;
|
| 769 |
+
SymbolKind2.Method = 6;
|
| 770 |
+
SymbolKind2.Property = 7;
|
| 771 |
+
SymbolKind2.Field = 8;
|
| 772 |
+
SymbolKind2.Constructor = 9;
|
| 773 |
+
SymbolKind2.Enum = 10;
|
| 774 |
+
SymbolKind2.Interface = 11;
|
| 775 |
+
SymbolKind2.Function = 12;
|
| 776 |
+
SymbolKind2.Variable = 13;
|
| 777 |
+
SymbolKind2.Constant = 14;
|
| 778 |
+
SymbolKind2.String = 15;
|
| 779 |
+
SymbolKind2.Number = 16;
|
| 780 |
+
SymbolKind2.Boolean = 17;
|
| 781 |
+
SymbolKind2.Array = 18;
|
| 782 |
+
SymbolKind2.Object = 19;
|
| 783 |
+
SymbolKind2.Key = 20;
|
| 784 |
+
SymbolKind2.Null = 21;
|
| 785 |
+
SymbolKind2.EnumMember = 22;
|
| 786 |
+
SymbolKind2.Struct = 23;
|
| 787 |
+
SymbolKind2.Event = 24;
|
| 788 |
+
SymbolKind2.Operator = 25;
|
| 789 |
+
SymbolKind2.TypeParameter = 26;
|
| 790 |
+
})(SymbolKind || (SymbolKind = {}));
|
| 791 |
+
var SymbolTag;
|
| 792 |
+
(function(SymbolTag2) {
|
| 793 |
+
SymbolTag2.Deprecated = 1;
|
| 794 |
+
})(SymbolTag || (SymbolTag = {}));
|
| 795 |
+
var SymbolInformation;
|
| 796 |
+
(function(SymbolInformation2) {
|
| 797 |
+
function create(name, kind, range, uri, containerName) {
|
| 798 |
+
let result = {
|
| 799 |
+
name,
|
| 800 |
+
kind,
|
| 801 |
+
location: { uri, range }
|
| 802 |
+
};
|
| 803 |
+
if (containerName) {
|
| 804 |
+
result.containerName = containerName;
|
| 805 |
+
}
|
| 806 |
+
return result;
|
| 807 |
+
}
|
| 808 |
+
SymbolInformation2.create = create;
|
| 809 |
+
})(SymbolInformation || (SymbolInformation = {}));
|
| 810 |
+
var WorkspaceSymbol;
|
| 811 |
+
(function(WorkspaceSymbol2) {
|
| 812 |
+
function create(name, kind, uri, range) {
|
| 813 |
+
return range !== void 0 ? { name, kind, location: { uri, range } } : { name, kind, location: { uri } };
|
| 814 |
+
}
|
| 815 |
+
WorkspaceSymbol2.create = create;
|
| 816 |
+
})(WorkspaceSymbol || (WorkspaceSymbol = {}));
|
| 817 |
+
var DocumentSymbol;
|
| 818 |
+
(function(DocumentSymbol2) {
|
| 819 |
+
function create(name, detail, kind, range, selectionRange, children) {
|
| 820 |
+
let result = {
|
| 821 |
+
name,
|
| 822 |
+
detail,
|
| 823 |
+
kind,
|
| 824 |
+
range,
|
| 825 |
+
selectionRange
|
| 826 |
+
};
|
| 827 |
+
if (children !== void 0) {
|
| 828 |
+
result.children = children;
|
| 829 |
+
}
|
| 830 |
+
return result;
|
| 831 |
+
}
|
| 832 |
+
DocumentSymbol2.create = create;
|
| 833 |
+
function is(value) {
|
| 834 |
+
let candidate = value;
|
| 835 |
+
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail === void 0 || Is.string(candidate.detail)) && (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && (candidate.children === void 0 || Array.isArray(candidate.children)) && (candidate.tags === void 0 || Array.isArray(candidate.tags));
|
| 836 |
+
}
|
| 837 |
+
DocumentSymbol2.is = is;
|
| 838 |
+
})(DocumentSymbol || (DocumentSymbol = {}));
|
| 839 |
+
var CodeActionKind;
|
| 840 |
+
(function(CodeActionKind2) {
|
| 841 |
+
CodeActionKind2.Empty = "";
|
| 842 |
+
CodeActionKind2.QuickFix = "quickfix";
|
| 843 |
+
CodeActionKind2.Refactor = "refactor";
|
| 844 |
+
CodeActionKind2.RefactorExtract = "refactor.extract";
|
| 845 |
+
CodeActionKind2.RefactorInline = "refactor.inline";
|
| 846 |
+
CodeActionKind2.RefactorRewrite = "refactor.rewrite";
|
| 847 |
+
CodeActionKind2.Source = "source";
|
| 848 |
+
CodeActionKind2.SourceOrganizeImports = "source.organizeImports";
|
| 849 |
+
CodeActionKind2.SourceFixAll = "source.fixAll";
|
| 850 |
+
})(CodeActionKind || (CodeActionKind = {}));
|
| 851 |
+
var CodeActionTriggerKind;
|
| 852 |
+
(function(CodeActionTriggerKind2) {
|
| 853 |
+
CodeActionTriggerKind2.Invoked = 1;
|
| 854 |
+
CodeActionTriggerKind2.Automatic = 2;
|
| 855 |
+
})(CodeActionTriggerKind || (CodeActionTriggerKind = {}));
|
| 856 |
+
var CodeActionContext;
|
| 857 |
+
(function(CodeActionContext2) {
|
| 858 |
+
function create(diagnostics, only, triggerKind) {
|
| 859 |
+
let result = { diagnostics };
|
| 860 |
+
if (only !== void 0 && only !== null) {
|
| 861 |
+
result.only = only;
|
| 862 |
+
}
|
| 863 |
+
if (triggerKind !== void 0 && triggerKind !== null) {
|
| 864 |
+
result.triggerKind = triggerKind;
|
| 865 |
+
}
|
| 866 |
+
return result;
|
| 867 |
+
}
|
| 868 |
+
CodeActionContext2.create = create;
|
| 869 |
+
function is(value) {
|
| 870 |
+
let candidate = value;
|
| 871 |
+
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)) && (candidate.triggerKind === void 0 || candidate.triggerKind === CodeActionTriggerKind.Invoked || candidate.triggerKind === CodeActionTriggerKind.Automatic);
|
| 872 |
+
}
|
| 873 |
+
CodeActionContext2.is = is;
|
| 874 |
+
})(CodeActionContext || (CodeActionContext = {}));
|
| 875 |
+
var CodeAction;
|
| 876 |
+
(function(CodeAction2) {
|
| 877 |
+
function create(title, kindOrCommandOrEdit, kind) {
|
| 878 |
+
let result = { title };
|
| 879 |
+
let checkKind = true;
|
| 880 |
+
if (typeof kindOrCommandOrEdit === "string") {
|
| 881 |
+
checkKind = false;
|
| 882 |
+
result.kind = kindOrCommandOrEdit;
|
| 883 |
+
} else if (Command.is(kindOrCommandOrEdit)) {
|
| 884 |
+
result.command = kindOrCommandOrEdit;
|
| 885 |
+
} else {
|
| 886 |
+
result.edit = kindOrCommandOrEdit;
|
| 887 |
+
}
|
| 888 |
+
if (checkKind && kind !== void 0) {
|
| 889 |
+
result.kind = kind;
|
| 890 |
+
}
|
| 891 |
+
return result;
|
| 892 |
+
}
|
| 893 |
+
CodeAction2.create = create;
|
| 894 |
+
function is(value) {
|
| 895 |
+
let candidate = value;
|
| 896 |
+
return candidate && Is.string(candidate.title) && (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && (candidate.kind === void 0 || Is.string(candidate.kind)) && (candidate.edit !== void 0 || candidate.command !== void 0) && (candidate.command === void 0 || Command.is(candidate.command)) && (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit));
|
| 897 |
+
}
|
| 898 |
+
CodeAction2.is = is;
|
| 899 |
+
})(CodeAction || (CodeAction = {}));
|
| 900 |
+
var CodeLens;
|
| 901 |
+
(function(CodeLens2) {
|
| 902 |
+
function create(range, data) {
|
| 903 |
+
let result = { range };
|
| 904 |
+
if (Is.defined(data)) {
|
| 905 |
+
result.data = data;
|
| 906 |
+
}
|
| 907 |
+
return result;
|
| 908 |
+
}
|
| 909 |
+
CodeLens2.create = create;
|
| 910 |
+
function is(value) {
|
| 911 |
+
let candidate = value;
|
| 912 |
+
return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.command) || Command.is(candidate.command));
|
| 913 |
+
}
|
| 914 |
+
CodeLens2.is = is;
|
| 915 |
+
})(CodeLens || (CodeLens = {}));
|
| 916 |
+
var FormattingOptions;
|
| 917 |
+
(function(FormattingOptions2) {
|
| 918 |
+
function create(tabSize, insertSpaces) {
|
| 919 |
+
return { tabSize, insertSpaces };
|
| 920 |
+
}
|
| 921 |
+
FormattingOptions2.create = create;
|
| 922 |
+
function is(value) {
|
| 923 |
+
let candidate = value;
|
| 924 |
+
return Is.defined(candidate) && Is.uinteger(candidate.tabSize) && Is.boolean(candidate.insertSpaces);
|
| 925 |
+
}
|
| 926 |
+
FormattingOptions2.is = is;
|
| 927 |
+
})(FormattingOptions || (FormattingOptions = {}));
|
| 928 |
+
var DocumentLink;
|
| 929 |
+
(function(DocumentLink2) {
|
| 930 |
+
function create(range, target, data) {
|
| 931 |
+
return { range, target, data };
|
| 932 |
+
}
|
| 933 |
+
DocumentLink2.create = create;
|
| 934 |
+
function is(value) {
|
| 935 |
+
let candidate = value;
|
| 936 |
+
return Is.defined(candidate) && Range.is(candidate.range) && (Is.undefined(candidate.target) || Is.string(candidate.target));
|
| 937 |
+
}
|
| 938 |
+
DocumentLink2.is = is;
|
| 939 |
+
})(DocumentLink || (DocumentLink = {}));
|
| 940 |
+
var SelectionRange;
|
| 941 |
+
(function(SelectionRange2) {
|
| 942 |
+
function create(range, parent) {
|
| 943 |
+
return { range, parent };
|
| 944 |
+
}
|
| 945 |
+
SelectionRange2.create = create;
|
| 946 |
+
function is(value) {
|
| 947 |
+
let candidate = value;
|
| 948 |
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent === void 0 || SelectionRange2.is(candidate.parent));
|
| 949 |
+
}
|
| 950 |
+
SelectionRange2.is = is;
|
| 951 |
+
})(SelectionRange || (SelectionRange = {}));
|
| 952 |
+
var SemanticTokenTypes;
|
| 953 |
+
(function(SemanticTokenTypes2) {
|
| 954 |
+
SemanticTokenTypes2["namespace"] = "namespace";
|
| 955 |
+
SemanticTokenTypes2["type"] = "type";
|
| 956 |
+
SemanticTokenTypes2["class"] = "class";
|
| 957 |
+
SemanticTokenTypes2["enum"] = "enum";
|
| 958 |
+
SemanticTokenTypes2["interface"] = "interface";
|
| 959 |
+
SemanticTokenTypes2["struct"] = "struct";
|
| 960 |
+
SemanticTokenTypes2["typeParameter"] = "typeParameter";
|
| 961 |
+
SemanticTokenTypes2["parameter"] = "parameter";
|
| 962 |
+
SemanticTokenTypes2["variable"] = "variable";
|
| 963 |
+
SemanticTokenTypes2["property"] = "property";
|
| 964 |
+
SemanticTokenTypes2["enumMember"] = "enumMember";
|
| 965 |
+
SemanticTokenTypes2["event"] = "event";
|
| 966 |
+
SemanticTokenTypes2["function"] = "function";
|
| 967 |
+
SemanticTokenTypes2["method"] = "method";
|
| 968 |
+
SemanticTokenTypes2["macro"] = "macro";
|
| 969 |
+
SemanticTokenTypes2["keyword"] = "keyword";
|
| 970 |
+
SemanticTokenTypes2["modifier"] = "modifier";
|
| 971 |
+
SemanticTokenTypes2["comment"] = "comment";
|
| 972 |
+
SemanticTokenTypes2["string"] = "string";
|
| 973 |
+
SemanticTokenTypes2["number"] = "number";
|
| 974 |
+
SemanticTokenTypes2["regexp"] = "regexp";
|
| 975 |
+
SemanticTokenTypes2["operator"] = "operator";
|
| 976 |
+
SemanticTokenTypes2["decorator"] = "decorator";
|
| 977 |
+
})(SemanticTokenTypes || (SemanticTokenTypes = {}));
|
| 978 |
+
var SemanticTokenModifiers;
|
| 979 |
+
(function(SemanticTokenModifiers2) {
|
| 980 |
+
SemanticTokenModifiers2["declaration"] = "declaration";
|
| 981 |
+
SemanticTokenModifiers2["definition"] = "definition";
|
| 982 |
+
SemanticTokenModifiers2["readonly"] = "readonly";
|
| 983 |
+
SemanticTokenModifiers2["static"] = "static";
|
| 984 |
+
SemanticTokenModifiers2["deprecated"] = "deprecated";
|
| 985 |
+
SemanticTokenModifiers2["abstract"] = "abstract";
|
| 986 |
+
SemanticTokenModifiers2["async"] = "async";
|
| 987 |
+
SemanticTokenModifiers2["modification"] = "modification";
|
| 988 |
+
SemanticTokenModifiers2["documentation"] = "documentation";
|
| 989 |
+
SemanticTokenModifiers2["defaultLibrary"] = "defaultLibrary";
|
| 990 |
+
})(SemanticTokenModifiers || (SemanticTokenModifiers = {}));
|
| 991 |
+
var SemanticTokens;
|
| 992 |
+
(function(SemanticTokens2) {
|
| 993 |
+
function is(value) {
|
| 994 |
+
const candidate = value;
|
| 995 |
+
return Is.objectLiteral(candidate) && (candidate.resultId === void 0 || typeof candidate.resultId === "string") && Array.isArray(candidate.data) && (candidate.data.length === 0 || typeof candidate.data[0] === "number");
|
| 996 |
+
}
|
| 997 |
+
SemanticTokens2.is = is;
|
| 998 |
+
})(SemanticTokens || (SemanticTokens = {}));
|
| 999 |
+
var InlineValueText;
|
| 1000 |
+
(function(InlineValueText2) {
|
| 1001 |
+
function create(range, text) {
|
| 1002 |
+
return { range, text };
|
| 1003 |
+
}
|
| 1004 |
+
InlineValueText2.create = create;
|
| 1005 |
+
function is(value) {
|
| 1006 |
+
const candidate = value;
|
| 1007 |
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.string(candidate.text);
|
| 1008 |
+
}
|
| 1009 |
+
InlineValueText2.is = is;
|
| 1010 |
+
})(InlineValueText || (InlineValueText = {}));
|
| 1011 |
+
var InlineValueVariableLookup;
|
| 1012 |
+
(function(InlineValueVariableLookup2) {
|
| 1013 |
+
function create(range, variableName, caseSensitiveLookup) {
|
| 1014 |
+
return { range, variableName, caseSensitiveLookup };
|
| 1015 |
+
}
|
| 1016 |
+
InlineValueVariableLookup2.create = create;
|
| 1017 |
+
function is(value) {
|
| 1018 |
+
const candidate = value;
|
| 1019 |
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.boolean(candidate.caseSensitiveLookup) && (Is.string(candidate.variableName) || candidate.variableName === void 0);
|
| 1020 |
+
}
|
| 1021 |
+
InlineValueVariableLookup2.is = is;
|
| 1022 |
+
})(InlineValueVariableLookup || (InlineValueVariableLookup = {}));
|
| 1023 |
+
var InlineValueEvaluatableExpression;
|
| 1024 |
+
(function(InlineValueEvaluatableExpression2) {
|
| 1025 |
+
function create(range, expression) {
|
| 1026 |
+
return { range, expression };
|
| 1027 |
+
}
|
| 1028 |
+
InlineValueEvaluatableExpression2.create = create;
|
| 1029 |
+
function is(value) {
|
| 1030 |
+
const candidate = value;
|
| 1031 |
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && (Is.string(candidate.expression) || candidate.expression === void 0);
|
| 1032 |
+
}
|
| 1033 |
+
InlineValueEvaluatableExpression2.is = is;
|
| 1034 |
+
})(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {}));
|
| 1035 |
+
var InlineValueContext;
|
| 1036 |
+
(function(InlineValueContext2) {
|
| 1037 |
+
function create(frameId, stoppedLocation) {
|
| 1038 |
+
return { frameId, stoppedLocation };
|
| 1039 |
+
}
|
| 1040 |
+
InlineValueContext2.create = create;
|
| 1041 |
+
function is(value) {
|
| 1042 |
+
const candidate = value;
|
| 1043 |
+
return Is.defined(candidate) && Range.is(value.stoppedLocation);
|
| 1044 |
+
}
|
| 1045 |
+
InlineValueContext2.is = is;
|
| 1046 |
+
})(InlineValueContext || (InlineValueContext = {}));
|
| 1047 |
+
var InlayHintKind;
|
| 1048 |
+
(function(InlayHintKind2) {
|
| 1049 |
+
InlayHintKind2.Type = 1;
|
| 1050 |
+
InlayHintKind2.Parameter = 2;
|
| 1051 |
+
function is(value) {
|
| 1052 |
+
return value === 1 || value === 2;
|
| 1053 |
+
}
|
| 1054 |
+
InlayHintKind2.is = is;
|
| 1055 |
+
})(InlayHintKind || (InlayHintKind = {}));
|
| 1056 |
+
var InlayHintLabelPart;
|
| 1057 |
+
(function(InlayHintLabelPart2) {
|
| 1058 |
+
function create(value) {
|
| 1059 |
+
return { value };
|
| 1060 |
+
}
|
| 1061 |
+
InlayHintLabelPart2.create = create;
|
| 1062 |
+
function is(value) {
|
| 1063 |
+
const candidate = value;
|
| 1064 |
+
return Is.objectLiteral(candidate) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.location === void 0 || Location.is(candidate.location)) && (candidate.command === void 0 || Command.is(candidate.command));
|
| 1065 |
+
}
|
| 1066 |
+
InlayHintLabelPart2.is = is;
|
| 1067 |
+
})(InlayHintLabelPart || (InlayHintLabelPart = {}));
|
| 1068 |
+
var InlayHint;
|
| 1069 |
+
(function(InlayHint2) {
|
| 1070 |
+
function create(position, label, kind) {
|
| 1071 |
+
const result = { position, label };
|
| 1072 |
+
if (kind !== void 0) {
|
| 1073 |
+
result.kind = kind;
|
| 1074 |
+
}
|
| 1075 |
+
return result;
|
| 1076 |
+
}
|
| 1077 |
+
InlayHint2.create = create;
|
| 1078 |
+
function is(value) {
|
| 1079 |
+
const candidate = value;
|
| 1080 |
+
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind === void 0 || InlayHintKind.is(candidate.kind)) && candidate.textEdits === void 0 || Is.typedArray(candidate.textEdits, TextEdit.is) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.paddingLeft === void 0 || Is.boolean(candidate.paddingLeft)) && (candidate.paddingRight === void 0 || Is.boolean(candidate.paddingRight));
|
| 1081 |
+
}
|
| 1082 |
+
InlayHint2.is = is;
|
| 1083 |
+
})(InlayHint || (InlayHint = {}));
|
| 1084 |
+
var StringValue;
|
| 1085 |
+
(function(StringValue2) {
|
| 1086 |
+
function createSnippet(value) {
|
| 1087 |
+
return { kind: "snippet", value };
|
| 1088 |
+
}
|
| 1089 |
+
StringValue2.createSnippet = createSnippet;
|
| 1090 |
+
})(StringValue || (StringValue = {}));
|
| 1091 |
+
var InlineCompletionItem;
|
| 1092 |
+
(function(InlineCompletionItem2) {
|
| 1093 |
+
function create(insertText, filterText, range, command) {
|
| 1094 |
+
return { insertText, filterText, range, command };
|
| 1095 |
+
}
|
| 1096 |
+
InlineCompletionItem2.create = create;
|
| 1097 |
+
})(InlineCompletionItem || (InlineCompletionItem = {}));
|
| 1098 |
+
var InlineCompletionList;
|
| 1099 |
+
(function(InlineCompletionList2) {
|
| 1100 |
+
function create(items) {
|
| 1101 |
+
return { items };
|
| 1102 |
+
}
|
| 1103 |
+
InlineCompletionList2.create = create;
|
| 1104 |
+
})(InlineCompletionList || (InlineCompletionList = {}));
|
| 1105 |
+
var InlineCompletionTriggerKind;
|
| 1106 |
+
(function(InlineCompletionTriggerKind2) {
|
| 1107 |
+
InlineCompletionTriggerKind2.Invoked = 0;
|
| 1108 |
+
InlineCompletionTriggerKind2.Automatic = 1;
|
| 1109 |
+
})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));
|
| 1110 |
+
var SelectedCompletionInfo;
|
| 1111 |
+
(function(SelectedCompletionInfo2) {
|
| 1112 |
+
function create(range, text) {
|
| 1113 |
+
return { range, text };
|
| 1114 |
+
}
|
| 1115 |
+
SelectedCompletionInfo2.create = create;
|
| 1116 |
+
})(SelectedCompletionInfo || (SelectedCompletionInfo = {}));
|
| 1117 |
+
var InlineCompletionContext;
|
| 1118 |
+
(function(InlineCompletionContext2) {
|
| 1119 |
+
function create(triggerKind, selectedCompletionInfo) {
|
| 1120 |
+
return { triggerKind, selectedCompletionInfo };
|
| 1121 |
+
}
|
| 1122 |
+
InlineCompletionContext2.create = create;
|
| 1123 |
+
})(InlineCompletionContext || (InlineCompletionContext = {}));
|
| 1124 |
+
var WorkspaceFolder;
|
| 1125 |
+
(function(WorkspaceFolder2) {
|
| 1126 |
+
function is(value) {
|
| 1127 |
+
const candidate = value;
|
| 1128 |
+
return Is.objectLiteral(candidate) && URI.is(candidate.uri) && Is.string(candidate.name);
|
| 1129 |
+
}
|
| 1130 |
+
WorkspaceFolder2.is = is;
|
| 1131 |
+
})(WorkspaceFolder || (WorkspaceFolder = {}));
|
| 1132 |
+
var TextDocument;
|
| 1133 |
+
(function(TextDocument2) {
|
| 1134 |
+
function create(uri, languageId, version, content) {
|
| 1135 |
+
return new FullTextDocument(uri, languageId, version, content);
|
| 1136 |
+
}
|
| 1137 |
+
TextDocument2.create = create;
|
| 1138 |
+
function is(value) {
|
| 1139 |
+
let candidate = value;
|
| 1140 |
+
return Is.defined(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.uinteger(candidate.lineCount) && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false;
|
| 1141 |
+
}
|
| 1142 |
+
TextDocument2.is = is;
|
| 1143 |
+
function applyEdits(document, edits) {
|
| 1144 |
+
let text = document.getText();
|
| 1145 |
+
let sortedEdits = mergeSort(edits, (a, b) => {
|
| 1146 |
+
let diff = a.range.start.line - b.range.start.line;
|
| 1147 |
+
if (diff === 0) {
|
| 1148 |
+
return a.range.start.character - b.range.start.character;
|
| 1149 |
+
}
|
| 1150 |
+
return diff;
|
| 1151 |
+
});
|
| 1152 |
+
let lastModifiedOffset = text.length;
|
| 1153 |
+
for (let i = sortedEdits.length - 1; i >= 0; i--) {
|
| 1154 |
+
let e = sortedEdits[i];
|
| 1155 |
+
let startOffset = document.offsetAt(e.range.start);
|
| 1156 |
+
let endOffset = document.offsetAt(e.range.end);
|
| 1157 |
+
if (endOffset <= lastModifiedOffset) {
|
| 1158 |
+
text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length);
|
| 1159 |
+
} else {
|
| 1160 |
+
throw new Error("Overlapping edit");
|
| 1161 |
+
}
|
| 1162 |
+
lastModifiedOffset = startOffset;
|
| 1163 |
+
}
|
| 1164 |
+
return text;
|
| 1165 |
+
}
|
| 1166 |
+
TextDocument2.applyEdits = applyEdits;
|
| 1167 |
+
function mergeSort(data, compare) {
|
| 1168 |
+
if (data.length <= 1) {
|
| 1169 |
+
return data;
|
| 1170 |
+
}
|
| 1171 |
+
const p = data.length / 2 | 0;
|
| 1172 |
+
const left = data.slice(0, p);
|
| 1173 |
+
const right = data.slice(p);
|
| 1174 |
+
mergeSort(left, compare);
|
| 1175 |
+
mergeSort(right, compare);
|
| 1176 |
+
let leftIdx = 0;
|
| 1177 |
+
let rightIdx = 0;
|
| 1178 |
+
let i = 0;
|
| 1179 |
+
while (leftIdx < left.length && rightIdx < right.length) {
|
| 1180 |
+
let ret = compare(left[leftIdx], right[rightIdx]);
|
| 1181 |
+
if (ret <= 0) {
|
| 1182 |
+
data[i++] = left[leftIdx++];
|
| 1183 |
+
} else {
|
| 1184 |
+
data[i++] = right[rightIdx++];
|
| 1185 |
+
}
|
| 1186 |
+
}
|
| 1187 |
+
while (leftIdx < left.length) {
|
| 1188 |
+
data[i++] = left[leftIdx++];
|
| 1189 |
+
}
|
| 1190 |
+
while (rightIdx < right.length) {
|
| 1191 |
+
data[i++] = right[rightIdx++];
|
| 1192 |
+
}
|
| 1193 |
+
return data;
|
| 1194 |
+
}
|
| 1195 |
+
})(TextDocument || (TextDocument = {}));
|
| 1196 |
+
var FullTextDocument = class {
|
| 1197 |
+
constructor(uri, languageId, version, content) {
|
| 1198 |
+
this._uri = uri;
|
| 1199 |
+
this._languageId = languageId;
|
| 1200 |
+
this._version = version;
|
| 1201 |
+
this._content = content;
|
| 1202 |
+
this._lineOffsets = void 0;
|
| 1203 |
+
}
|
| 1204 |
+
get uri() {
|
| 1205 |
+
return this._uri;
|
| 1206 |
+
}
|
| 1207 |
+
get languageId() {
|
| 1208 |
+
return this._languageId;
|
| 1209 |
+
}
|
| 1210 |
+
get version() {
|
| 1211 |
+
return this._version;
|
| 1212 |
+
}
|
| 1213 |
+
getText(range) {
|
| 1214 |
+
if (range) {
|
| 1215 |
+
let start = this.offsetAt(range.start);
|
| 1216 |
+
let end = this.offsetAt(range.end);
|
| 1217 |
+
return this._content.substring(start, end);
|
| 1218 |
+
}
|
| 1219 |
+
return this._content;
|
| 1220 |
+
}
|
| 1221 |
+
update(event, version) {
|
| 1222 |
+
this._content = event.text;
|
| 1223 |
+
this._version = version;
|
| 1224 |
+
this._lineOffsets = void 0;
|
| 1225 |
+
}
|
| 1226 |
+
getLineOffsets() {
|
| 1227 |
+
if (this._lineOffsets === void 0) {
|
| 1228 |
+
let lineOffsets = [];
|
| 1229 |
+
let text = this._content;
|
| 1230 |
+
let isLineStart = true;
|
| 1231 |
+
for (let i = 0; i < text.length; i++) {
|
| 1232 |
+
if (isLineStart) {
|
| 1233 |
+
lineOffsets.push(i);
|
| 1234 |
+
isLineStart = false;
|
| 1235 |
+
}
|
| 1236 |
+
let ch = text.charAt(i);
|
| 1237 |
+
isLineStart = ch === "\r" || ch === "\n";
|
| 1238 |
+
if (ch === "\r" && i + 1 < text.length && text.charAt(i + 1) === "\n") {
|
| 1239 |
+
i++;
|
| 1240 |
+
}
|
| 1241 |
+
}
|
| 1242 |
+
if (isLineStart && text.length > 0) {
|
| 1243 |
+
lineOffsets.push(text.length);
|
| 1244 |
+
}
|
| 1245 |
+
this._lineOffsets = lineOffsets;
|
| 1246 |
+
}
|
| 1247 |
+
return this._lineOffsets;
|
| 1248 |
+
}
|
| 1249 |
+
positionAt(offset) {
|
| 1250 |
+
offset = Math.max(Math.min(offset, this._content.length), 0);
|
| 1251 |
+
let lineOffsets = this.getLineOffsets();
|
| 1252 |
+
let low = 0, high = lineOffsets.length;
|
| 1253 |
+
if (high === 0) {
|
| 1254 |
+
return Position.create(0, offset);
|
| 1255 |
+
}
|
| 1256 |
+
while (low < high) {
|
| 1257 |
+
let mid = Math.floor((low + high) / 2);
|
| 1258 |
+
if (lineOffsets[mid] > offset) {
|
| 1259 |
+
high = mid;
|
| 1260 |
+
} else {
|
| 1261 |
+
low = mid + 1;
|
| 1262 |
+
}
|
| 1263 |
+
}
|
| 1264 |
+
let line = low - 1;
|
| 1265 |
+
return Position.create(line, offset - lineOffsets[line]);
|
| 1266 |
+
}
|
| 1267 |
+
offsetAt(position) {
|
| 1268 |
+
let lineOffsets = this.getLineOffsets();
|
| 1269 |
+
if (position.line >= lineOffsets.length) {
|
| 1270 |
+
return this._content.length;
|
| 1271 |
+
} else if (position.line < 0) {
|
| 1272 |
+
return 0;
|
| 1273 |
+
}
|
| 1274 |
+
let lineOffset = lineOffsets[position.line];
|
| 1275 |
+
let nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length;
|
| 1276 |
+
return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
|
| 1277 |
+
}
|
| 1278 |
+
get lineCount() {
|
| 1279 |
+
return this.getLineOffsets().length;
|
| 1280 |
+
}
|
| 1281 |
+
};
|
| 1282 |
+
var Is;
|
| 1283 |
+
(function(Is2) {
|
| 1284 |
+
const toString = Object.prototype.toString;
|
| 1285 |
+
function defined(value) {
|
| 1286 |
+
return typeof value !== "undefined";
|
| 1287 |
+
}
|
| 1288 |
+
Is2.defined = defined;
|
| 1289 |
+
function undefined2(value) {
|
| 1290 |
+
return typeof value === "undefined";
|
| 1291 |
+
}
|
| 1292 |
+
Is2.undefined = undefined2;
|
| 1293 |
+
function boolean(value) {
|
| 1294 |
+
return value === true || value === false;
|
| 1295 |
+
}
|
| 1296 |
+
Is2.boolean = boolean;
|
| 1297 |
+
function string(value) {
|
| 1298 |
+
return toString.call(value) === "[object String]";
|
| 1299 |
+
}
|
| 1300 |
+
Is2.string = string;
|
| 1301 |
+
function number(value) {
|
| 1302 |
+
return toString.call(value) === "[object Number]";
|
| 1303 |
+
}
|
| 1304 |
+
Is2.number = number;
|
| 1305 |
+
function numberRange(value, min, max) {
|
| 1306 |
+
return toString.call(value) === "[object Number]" && min <= value && value <= max;
|
| 1307 |
+
}
|
| 1308 |
+
Is2.numberRange = numberRange;
|
| 1309 |
+
function integer2(value) {
|
| 1310 |
+
return toString.call(value) === "[object Number]" && -2147483648 <= value && value <= 2147483647;
|
| 1311 |
+
}
|
| 1312 |
+
Is2.integer = integer2;
|
| 1313 |
+
function uinteger2(value) {
|
| 1314 |
+
return toString.call(value) === "[object Number]" && 0 <= value && value <= 2147483647;
|
| 1315 |
+
}
|
| 1316 |
+
Is2.uinteger = uinteger2;
|
| 1317 |
+
function func(value) {
|
| 1318 |
+
return toString.call(value) === "[object Function]";
|
| 1319 |
+
}
|
| 1320 |
+
Is2.func = func;
|
| 1321 |
+
function objectLiteral(value) {
|
| 1322 |
+
return value !== null && typeof value === "object";
|
| 1323 |
+
}
|
| 1324 |
+
Is2.objectLiteral = objectLiteral;
|
| 1325 |
+
function typedArray(value, check) {
|
| 1326 |
+
return Array.isArray(value) && value.every(check);
|
| 1327 |
+
}
|
| 1328 |
+
Is2.typedArray = typedArray;
|
| 1329 |
+
})(Is || (Is = {}));
|
| 1330 |
+
|
| 1331 |
+
// src/language/common/lspLanguageFeatures.ts
|
| 1332 |
+
var DiagnosticsAdapter = class {
|
| 1333 |
+
constructor(_languageId, _worker, configChangeEvent) {
|
| 1334 |
+
this._languageId = _languageId;
|
| 1335 |
+
this._worker = _worker;
|
| 1336 |
+
this._disposables = [];
|
| 1337 |
+
this._listener = /* @__PURE__ */ Object.create(null);
|
| 1338 |
+
const onModelAdd = (model) => {
|
| 1339 |
+
let modeId = model.getLanguageId();
|
| 1340 |
+
if (modeId !== this._languageId) {
|
| 1341 |
+
return;
|
| 1342 |
+
}
|
| 1343 |
+
let handle;
|
| 1344 |
+
this._listener[model.uri.toString()] = model.onDidChangeContent(() => {
|
| 1345 |
+
window.clearTimeout(handle);
|
| 1346 |
+
handle = window.setTimeout(() => this._doValidate(model.uri, modeId), 500);
|
| 1347 |
+
});
|
| 1348 |
+
this._doValidate(model.uri, modeId);
|
| 1349 |
+
};
|
| 1350 |
+
const onModelRemoved = (model) => {
|
| 1351 |
+
monaco_editor_core_exports.editor.setModelMarkers(model, this._languageId, []);
|
| 1352 |
+
let uriStr = model.uri.toString();
|
| 1353 |
+
let listener = this._listener[uriStr];
|
| 1354 |
+
if (listener) {
|
| 1355 |
+
listener.dispose();
|
| 1356 |
+
delete this._listener[uriStr];
|
| 1357 |
+
}
|
| 1358 |
+
};
|
| 1359 |
+
this._disposables.push(monaco_editor_core_exports.editor.onDidCreateModel(onModelAdd));
|
| 1360 |
+
this._disposables.push(monaco_editor_core_exports.editor.onWillDisposeModel(onModelRemoved));
|
| 1361 |
+
this._disposables.push(
|
| 1362 |
+
monaco_editor_core_exports.editor.onDidChangeModelLanguage((event) => {
|
| 1363 |
+
onModelRemoved(event.model);
|
| 1364 |
+
onModelAdd(event.model);
|
| 1365 |
+
})
|
| 1366 |
+
);
|
| 1367 |
+
this._disposables.push(
|
| 1368 |
+
configChangeEvent((_) => {
|
| 1369 |
+
monaco_editor_core_exports.editor.getModels().forEach((model) => {
|
| 1370 |
+
if (model.getLanguageId() === this._languageId) {
|
| 1371 |
+
onModelRemoved(model);
|
| 1372 |
+
onModelAdd(model);
|
| 1373 |
+
}
|
| 1374 |
+
});
|
| 1375 |
+
})
|
| 1376 |
+
);
|
| 1377 |
+
this._disposables.push({
|
| 1378 |
+
dispose: () => {
|
| 1379 |
+
monaco_editor_core_exports.editor.getModels().forEach(onModelRemoved);
|
| 1380 |
+
for (let key in this._listener) {
|
| 1381 |
+
this._listener[key].dispose();
|
| 1382 |
+
}
|
| 1383 |
+
}
|
| 1384 |
+
});
|
| 1385 |
+
monaco_editor_core_exports.editor.getModels().forEach(onModelAdd);
|
| 1386 |
+
}
|
| 1387 |
+
dispose() {
|
| 1388 |
+
this._disposables.forEach((d) => d && d.dispose());
|
| 1389 |
+
this._disposables.length = 0;
|
| 1390 |
+
}
|
| 1391 |
+
_doValidate(resource, languageId) {
|
| 1392 |
+
this._worker(resource).then((worker) => {
|
| 1393 |
+
return worker.doValidation(resource.toString());
|
| 1394 |
+
}).then((diagnostics) => {
|
| 1395 |
+
const markers = diagnostics.map((d) => toDiagnostics(resource, d));
|
| 1396 |
+
let model = monaco_editor_core_exports.editor.getModel(resource);
|
| 1397 |
+
if (model && model.getLanguageId() === languageId) {
|
| 1398 |
+
monaco_editor_core_exports.editor.setModelMarkers(model, languageId, markers);
|
| 1399 |
+
}
|
| 1400 |
+
}).then(void 0, (err) => {
|
| 1401 |
+
console.error(err);
|
| 1402 |
+
});
|
| 1403 |
+
}
|
| 1404 |
+
};
|
| 1405 |
+
function toSeverity(lsSeverity) {
|
| 1406 |
+
switch (lsSeverity) {
|
| 1407 |
+
case DiagnosticSeverity.Error:
|
| 1408 |
+
return monaco_editor_core_exports.MarkerSeverity.Error;
|
| 1409 |
+
case DiagnosticSeverity.Warning:
|
| 1410 |
+
return monaco_editor_core_exports.MarkerSeverity.Warning;
|
| 1411 |
+
case DiagnosticSeverity.Information:
|
| 1412 |
+
return monaco_editor_core_exports.MarkerSeverity.Info;
|
| 1413 |
+
case DiagnosticSeverity.Hint:
|
| 1414 |
+
return monaco_editor_core_exports.MarkerSeverity.Hint;
|
| 1415 |
+
default:
|
| 1416 |
+
return monaco_editor_core_exports.MarkerSeverity.Info;
|
| 1417 |
+
}
|
| 1418 |
+
}
|
| 1419 |
+
function toDiagnostics(resource, diag) {
|
| 1420 |
+
let code = typeof diag.code === "number" ? String(diag.code) : diag.code;
|
| 1421 |
+
return {
|
| 1422 |
+
severity: toSeverity(diag.severity),
|
| 1423 |
+
startLineNumber: diag.range.start.line + 1,
|
| 1424 |
+
startColumn: diag.range.start.character + 1,
|
| 1425 |
+
endLineNumber: diag.range.end.line + 1,
|
| 1426 |
+
endColumn: diag.range.end.character + 1,
|
| 1427 |
+
message: diag.message,
|
| 1428 |
+
code,
|
| 1429 |
+
source: diag.source
|
| 1430 |
+
};
|
| 1431 |
+
}
|
| 1432 |
+
var CompletionAdapter = class {
|
| 1433 |
+
constructor(_worker, _triggerCharacters) {
|
| 1434 |
+
this._worker = _worker;
|
| 1435 |
+
this._triggerCharacters = _triggerCharacters;
|
| 1436 |
+
}
|
| 1437 |
+
get triggerCharacters() {
|
| 1438 |
+
return this._triggerCharacters;
|
| 1439 |
+
}
|
| 1440 |
+
provideCompletionItems(model, position, context, token) {
|
| 1441 |
+
const resource = model.uri;
|
| 1442 |
+
return this._worker(resource).then((worker) => {
|
| 1443 |
+
return worker.doComplete(resource.toString(), fromPosition(position));
|
| 1444 |
+
}).then((info) => {
|
| 1445 |
+
if (!info) {
|
| 1446 |
+
return;
|
| 1447 |
+
}
|
| 1448 |
+
const wordInfo = model.getWordUntilPosition(position);
|
| 1449 |
+
const wordRange = new monaco_editor_core_exports.Range(
|
| 1450 |
+
position.lineNumber,
|
| 1451 |
+
wordInfo.startColumn,
|
| 1452 |
+
position.lineNumber,
|
| 1453 |
+
wordInfo.endColumn
|
| 1454 |
+
);
|
| 1455 |
+
const items = info.items.map((entry) => {
|
| 1456 |
+
const item = {
|
| 1457 |
+
label: entry.label,
|
| 1458 |
+
insertText: entry.insertText || entry.label,
|
| 1459 |
+
sortText: entry.sortText,
|
| 1460 |
+
filterText: entry.filterText,
|
| 1461 |
+
documentation: entry.documentation,
|
| 1462 |
+
detail: entry.detail,
|
| 1463 |
+
command: toCommand(entry.command),
|
| 1464 |
+
range: wordRange,
|
| 1465 |
+
kind: toCompletionItemKind(entry.kind)
|
| 1466 |
+
};
|
| 1467 |
+
if (entry.textEdit) {
|
| 1468 |
+
if (isInsertReplaceEdit(entry.textEdit)) {
|
| 1469 |
+
item.range = {
|
| 1470 |
+
insert: toRange(entry.textEdit.insert),
|
| 1471 |
+
replace: toRange(entry.textEdit.replace)
|
| 1472 |
+
};
|
| 1473 |
+
} else {
|
| 1474 |
+
item.range = toRange(entry.textEdit.range);
|
| 1475 |
+
}
|
| 1476 |
+
item.insertText = entry.textEdit.newText;
|
| 1477 |
+
}
|
| 1478 |
+
if (entry.additionalTextEdits) {
|
| 1479 |
+
item.additionalTextEdits = entry.additionalTextEdits.map(toTextEdit);
|
| 1480 |
+
}
|
| 1481 |
+
if (entry.insertTextFormat === InsertTextFormat.Snippet) {
|
| 1482 |
+
item.insertTextRules = monaco_editor_core_exports.languages.CompletionItemInsertTextRule.InsertAsSnippet;
|
| 1483 |
+
}
|
| 1484 |
+
return item;
|
| 1485 |
+
});
|
| 1486 |
+
return {
|
| 1487 |
+
isIncomplete: info.isIncomplete,
|
| 1488 |
+
suggestions: items
|
| 1489 |
+
};
|
| 1490 |
+
});
|
| 1491 |
+
}
|
| 1492 |
+
};
|
| 1493 |
+
function fromPosition(position) {
|
| 1494 |
+
if (!position) {
|
| 1495 |
+
return void 0;
|
| 1496 |
+
}
|
| 1497 |
+
return { character: position.column - 1, line: position.lineNumber - 1 };
|
| 1498 |
+
}
|
| 1499 |
+
function fromRange(range) {
|
| 1500 |
+
if (!range) {
|
| 1501 |
+
return void 0;
|
| 1502 |
+
}
|
| 1503 |
+
return {
|
| 1504 |
+
start: {
|
| 1505 |
+
line: range.startLineNumber - 1,
|
| 1506 |
+
character: range.startColumn - 1
|
| 1507 |
+
},
|
| 1508 |
+
end: { line: range.endLineNumber - 1, character: range.endColumn - 1 }
|
| 1509 |
+
};
|
| 1510 |
+
}
|
| 1511 |
+
function toRange(range) {
|
| 1512 |
+
if (!range) {
|
| 1513 |
+
return void 0;
|
| 1514 |
+
}
|
| 1515 |
+
return new monaco_editor_core_exports.Range(
|
| 1516 |
+
range.start.line + 1,
|
| 1517 |
+
range.start.character + 1,
|
| 1518 |
+
range.end.line + 1,
|
| 1519 |
+
range.end.character + 1
|
| 1520 |
+
);
|
| 1521 |
+
}
|
| 1522 |
+
function isInsertReplaceEdit(edit) {
|
| 1523 |
+
return typeof edit.insert !== "undefined" && typeof edit.replace !== "undefined";
|
| 1524 |
+
}
|
| 1525 |
+
function toCompletionItemKind(kind) {
|
| 1526 |
+
const mItemKind = monaco_editor_core_exports.languages.CompletionItemKind;
|
| 1527 |
+
switch (kind) {
|
| 1528 |
+
case CompletionItemKind.Text:
|
| 1529 |
+
return mItemKind.Text;
|
| 1530 |
+
case CompletionItemKind.Method:
|
| 1531 |
+
return mItemKind.Method;
|
| 1532 |
+
case CompletionItemKind.Function:
|
| 1533 |
+
return mItemKind.Function;
|
| 1534 |
+
case CompletionItemKind.Constructor:
|
| 1535 |
+
return mItemKind.Constructor;
|
| 1536 |
+
case CompletionItemKind.Field:
|
| 1537 |
+
return mItemKind.Field;
|
| 1538 |
+
case CompletionItemKind.Variable:
|
| 1539 |
+
return mItemKind.Variable;
|
| 1540 |
+
case CompletionItemKind.Class:
|
| 1541 |
+
return mItemKind.Class;
|
| 1542 |
+
case CompletionItemKind.Interface:
|
| 1543 |
+
return mItemKind.Interface;
|
| 1544 |
+
case CompletionItemKind.Module:
|
| 1545 |
+
return mItemKind.Module;
|
| 1546 |
+
case CompletionItemKind.Property:
|
| 1547 |
+
return mItemKind.Property;
|
| 1548 |
+
case CompletionItemKind.Unit:
|
| 1549 |
+
return mItemKind.Unit;
|
| 1550 |
+
case CompletionItemKind.Value:
|
| 1551 |
+
return mItemKind.Value;
|
| 1552 |
+
case CompletionItemKind.Enum:
|
| 1553 |
+
return mItemKind.Enum;
|
| 1554 |
+
case CompletionItemKind.Keyword:
|
| 1555 |
+
return mItemKind.Keyword;
|
| 1556 |
+
case CompletionItemKind.Snippet:
|
| 1557 |
+
return mItemKind.Snippet;
|
| 1558 |
+
case CompletionItemKind.Color:
|
| 1559 |
+
return mItemKind.Color;
|
| 1560 |
+
case CompletionItemKind.File:
|
| 1561 |
+
return mItemKind.File;
|
| 1562 |
+
case CompletionItemKind.Reference:
|
| 1563 |
+
return mItemKind.Reference;
|
| 1564 |
+
}
|
| 1565 |
+
return mItemKind.Property;
|
| 1566 |
+
}
|
| 1567 |
+
function toTextEdit(textEdit) {
|
| 1568 |
+
if (!textEdit) {
|
| 1569 |
+
return void 0;
|
| 1570 |
+
}
|
| 1571 |
+
return {
|
| 1572 |
+
range: toRange(textEdit.range),
|
| 1573 |
+
text: textEdit.newText
|
| 1574 |
+
};
|
| 1575 |
+
}
|
| 1576 |
+
function toCommand(c) {
|
| 1577 |
+
return c && c.command === "editor.action.triggerSuggest" ? { id: c.command, title: c.title, arguments: c.arguments } : void 0;
|
| 1578 |
+
}
|
| 1579 |
+
var HoverAdapter = class {
|
| 1580 |
+
constructor(_worker) {
|
| 1581 |
+
this._worker = _worker;
|
| 1582 |
+
}
|
| 1583 |
+
provideHover(model, position, token) {
|
| 1584 |
+
let resource = model.uri;
|
| 1585 |
+
return this._worker(resource).then((worker) => {
|
| 1586 |
+
return worker.doHover(resource.toString(), fromPosition(position));
|
| 1587 |
+
}).then((info) => {
|
| 1588 |
+
if (!info) {
|
| 1589 |
+
return;
|
| 1590 |
+
}
|
| 1591 |
+
return {
|
| 1592 |
+
range: toRange(info.range),
|
| 1593 |
+
contents: toMarkedStringArray(info.contents)
|
| 1594 |
+
};
|
| 1595 |
+
});
|
| 1596 |
+
}
|
| 1597 |
+
};
|
| 1598 |
+
function isMarkupContent(thing) {
|
| 1599 |
+
return thing && typeof thing === "object" && typeof thing.kind === "string";
|
| 1600 |
+
}
|
| 1601 |
+
function toMarkdownString(entry) {
|
| 1602 |
+
if (typeof entry === "string") {
|
| 1603 |
+
return {
|
| 1604 |
+
value: entry
|
| 1605 |
+
};
|
| 1606 |
+
}
|
| 1607 |
+
if (isMarkupContent(entry)) {
|
| 1608 |
+
if (entry.kind === "plaintext") {
|
| 1609 |
+
return {
|
| 1610 |
+
value: entry.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
|
| 1611 |
+
};
|
| 1612 |
+
}
|
| 1613 |
+
return {
|
| 1614 |
+
value: entry.value
|
| 1615 |
+
};
|
| 1616 |
+
}
|
| 1617 |
+
return { value: "```" + entry.language + "\n" + entry.value + "\n```\n" };
|
| 1618 |
+
}
|
| 1619 |
+
function toMarkedStringArray(contents) {
|
| 1620 |
+
if (!contents) {
|
| 1621 |
+
return void 0;
|
| 1622 |
+
}
|
| 1623 |
+
if (Array.isArray(contents)) {
|
| 1624 |
+
return contents.map(toMarkdownString);
|
| 1625 |
+
}
|
| 1626 |
+
return [toMarkdownString(contents)];
|
| 1627 |
+
}
|
| 1628 |
+
var DocumentHighlightAdapter = class {
|
| 1629 |
+
constructor(_worker) {
|
| 1630 |
+
this._worker = _worker;
|
| 1631 |
+
}
|
| 1632 |
+
provideDocumentHighlights(model, position, token) {
|
| 1633 |
+
const resource = model.uri;
|
| 1634 |
+
return this._worker(resource).then((worker) => worker.findDocumentHighlights(resource.toString(), fromPosition(position))).then((entries) => {
|
| 1635 |
+
if (!entries) {
|
| 1636 |
+
return;
|
| 1637 |
+
}
|
| 1638 |
+
return entries.map((entry) => {
|
| 1639 |
+
return {
|
| 1640 |
+
range: toRange(entry.range),
|
| 1641 |
+
kind: toDocumentHighlightKind(entry.kind)
|
| 1642 |
+
};
|
| 1643 |
+
});
|
| 1644 |
+
});
|
| 1645 |
+
}
|
| 1646 |
+
};
|
| 1647 |
+
function toDocumentHighlightKind(kind) {
|
| 1648 |
+
switch (kind) {
|
| 1649 |
+
case DocumentHighlightKind.Read:
|
| 1650 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Read;
|
| 1651 |
+
case DocumentHighlightKind.Write:
|
| 1652 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Write;
|
| 1653 |
+
case DocumentHighlightKind.Text:
|
| 1654 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Text;
|
| 1655 |
+
}
|
| 1656 |
+
return monaco_editor_core_exports.languages.DocumentHighlightKind.Text;
|
| 1657 |
+
}
|
| 1658 |
+
var DefinitionAdapter = class {
|
| 1659 |
+
constructor(_worker) {
|
| 1660 |
+
this._worker = _worker;
|
| 1661 |
+
}
|
| 1662 |
+
provideDefinition(model, position, token) {
|
| 1663 |
+
const resource = model.uri;
|
| 1664 |
+
return this._worker(resource).then((worker) => {
|
| 1665 |
+
return worker.findDefinition(resource.toString(), fromPosition(position));
|
| 1666 |
+
}).then((definition) => {
|
| 1667 |
+
if (!definition) {
|
| 1668 |
+
return;
|
| 1669 |
+
}
|
| 1670 |
+
return [toLocation(definition)];
|
| 1671 |
+
});
|
| 1672 |
+
}
|
| 1673 |
+
};
|
| 1674 |
+
function toLocation(location) {
|
| 1675 |
+
return {
|
| 1676 |
+
uri: monaco_editor_core_exports.Uri.parse(location.uri),
|
| 1677 |
+
range: toRange(location.range)
|
| 1678 |
+
};
|
| 1679 |
+
}
|
| 1680 |
+
var ReferenceAdapter = class {
|
| 1681 |
+
constructor(_worker) {
|
| 1682 |
+
this._worker = _worker;
|
| 1683 |
+
}
|
| 1684 |
+
provideReferences(model, position, context, token) {
|
| 1685 |
+
const resource = model.uri;
|
| 1686 |
+
return this._worker(resource).then((worker) => {
|
| 1687 |
+
return worker.findReferences(resource.toString(), fromPosition(position));
|
| 1688 |
+
}).then((entries) => {
|
| 1689 |
+
if (!entries) {
|
| 1690 |
+
return;
|
| 1691 |
+
}
|
| 1692 |
+
return entries.map(toLocation);
|
| 1693 |
+
});
|
| 1694 |
+
}
|
| 1695 |
+
};
|
| 1696 |
+
var RenameAdapter = class {
|
| 1697 |
+
constructor(_worker) {
|
| 1698 |
+
this._worker = _worker;
|
| 1699 |
+
}
|
| 1700 |
+
provideRenameEdits(model, position, newName, token) {
|
| 1701 |
+
const resource = model.uri;
|
| 1702 |
+
return this._worker(resource).then((worker) => {
|
| 1703 |
+
return worker.doRename(resource.toString(), fromPosition(position), newName);
|
| 1704 |
+
}).then((edit) => {
|
| 1705 |
+
return toWorkspaceEdit(edit);
|
| 1706 |
+
});
|
| 1707 |
+
}
|
| 1708 |
+
};
|
| 1709 |
+
function toWorkspaceEdit(edit) {
|
| 1710 |
+
if (!edit || !edit.changes) {
|
| 1711 |
+
return void 0;
|
| 1712 |
+
}
|
| 1713 |
+
let resourceEdits = [];
|
| 1714 |
+
for (let uri in edit.changes) {
|
| 1715 |
+
const _uri = monaco_editor_core_exports.Uri.parse(uri);
|
| 1716 |
+
for (let e of edit.changes[uri]) {
|
| 1717 |
+
resourceEdits.push({
|
| 1718 |
+
resource: _uri,
|
| 1719 |
+
versionId: void 0,
|
| 1720 |
+
textEdit: {
|
| 1721 |
+
range: toRange(e.range),
|
| 1722 |
+
text: e.newText
|
| 1723 |
+
}
|
| 1724 |
+
});
|
| 1725 |
+
}
|
| 1726 |
+
}
|
| 1727 |
+
return {
|
| 1728 |
+
edits: resourceEdits
|
| 1729 |
+
};
|
| 1730 |
+
}
|
| 1731 |
+
var DocumentSymbolAdapter = class {
|
| 1732 |
+
constructor(_worker) {
|
| 1733 |
+
this._worker = _worker;
|
| 1734 |
+
}
|
| 1735 |
+
provideDocumentSymbols(model, token) {
|
| 1736 |
+
const resource = model.uri;
|
| 1737 |
+
return this._worker(resource).then((worker) => worker.findDocumentSymbols(resource.toString())).then((items) => {
|
| 1738 |
+
if (!items) {
|
| 1739 |
+
return;
|
| 1740 |
+
}
|
| 1741 |
+
return items.map((item) => {
|
| 1742 |
+
if (isDocumentSymbol(item)) {
|
| 1743 |
+
return toDocumentSymbol(item);
|
| 1744 |
+
}
|
| 1745 |
+
return {
|
| 1746 |
+
name: item.name,
|
| 1747 |
+
detail: "",
|
| 1748 |
+
containerName: item.containerName,
|
| 1749 |
+
kind: toSymbolKind(item.kind),
|
| 1750 |
+
range: toRange(item.location.range),
|
| 1751 |
+
selectionRange: toRange(item.location.range),
|
| 1752 |
+
tags: []
|
| 1753 |
+
};
|
| 1754 |
+
});
|
| 1755 |
+
});
|
| 1756 |
+
}
|
| 1757 |
+
};
|
| 1758 |
+
function isDocumentSymbol(symbol) {
|
| 1759 |
+
return "children" in symbol;
|
| 1760 |
+
}
|
| 1761 |
+
function toDocumentSymbol(symbol) {
|
| 1762 |
+
return {
|
| 1763 |
+
name: symbol.name,
|
| 1764 |
+
detail: symbol.detail ?? "",
|
| 1765 |
+
kind: toSymbolKind(symbol.kind),
|
| 1766 |
+
range: toRange(symbol.range),
|
| 1767 |
+
selectionRange: toRange(symbol.selectionRange),
|
| 1768 |
+
tags: symbol.tags ?? [],
|
| 1769 |
+
children: (symbol.children ?? []).map((item) => toDocumentSymbol(item))
|
| 1770 |
+
};
|
| 1771 |
+
}
|
| 1772 |
+
function toSymbolKind(kind) {
|
| 1773 |
+
let mKind = monaco_editor_core_exports.languages.SymbolKind;
|
| 1774 |
+
switch (kind) {
|
| 1775 |
+
case SymbolKind.File:
|
| 1776 |
+
return mKind.File;
|
| 1777 |
+
case SymbolKind.Module:
|
| 1778 |
+
return mKind.Module;
|
| 1779 |
+
case SymbolKind.Namespace:
|
| 1780 |
+
return mKind.Namespace;
|
| 1781 |
+
case SymbolKind.Package:
|
| 1782 |
+
return mKind.Package;
|
| 1783 |
+
case SymbolKind.Class:
|
| 1784 |
+
return mKind.Class;
|
| 1785 |
+
case SymbolKind.Method:
|
| 1786 |
+
return mKind.Method;
|
| 1787 |
+
case SymbolKind.Property:
|
| 1788 |
+
return mKind.Property;
|
| 1789 |
+
case SymbolKind.Field:
|
| 1790 |
+
return mKind.Field;
|
| 1791 |
+
case SymbolKind.Constructor:
|
| 1792 |
+
return mKind.Constructor;
|
| 1793 |
+
case SymbolKind.Enum:
|
| 1794 |
+
return mKind.Enum;
|
| 1795 |
+
case SymbolKind.Interface:
|
| 1796 |
+
return mKind.Interface;
|
| 1797 |
+
case SymbolKind.Function:
|
| 1798 |
+
return mKind.Function;
|
| 1799 |
+
case SymbolKind.Variable:
|
| 1800 |
+
return mKind.Variable;
|
| 1801 |
+
case SymbolKind.Constant:
|
| 1802 |
+
return mKind.Constant;
|
| 1803 |
+
case SymbolKind.String:
|
| 1804 |
+
return mKind.String;
|
| 1805 |
+
case SymbolKind.Number:
|
| 1806 |
+
return mKind.Number;
|
| 1807 |
+
case SymbolKind.Boolean:
|
| 1808 |
+
return mKind.Boolean;
|
| 1809 |
+
case SymbolKind.Array:
|
| 1810 |
+
return mKind.Array;
|
| 1811 |
+
}
|
| 1812 |
+
return mKind.Function;
|
| 1813 |
+
}
|
| 1814 |
+
var DocumentLinkAdapter = class {
|
| 1815 |
+
constructor(_worker) {
|
| 1816 |
+
this._worker = _worker;
|
| 1817 |
+
}
|
| 1818 |
+
provideLinks(model, token) {
|
| 1819 |
+
const resource = model.uri;
|
| 1820 |
+
return this._worker(resource).then((worker) => worker.findDocumentLinks(resource.toString())).then((items) => {
|
| 1821 |
+
if (!items) {
|
| 1822 |
+
return;
|
| 1823 |
+
}
|
| 1824 |
+
return {
|
| 1825 |
+
links: items.map((item) => ({
|
| 1826 |
+
range: toRange(item.range),
|
| 1827 |
+
url: item.target
|
| 1828 |
+
}))
|
| 1829 |
+
};
|
| 1830 |
+
});
|
| 1831 |
+
}
|
| 1832 |
+
};
|
| 1833 |
+
var DocumentFormattingEditProvider = class {
|
| 1834 |
+
constructor(_worker) {
|
| 1835 |
+
this._worker = _worker;
|
| 1836 |
+
}
|
| 1837 |
+
provideDocumentFormattingEdits(model, options, token) {
|
| 1838 |
+
const resource = model.uri;
|
| 1839 |
+
return this._worker(resource).then((worker) => {
|
| 1840 |
+
return worker.format(resource.toString(), null, fromFormattingOptions(options)).then((edits) => {
|
| 1841 |
+
if (!edits || edits.length === 0) {
|
| 1842 |
+
return;
|
| 1843 |
+
}
|
| 1844 |
+
return edits.map(toTextEdit);
|
| 1845 |
+
});
|
| 1846 |
+
});
|
| 1847 |
+
}
|
| 1848 |
+
};
|
| 1849 |
+
var DocumentRangeFormattingEditProvider = class {
|
| 1850 |
+
constructor(_worker) {
|
| 1851 |
+
this._worker = _worker;
|
| 1852 |
+
this.canFormatMultipleRanges = false;
|
| 1853 |
+
}
|
| 1854 |
+
provideDocumentRangeFormattingEdits(model, range, options, token) {
|
| 1855 |
+
const resource = model.uri;
|
| 1856 |
+
return this._worker(resource).then((worker) => {
|
| 1857 |
+
return worker.format(resource.toString(), fromRange(range), fromFormattingOptions(options)).then((edits) => {
|
| 1858 |
+
if (!edits || edits.length === 0) {
|
| 1859 |
+
return;
|
| 1860 |
+
}
|
| 1861 |
+
return edits.map(toTextEdit);
|
| 1862 |
+
});
|
| 1863 |
+
});
|
| 1864 |
+
}
|
| 1865 |
+
};
|
| 1866 |
+
function fromFormattingOptions(options) {
|
| 1867 |
+
return {
|
| 1868 |
+
tabSize: options.tabSize,
|
| 1869 |
+
insertSpaces: options.insertSpaces
|
| 1870 |
+
};
|
| 1871 |
+
}
|
| 1872 |
+
var DocumentColorAdapter = class {
|
| 1873 |
+
constructor(_worker) {
|
| 1874 |
+
this._worker = _worker;
|
| 1875 |
+
}
|
| 1876 |
+
provideDocumentColors(model, token) {
|
| 1877 |
+
const resource = model.uri;
|
| 1878 |
+
return this._worker(resource).then((worker) => worker.findDocumentColors(resource.toString())).then((infos) => {
|
| 1879 |
+
if (!infos) {
|
| 1880 |
+
return;
|
| 1881 |
+
}
|
| 1882 |
+
return infos.map((item) => ({
|
| 1883 |
+
color: item.color,
|
| 1884 |
+
range: toRange(item.range)
|
| 1885 |
+
}));
|
| 1886 |
+
});
|
| 1887 |
+
}
|
| 1888 |
+
provideColorPresentations(model, info, token) {
|
| 1889 |
+
const resource = model.uri;
|
| 1890 |
+
return this._worker(resource).then(
|
| 1891 |
+
(worker) => worker.getColorPresentations(resource.toString(), info.color, fromRange(info.range))
|
| 1892 |
+
).then((presentations) => {
|
| 1893 |
+
if (!presentations) {
|
| 1894 |
+
return;
|
| 1895 |
+
}
|
| 1896 |
+
return presentations.map((presentation) => {
|
| 1897 |
+
let item = {
|
| 1898 |
+
label: presentation.label
|
| 1899 |
+
};
|
| 1900 |
+
if (presentation.textEdit) {
|
| 1901 |
+
item.textEdit = toTextEdit(presentation.textEdit);
|
| 1902 |
+
}
|
| 1903 |
+
if (presentation.additionalTextEdits) {
|
| 1904 |
+
item.additionalTextEdits = presentation.additionalTextEdits.map(toTextEdit);
|
| 1905 |
+
}
|
| 1906 |
+
return item;
|
| 1907 |
+
});
|
| 1908 |
+
});
|
| 1909 |
+
}
|
| 1910 |
+
};
|
| 1911 |
+
var FoldingRangeAdapter = class {
|
| 1912 |
+
constructor(_worker) {
|
| 1913 |
+
this._worker = _worker;
|
| 1914 |
+
}
|
| 1915 |
+
provideFoldingRanges(model, context, token) {
|
| 1916 |
+
const resource = model.uri;
|
| 1917 |
+
return this._worker(resource).then((worker) => worker.getFoldingRanges(resource.toString(), context)).then((ranges) => {
|
| 1918 |
+
if (!ranges) {
|
| 1919 |
+
return;
|
| 1920 |
+
}
|
| 1921 |
+
return ranges.map((range) => {
|
| 1922 |
+
const result = {
|
| 1923 |
+
start: range.startLine + 1,
|
| 1924 |
+
end: range.endLine + 1
|
| 1925 |
+
};
|
| 1926 |
+
if (typeof range.kind !== "undefined") {
|
| 1927 |
+
result.kind = toFoldingRangeKind(range.kind);
|
| 1928 |
+
}
|
| 1929 |
+
return result;
|
| 1930 |
+
});
|
| 1931 |
+
});
|
| 1932 |
+
}
|
| 1933 |
+
};
|
| 1934 |
+
function toFoldingRangeKind(kind) {
|
| 1935 |
+
switch (kind) {
|
| 1936 |
+
case FoldingRangeKind.Comment:
|
| 1937 |
+
return monaco_editor_core_exports.languages.FoldingRangeKind.Comment;
|
| 1938 |
+
case FoldingRangeKind.Imports:
|
| 1939 |
+
return monaco_editor_core_exports.languages.FoldingRangeKind.Imports;
|
| 1940 |
+
case FoldingRangeKind.Region:
|
| 1941 |
+
return monaco_editor_core_exports.languages.FoldingRangeKind.Region;
|
| 1942 |
+
}
|
| 1943 |
+
return void 0;
|
| 1944 |
+
}
|
| 1945 |
+
var SelectionRangeAdapter = class {
|
| 1946 |
+
constructor(_worker) {
|
| 1947 |
+
this._worker = _worker;
|
| 1948 |
+
}
|
| 1949 |
+
provideSelectionRanges(model, positions, token) {
|
| 1950 |
+
const resource = model.uri;
|
| 1951 |
+
return this._worker(resource).then(
|
| 1952 |
+
(worker) => worker.getSelectionRanges(
|
| 1953 |
+
resource.toString(),
|
| 1954 |
+
positions.map(fromPosition)
|
| 1955 |
+
)
|
| 1956 |
+
).then((selectionRanges) => {
|
| 1957 |
+
if (!selectionRanges) {
|
| 1958 |
+
return;
|
| 1959 |
+
}
|
| 1960 |
+
return selectionRanges.map((selectionRange) => {
|
| 1961 |
+
const result = [];
|
| 1962 |
+
while (selectionRange) {
|
| 1963 |
+
result.push({ range: toRange(selectionRange.range) });
|
| 1964 |
+
selectionRange = selectionRange.parent;
|
| 1965 |
+
}
|
| 1966 |
+
return result;
|
| 1967 |
+
});
|
| 1968 |
+
});
|
| 1969 |
+
}
|
| 1970 |
+
};
|
| 1971 |
+
|
| 1972 |
+
// src/language/html/htmlMode.ts
|
| 1973 |
+
var HTMLCompletionAdapter = class extends CompletionAdapter {
|
| 1974 |
+
constructor(worker) {
|
| 1975 |
+
super(worker, [".", ":", "<", '"', "=", "/"]);
|
| 1976 |
+
}
|
| 1977 |
+
};
|
| 1978 |
+
function setupMode1(defaults) {
|
| 1979 |
+
const client = new WorkerManager(defaults);
|
| 1980 |
+
const worker = (...uris) => {
|
| 1981 |
+
return client.getLanguageServiceWorker(...uris);
|
| 1982 |
+
};
|
| 1983 |
+
let languageId = defaults.languageId;
|
| 1984 |
+
monaco_editor_core_exports.languages.registerCompletionItemProvider(languageId, new HTMLCompletionAdapter(worker));
|
| 1985 |
+
monaco_editor_core_exports.languages.registerHoverProvider(languageId, new HoverAdapter(worker));
|
| 1986 |
+
monaco_editor_core_exports.languages.registerDocumentHighlightProvider(
|
| 1987 |
+
languageId,
|
| 1988 |
+
new DocumentHighlightAdapter(worker)
|
| 1989 |
+
);
|
| 1990 |
+
monaco_editor_core_exports.languages.registerLinkProvider(languageId, new DocumentLinkAdapter(worker));
|
| 1991 |
+
monaco_editor_core_exports.languages.registerFoldingRangeProvider(
|
| 1992 |
+
languageId,
|
| 1993 |
+
new FoldingRangeAdapter(worker)
|
| 1994 |
+
);
|
| 1995 |
+
monaco_editor_core_exports.languages.registerDocumentSymbolProvider(
|
| 1996 |
+
languageId,
|
| 1997 |
+
new DocumentSymbolAdapter(worker)
|
| 1998 |
+
);
|
| 1999 |
+
monaco_editor_core_exports.languages.registerSelectionRangeProvider(
|
| 2000 |
+
languageId,
|
| 2001 |
+
new SelectionRangeAdapter(worker)
|
| 2002 |
+
);
|
| 2003 |
+
monaco_editor_core_exports.languages.registerRenameProvider(languageId, new RenameAdapter(worker));
|
| 2004 |
+
if (languageId === "html") {
|
| 2005 |
+
monaco_editor_core_exports.languages.registerDocumentFormattingEditProvider(
|
| 2006 |
+
languageId,
|
| 2007 |
+
new DocumentFormattingEditProvider(worker)
|
| 2008 |
+
);
|
| 2009 |
+
monaco_editor_core_exports.languages.registerDocumentRangeFormattingEditProvider(
|
| 2010 |
+
languageId,
|
| 2011 |
+
new DocumentRangeFormattingEditProvider(worker)
|
| 2012 |
+
);
|
| 2013 |
+
}
|
| 2014 |
+
}
|
| 2015 |
+
function setupMode(defaults) {
|
| 2016 |
+
const disposables = [];
|
| 2017 |
+
const providers = [];
|
| 2018 |
+
const client = new WorkerManager(defaults);
|
| 2019 |
+
disposables.push(client);
|
| 2020 |
+
const worker = (...uris) => {
|
| 2021 |
+
return client.getLanguageServiceWorker(...uris);
|
| 2022 |
+
};
|
| 2023 |
+
function registerProviders() {
|
| 2024 |
+
const { languageId, modeConfiguration } = defaults;
|
| 2025 |
+
disposeAll(providers);
|
| 2026 |
+
if (modeConfiguration.completionItems) {
|
| 2027 |
+
providers.push(
|
| 2028 |
+
monaco_editor_core_exports.languages.registerCompletionItemProvider(languageId, new HTMLCompletionAdapter(worker))
|
| 2029 |
+
);
|
| 2030 |
+
}
|
| 2031 |
+
if (modeConfiguration.hovers) {
|
| 2032 |
+
providers.push(
|
| 2033 |
+
monaco_editor_core_exports.languages.registerHoverProvider(languageId, new HoverAdapter(worker))
|
| 2034 |
+
);
|
| 2035 |
+
}
|
| 2036 |
+
if (modeConfiguration.documentHighlights) {
|
| 2037 |
+
providers.push(
|
| 2038 |
+
monaco_editor_core_exports.languages.registerDocumentHighlightProvider(
|
| 2039 |
+
languageId,
|
| 2040 |
+
new DocumentHighlightAdapter(worker)
|
| 2041 |
+
)
|
| 2042 |
+
);
|
| 2043 |
+
}
|
| 2044 |
+
if (modeConfiguration.links) {
|
| 2045 |
+
providers.push(
|
| 2046 |
+
monaco_editor_core_exports.languages.registerLinkProvider(languageId, new DocumentLinkAdapter(worker))
|
| 2047 |
+
);
|
| 2048 |
+
}
|
| 2049 |
+
if (modeConfiguration.documentSymbols) {
|
| 2050 |
+
providers.push(
|
| 2051 |
+
monaco_editor_core_exports.languages.registerDocumentSymbolProvider(
|
| 2052 |
+
languageId,
|
| 2053 |
+
new DocumentSymbolAdapter(worker)
|
| 2054 |
+
)
|
| 2055 |
+
);
|
| 2056 |
+
}
|
| 2057 |
+
if (modeConfiguration.rename) {
|
| 2058 |
+
providers.push(
|
| 2059 |
+
monaco_editor_core_exports.languages.registerRenameProvider(languageId, new RenameAdapter(worker))
|
| 2060 |
+
);
|
| 2061 |
+
}
|
| 2062 |
+
if (modeConfiguration.foldingRanges) {
|
| 2063 |
+
providers.push(
|
| 2064 |
+
monaco_editor_core_exports.languages.registerFoldingRangeProvider(
|
| 2065 |
+
languageId,
|
| 2066 |
+
new FoldingRangeAdapter(worker)
|
| 2067 |
+
)
|
| 2068 |
+
);
|
| 2069 |
+
}
|
| 2070 |
+
if (modeConfiguration.selectionRanges) {
|
| 2071 |
+
providers.push(
|
| 2072 |
+
monaco_editor_core_exports.languages.registerSelectionRangeProvider(
|
| 2073 |
+
languageId,
|
| 2074 |
+
new SelectionRangeAdapter(worker)
|
| 2075 |
+
)
|
| 2076 |
+
);
|
| 2077 |
+
}
|
| 2078 |
+
if (modeConfiguration.documentFormattingEdits) {
|
| 2079 |
+
providers.push(
|
| 2080 |
+
monaco_editor_core_exports.languages.registerDocumentFormattingEditProvider(
|
| 2081 |
+
languageId,
|
| 2082 |
+
new DocumentFormattingEditProvider(worker)
|
| 2083 |
+
)
|
| 2084 |
+
);
|
| 2085 |
+
}
|
| 2086 |
+
if (modeConfiguration.documentRangeFormattingEdits) {
|
| 2087 |
+
providers.push(
|
| 2088 |
+
monaco_editor_core_exports.languages.registerDocumentRangeFormattingEditProvider(
|
| 2089 |
+
languageId,
|
| 2090 |
+
new DocumentRangeFormattingEditProvider(worker)
|
| 2091 |
+
)
|
| 2092 |
+
);
|
| 2093 |
+
}
|
| 2094 |
+
}
|
| 2095 |
+
registerProviders();
|
| 2096 |
+
disposables.push(asDisposable(providers));
|
| 2097 |
+
return asDisposable(disposables);
|
| 2098 |
+
}
|
| 2099 |
+
function asDisposable(disposables) {
|
| 2100 |
+
return { dispose: () => disposeAll(disposables) };
|
| 2101 |
+
}
|
| 2102 |
+
function disposeAll(disposables) {
|
| 2103 |
+
while (disposables.length) {
|
| 2104 |
+
disposables.pop().dispose();
|
| 2105 |
+
}
|
| 2106 |
+
}
|
| 2107 |
+
return __toCommonJS(htmlMode_exports);
|
| 2108 |
+
})();
|
| 2109 |
+
return moduleExports;
|
| 2110 |
+
});
|