monaco-editor11 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/abap-CrvW7_qN.mjs +1398 -0
  2. package/dist/apex-BAOI8p1v.mjs +327 -0
  3. package/dist/assets/html.worker-C8VxctEJ.js +470 -0
  4. package/dist/azcli-BlCk_UqW.mjs +68 -0
  5. package/dist/bat-DPoEelVx.mjs +100 -0
  6. package/dist/bicep-Cp1F394l.mjs +102 -0
  7. package/dist/cameligo-CWqtSlQs.mjs +174 -0
  8. package/dist/clojure-CKBp32Gf.mjs +761 -0
  9. package/dist/coffee-CDo6vc-J.mjs +232 -0
  10. package/dist/cpp-DokufPgf.mjs +389 -0
  11. package/dist/csharp-BQi3szM0.mjs +326 -0
  12. package/dist/csp-BSGtCCZ-.mjs +53 -0
  13. package/dist/css-DEPFDJfb.mjs +187 -0
  14. package/dist/cssMode-BQ5BKBAY.mjs +141 -0
  15. package/dist/cypher-DAb1vOxS.mjs +263 -0
  16. package/dist/dart-C8p4jewR.mjs +281 -0
  17. package/dist/dockerfile-DP0iLFPN.mjs +130 -0
  18. package/dist/ecl-BDQHA6fi.mjs +456 -0
  19. package/dist/elixir-D4II6kDM.mjs +569 -0
  20. package/dist/environment.d.ts +1 -1
  21. package/dist/flow9-StcnL-VB.mjs +142 -0
  22. package/dist/freemarker2-6GYcye2r.mjs +982 -0
  23. package/dist/fsharp-DdUVp3EN.mjs +217 -0
  24. package/dist/go-D1-I258M.mjs +218 -0
  25. package/dist/graphql-DWkL3f8U.mjs +151 -0
  26. package/dist/handlebars-5_7gZ3QS.mjs +412 -0
  27. package/dist/hcl-D_0MNifv.mjs +183 -0
  28. package/dist/html-2thNXsIu.mjs +301 -0
  29. package/dist/htmlMode-Dmqis0oY.mjs +152 -0
  30. package/dist/index-CiIcpngo.mjs +128785 -0
  31. package/dist/index.d.ts +1 -7
  32. package/dist/ini-C4I2-MT7.mjs +71 -0
  33. package/dist/java-OBvaP_SS.mjs +232 -0
  34. package/dist/javascript-DGu9heQ1.mjs +70 -0
  35. package/dist/jsonMode-BHf-60PU.mjs +577 -0
  36. package/dist/julia-BmDH8Kkf.mjs +511 -0
  37. package/dist/kotlin-Dhu5AGOD.mjs +252 -0
  38. package/dist/less-CzmjXREq.mjs +162 -0
  39. package/dist/lexon-CV2c4pN9.mjs +157 -0
  40. package/dist/liquid-B6d5eZ0w.mjs +233 -0
  41. package/dist/lspLanguageFeatures-CQ-4g5T6.mjs +1458 -0
  42. package/dist/lua-CFY5U8qF.mjs +162 -0
  43. package/dist/m3-BL_AnZVh.mjs +210 -0
  44. package/dist/markdown-CWKQPXCv.mjs +229 -0
  45. package/dist/mdx-Dc2EzqW9.mjs +158 -0
  46. package/dist/mips-ButYmJ5E.mjs +198 -0
  47. package/dist/monaco-editor11.css +1 -0
  48. package/dist/monaco-editor11.es.js +21 -58
  49. package/dist/monaco-editor11.umd.js +1234 -1
  50. package/dist/monacoeditorwork/css.worker.bundle.js +54271 -0
  51. package/dist/monacoeditorwork/editor.worker..bundle.js +14319 -0
  52. package/dist/monacoeditorwork/json.worker.bundle.js +22098 -0
  53. package/dist/monacoeditorwork/ts.worker.bundle.js +225960 -0
  54. package/dist/msdax-C3cnXqDh.mjs +375 -0
  55. package/dist/mysql-YlSHaf6G.mjs +878 -0
  56. package/dist/objective-c-Dwnlproe.mjs +183 -0
  57. package/dist/pascal-UzGbSWEN.mjs +251 -0
  58. package/dist/pascaligo-CslTgu68.mjs +164 -0
  59. package/dist/perl-oj6r_mgw.mjs +626 -0
  60. package/dist/pgsql-DSBO0Mev.mjs +851 -0
  61. package/dist/php-YzCD--7j.mjs +500 -0
  62. package/dist/pla-CmylB8vQ.mjs +137 -0
  63. package/dist/postiats-CLFW5gNY.mjs +907 -0
  64. package/dist/powerquery-CmOWUvlh.mjs +890 -0
  65. package/dist/powershell-fHQcmBLK.mjs +239 -0
  66. package/dist/protobuf-p5BArb-9.mjs +420 -0
  67. package/dist/pug-gVdUDvqf.mjs +402 -0
  68. package/dist/python-BN7PRYMW.mjs +294 -0
  69. package/dist/qsharp-DnrWSUlt.mjs +301 -0
  70. package/dist/r-Cv309K2z.mjs +243 -0
  71. package/dist/razor-amsYwW3e.mjs +543 -0
  72. package/dist/redis-DTcS4wMj.mjs +302 -0
  73. package/dist/redshift-hLxZVESM.mjs +809 -0
  74. package/dist/restructuredtext-C898lK4f.mjs +174 -0
  75. package/dist/ruby-CgKtnJIQ.mjs +511 -0
  76. package/dist/rust-bj8oxVnh.mjs +343 -0
  77. package/dist/sb-DWynz26l.mjs +115 -0
  78. package/dist/scala-BL5z1UEd.mjs +370 -0
  79. package/dist/scheme-DUJsH6VU.mjs +108 -0
  80. package/dist/scss-CxjmhvaL.mjs +262 -0
  81. package/dist/shell-D14Zs1dF.mjs +221 -0
  82. package/dist/solidity-WyRm-BGK.mjs +1367 -0
  83. package/dist/sophia-CKk-_Oa5.mjs +199 -0
  84. package/dist/sparql-DHtmINMZ.mjs +201 -0
  85. package/dist/sql-Dqaj5JHC.mjs +853 -0
  86. package/dist/st-Bj2IIaop.mjs +416 -0
  87. package/dist/swift-DwxP72iM.mjs +312 -0
  88. package/dist/systemverilog-D7wJfuql.mjs +576 -0
  89. package/dist/tcl-0ApMt-eC.mjs +232 -0
  90. package/dist/tsMode-CfGJAg8A.mjs +946 -0
  91. package/dist/twig-DxwbdmvQ.mjs +392 -0
  92. package/dist/typescript-BkqvjzTg.mjs +336 -0
  93. package/dist/typespec-Fd-JwSuS.mjs +117 -0
  94. package/dist/vb-CxuyYE1I.mjs +372 -0
  95. package/dist/wgsl-DoEGc31J.mjs +439 -0
  96. package/dist/xml-BE08lKLg.mjs +88 -0
  97. package/dist/yaml-DaPfb7D4.mjs +199 -0
  98. package/package.json +3 -2
@@ -0,0 +1,301 @@
1
+ const e = {
2
+ comments: {
3
+ lineComment: "//"
4
+ },
5
+ brackets: [
6
+ ["{", "}"],
7
+ ["[", "]"],
8
+ ["(", ")"]
9
+ ],
10
+ autoClosingPairs: [
11
+ { open: "{", close: "}" },
12
+ { open: "[", close: "]" },
13
+ { open: "(", close: ")" },
14
+ { open: '"', close: '"', notIn: ["string", "comment"] }
15
+ ],
16
+ surroundingPairs: [
17
+ { open: "{", close: "}" },
18
+ { open: "[", close: "]" },
19
+ { open: "(", close: ")" },
20
+ { open: '"', close: '"' }
21
+ ]
22
+ }, t = {
23
+ // Set defaultToken to invalid to see what you do not tokenize yet
24
+ keywords: [
25
+ "namespace",
26
+ "open",
27
+ "import",
28
+ "export",
29
+ "as",
30
+ "operation",
31
+ "function",
32
+ "body",
33
+ "adjoint",
34
+ "newtype",
35
+ "struct",
36
+ "controlled",
37
+ "if",
38
+ "elif",
39
+ "else",
40
+ "repeat",
41
+ "until",
42
+ "fixup",
43
+ "for",
44
+ "in",
45
+ "while",
46
+ "return",
47
+ "fail",
48
+ "within",
49
+ "apply",
50
+ "Adjoint",
51
+ "Controlled",
52
+ "Adj",
53
+ "Ctl",
54
+ "is",
55
+ "self",
56
+ "auto",
57
+ "distribute",
58
+ "invert",
59
+ "intrinsic",
60
+ "let",
61
+ "set",
62
+ "w/",
63
+ "new",
64
+ "not",
65
+ "and",
66
+ "or",
67
+ "use",
68
+ "borrow",
69
+ "using",
70
+ "borrowing",
71
+ "mutable",
72
+ "internal"
73
+ ],
74
+ typeKeywords: [
75
+ "Unit",
76
+ "Int",
77
+ "BigInt",
78
+ "Double",
79
+ "Bool",
80
+ "String",
81
+ "Qubit",
82
+ "Result",
83
+ "Pauli",
84
+ "Range"
85
+ ],
86
+ invalidKeywords: [
87
+ "abstract",
88
+ "base",
89
+ "bool",
90
+ "break",
91
+ "byte",
92
+ "case",
93
+ "catch",
94
+ "char",
95
+ "checked",
96
+ "class",
97
+ "const",
98
+ "continue",
99
+ "decimal",
100
+ "default",
101
+ "delegate",
102
+ "do",
103
+ "double",
104
+ "enum",
105
+ "event",
106
+ "explicit",
107
+ "extern",
108
+ "finally",
109
+ "fixed",
110
+ "float",
111
+ "foreach",
112
+ "goto",
113
+ "implicit",
114
+ "int",
115
+ "interface",
116
+ "lock",
117
+ "long",
118
+ "null",
119
+ "object",
120
+ "operator",
121
+ "out",
122
+ "override",
123
+ "params",
124
+ "private",
125
+ "protected",
126
+ "public",
127
+ "readonly",
128
+ "ref",
129
+ "sbyte",
130
+ "sealed",
131
+ "short",
132
+ "sizeof",
133
+ "stackalloc",
134
+ "static",
135
+ "string",
136
+ "switch",
137
+ "this",
138
+ "throw",
139
+ "try",
140
+ "typeof",
141
+ "unit",
142
+ "ulong",
143
+ "unchecked",
144
+ "unsafe",
145
+ "ushort",
146
+ "virtual",
147
+ "void",
148
+ "volatile"
149
+ ],
150
+ constants: ["true", "false", "PauliI", "PauliX", "PauliY", "PauliZ", "One", "Zero"],
151
+ builtin: [
152
+ "X",
153
+ "Y",
154
+ "Z",
155
+ "H",
156
+ "HY",
157
+ "S",
158
+ "T",
159
+ "SWAP",
160
+ "CNOT",
161
+ "CCNOT",
162
+ "MultiX",
163
+ "R",
164
+ "RFrac",
165
+ "Rx",
166
+ "Ry",
167
+ "Rz",
168
+ "R1",
169
+ "R1Frac",
170
+ "Exp",
171
+ "ExpFrac",
172
+ "Measure",
173
+ "M",
174
+ "MultiM",
175
+ "Message",
176
+ "Length",
177
+ "Assert",
178
+ "AssertProb",
179
+ "AssertEqual"
180
+ ],
181
+ operators: [
182
+ "and=",
183
+ "<-",
184
+ "->",
185
+ "*",
186
+ "*=",
187
+ "@",
188
+ "!",
189
+ "^",
190
+ "^=",
191
+ ":",
192
+ "::",
193
+ ".",
194
+ "..",
195
+ "==",
196
+ "...",
197
+ "=",
198
+ "=>",
199
+ ">",
200
+ ">=",
201
+ "<",
202
+ "<=",
203
+ "-",
204
+ "-=",
205
+ "!=",
206
+ "or=",
207
+ "%",
208
+ "%=",
209
+ "|",
210
+ "+",
211
+ "+=",
212
+ "?",
213
+ "/",
214
+ "/=",
215
+ "&&&",
216
+ "&&&=",
217
+ "^^^",
218
+ "^^^=",
219
+ ">>>",
220
+ ">>>=",
221
+ "<<<",
222
+ "<<<=",
223
+ "|||",
224
+ "|||=",
225
+ "~~~",
226
+ "_",
227
+ "w/",
228
+ "w/="
229
+ ],
230
+ namespaceFollows: ["namespace", "open"],
231
+ importsFollows: ["import"],
232
+ symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
233
+ escapes: /\\[\s\S]/,
234
+ // The main tokenizer for our languages
235
+ tokenizer: {
236
+ root: [
237
+ // identifiers and keywords
238
+ [
239
+ /[a-zA-Z_$][\w$]*/,
240
+ {
241
+ cases: {
242
+ "@namespaceFollows": {
243
+ token: "keyword.$0",
244
+ next: "@namespace"
245
+ },
246
+ "@importsFollows": {
247
+ token: "keyword.$0",
248
+ next: "@imports"
249
+ },
250
+ "@typeKeywords": "type",
251
+ "@keywords": "keyword",
252
+ "@constants": "constant",
253
+ "@builtin": "keyword",
254
+ "@invalidKeywords": "invalid",
255
+ "@default": "identifier"
256
+ }
257
+ }
258
+ ],
259
+ // whitespace
260
+ { include: "@whitespace" },
261
+ // delimiters and operators
262
+ [/[{}()\[\]]/, "@brackets"],
263
+ [/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
264
+ // numbers
265
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
266
+ [/\d+/, "number"],
267
+ // delimiter: after number because of .\d floats
268
+ [/[;,.]/, "delimiter"],
269
+ // strings
270
+ //[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-terminated string
271
+ [/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
272
+ ],
273
+ string: [
274
+ [/[^\\"]+/, "string"],
275
+ [/@escapes/, "string.escape"],
276
+ [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
277
+ ],
278
+ namespace: [
279
+ { include: "@whitespace" },
280
+ [/[A-Za-z]\w*/, "namespace"],
281
+ [/[\.]/, "delimiter"],
282
+ ["", "", "@pop"]
283
+ ],
284
+ imports: [
285
+ { include: "@whitespace" },
286
+ [/[A-Za-z]\w*(?=\.)/, "namespace"],
287
+ [/[A-Za-z]\w*/, "identifier"],
288
+ [/\*/, "wildcard"],
289
+ [/[\.,]/, "delimiter"],
290
+ ["", "", "@pop"]
291
+ ],
292
+ whitespace: [
293
+ [/[ \t\r\n]+/, "white"],
294
+ [/(\/\/).*/, "comment"]
295
+ ]
296
+ }
297
+ };
298
+ export {
299
+ e as conf,
300
+ t as language
301
+ };
@@ -0,0 +1,243 @@
1
+ const e = {
2
+ comments: {
3
+ lineComment: "#"
4
+ },
5
+ brackets: [
6
+ ["{", "}"],
7
+ ["[", "]"],
8
+ ["(", ")"]
9
+ ],
10
+ autoClosingPairs: [
11
+ { open: "{", close: "}" },
12
+ { open: "[", close: "]" },
13
+ { open: "(", close: ")" },
14
+ { open: '"', close: '"' }
15
+ ],
16
+ surroundingPairs: [
17
+ { open: "{", close: "}" },
18
+ { open: "[", close: "]" },
19
+ { open: "(", close: ")" },
20
+ { open: '"', close: '"' }
21
+ ]
22
+ }, o = {
23
+ defaultToken: "",
24
+ tokenPostfix: ".r",
25
+ roxygen: [
26
+ "@alias",
27
+ "@aliases",
28
+ "@assignee",
29
+ "@author",
30
+ "@backref",
31
+ "@callGraph",
32
+ "@callGraphDepth",
33
+ "@callGraphPrimitives",
34
+ "@concept",
35
+ "@describeIn",
36
+ "@description",
37
+ "@details",
38
+ "@docType",
39
+ "@encoding",
40
+ "@evalNamespace",
41
+ "@evalRd",
42
+ "@example",
43
+ "@examples",
44
+ "@export",
45
+ "@exportClass",
46
+ "@exportMethod",
47
+ "@exportPattern",
48
+ "@family",
49
+ "@field",
50
+ "@formals",
51
+ "@format",
52
+ "@import",
53
+ "@importClassesFrom",
54
+ "@importFrom",
55
+ "@importMethodsFrom",
56
+ "@include",
57
+ "@inherit",
58
+ "@inheritDotParams",
59
+ "@inheritParams",
60
+ "@inheritSection",
61
+ "@keywords",
62
+ "@md",
63
+ "@method",
64
+ "@name",
65
+ "@noMd",
66
+ "@noRd",
67
+ "@note",
68
+ "@param",
69
+ "@rawNamespace",
70
+ "@rawRd",
71
+ "@rdname",
72
+ "@references",
73
+ "@return",
74
+ "@S3method",
75
+ "@section",
76
+ "@seealso",
77
+ "@setClass",
78
+ "@slot",
79
+ "@source",
80
+ "@template",
81
+ "@templateVar",
82
+ "@title",
83
+ "@TODO",
84
+ "@usage",
85
+ "@useDynLib"
86
+ ],
87
+ constants: [
88
+ "NULL",
89
+ "FALSE",
90
+ "TRUE",
91
+ "NA",
92
+ "Inf",
93
+ "NaN",
94
+ "NA_integer_",
95
+ "NA_real_",
96
+ "NA_complex_",
97
+ "NA_character_",
98
+ "T",
99
+ "F",
100
+ "LETTERS",
101
+ "letters",
102
+ "month.abb",
103
+ "month.name",
104
+ "pi",
105
+ "R.version.string"
106
+ ],
107
+ keywords: [
108
+ "break",
109
+ "next",
110
+ "return",
111
+ "if",
112
+ "else",
113
+ "for",
114
+ "in",
115
+ "repeat",
116
+ "while",
117
+ "array",
118
+ "category",
119
+ "character",
120
+ "complex",
121
+ "double",
122
+ "function",
123
+ "integer",
124
+ "list",
125
+ "logical",
126
+ "matrix",
127
+ "numeric",
128
+ "vector",
129
+ "data.frame",
130
+ "factor",
131
+ "library",
132
+ "require",
133
+ "attach",
134
+ "detach",
135
+ "source"
136
+ ],
137
+ special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"],
138
+ brackets: [
139
+ { open: "{", close: "}", token: "delimiter.curly" },
140
+ { open: "[", close: "]", token: "delimiter.bracket" },
141
+ { open: "(", close: ")", token: "delimiter.parenthesis" }
142
+ ],
143
+ tokenizer: {
144
+ root: [
145
+ { include: "@numbers" },
146
+ { include: "@strings" },
147
+ [/[{}\[\]()]/, "@brackets"],
148
+ { include: "@operators" },
149
+ [/#'$/, "comment.doc"],
150
+ [/#'/, "comment.doc", "@roxygen"],
151
+ [/(^#.*$)/, "comment"],
152
+ [/\s+/, "white"],
153
+ [/[,:;]/, "delimiter"],
154
+ [/@[a-zA-Z]\w*/, "tag"],
155
+ [
156
+ /[a-zA-Z]\w*/,
157
+ {
158
+ cases: {
159
+ "@keywords": "keyword",
160
+ "@constants": "constant",
161
+ "@default": "identifier"
162
+ }
163
+ }
164
+ ]
165
+ ],
166
+ // Recognize Roxygen comments
167
+ roxygen: [
168
+ [
169
+ /@\w+/,
170
+ {
171
+ cases: {
172
+ "@roxygen": "tag",
173
+ "@eos": { token: "comment.doc", next: "@pop" },
174
+ "@default": "comment.doc"
175
+ }
176
+ }
177
+ ],
178
+ [
179
+ /\s+/,
180
+ {
181
+ cases: {
182
+ "@eos": { token: "comment.doc", next: "@pop" },
183
+ "@default": "comment.doc"
184
+ }
185
+ }
186
+ ],
187
+ [/.*/, { token: "comment.doc", next: "@pop" }]
188
+ ],
189
+ // Recognize positives, negatives, decimals, imaginaries, and scientific notation
190
+ numbers: [
191
+ [/0[xX][0-9a-fA-F]+/, "number.hex"],
192
+ [/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
193
+ ],
194
+ // Recognize operators
195
+ operators: [
196
+ [/<{1,2}-/, "operator"],
197
+ [/->{1,2}/, "operator"],
198
+ [/%[^%\s]+%/, "operator"],
199
+ [/\*\*/, "operator"],
200
+ [/%%/, "operator"],
201
+ [/&&/, "operator"],
202
+ [/\|\|/, "operator"],
203
+ [/<</, "operator"],
204
+ [/>>/, "operator"],
205
+ [/[-+=&|!<>^~*/:$]/, "operator"]
206
+ ],
207
+ // Recognize strings, including those broken across lines
208
+ strings: [
209
+ [/'/, "string.escape", "@stringBody"],
210
+ [/"/, "string.escape", "@dblStringBody"]
211
+ ],
212
+ stringBody: [
213
+ [
214
+ /\\./,
215
+ {
216
+ cases: {
217
+ "@special": "string",
218
+ "@default": "error-token"
219
+ }
220
+ }
221
+ ],
222
+ [/'/, "string.escape", "@popall"],
223
+ [/./, "string"]
224
+ ],
225
+ dblStringBody: [
226
+ [
227
+ /\\./,
228
+ {
229
+ cases: {
230
+ "@special": "string",
231
+ "@default": "error-token"
232
+ }
233
+ }
234
+ ],
235
+ [/"/, "string.escape", "@popall"],
236
+ [/./, "string"]
237
+ ]
238
+ }
239
+ };
240
+ export {
241
+ e as conf,
242
+ o as language
243
+ };