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
package/dist/index.d.ts CHANGED
@@ -1,9 +1,4 @@
1
- import { default as editorWorker } from 'monaco-editor/esm/vs/editor/editor.worker?worker';
2
- import { default as jsonWorker } from 'monaco-editor/esm/vs/language/json/json.worker?worker';
3
- import { default as cssWorker } from 'monaco-editor/esm/vs/language/css/css.worker?worker';
4
- import { default as tsWorker } from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker';
5
- import * as monaco from 'monaco-editor';
6
- export { editorWorker, jsonWorker, cssWorker, tsWorker, monaco };
1
+ export * from 'monaco-editor';
7
2
  declare global {
8
3
  interface Window {
9
4
  MonacoEnvironment?: {
@@ -11,4 +6,3 @@ declare global {
11
6
  };
12
7
  }
13
8
  }
14
- export declare function setupMonacoEnvironment(): void;
@@ -0,0 +1,71 @@
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
+ { open: "'", close: "'" }
16
+ ],
17
+ surroundingPairs: [
18
+ { open: "{", close: "}" },
19
+ { open: "[", close: "]" },
20
+ { open: "(", close: ")" },
21
+ { open: '"', close: '"' },
22
+ { open: "'", close: "'" }
23
+ ]
24
+ }, n = {
25
+ defaultToken: "",
26
+ tokenPostfix: ".ini",
27
+ // we include these common regular expressions
28
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
29
+ // The main tokenizer for our languages
30
+ tokenizer: {
31
+ root: [
32
+ // sections
33
+ [/^\[[^\]]*\]/, "metatag"],
34
+ // keys
35
+ [/(^\w+)(\s*)(\=)/, ["key", "", "delimiter"]],
36
+ // whitespace
37
+ { include: "@whitespace" },
38
+ // numbers
39
+ [/\d+/, "number"],
40
+ // strings: recover on non-terminated strings
41
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
42
+ // non-teminated string
43
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
44
+ // non-teminated string
45
+ [/"/, "string", '@string."'],
46
+ [/'/, "string", "@string.'"]
47
+ ],
48
+ whitespace: [
49
+ [/[ \t\r\n]+/, ""],
50
+ [/^\s*[#;].*$/, "comment"]
51
+ ],
52
+ string: [
53
+ [/[^\\"']+/, "string"],
54
+ [/@escapes/, "string.escape"],
55
+ [/\\./, "string.escape.invalid"],
56
+ [
57
+ /["']/,
58
+ {
59
+ cases: {
60
+ "$#==$S2": { token: "string", next: "@pop" },
61
+ "@default": "string"
62
+ }
63
+ }
64
+ ]
65
+ ]
66
+ }
67
+ };
68
+ export {
69
+ e as conf,
70
+ n as language
71
+ };
@@ -0,0 +1,232 @@
1
+ const e = {
2
+ // the default separators except `@$`
3
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
4
+ comments: {
5
+ lineComment: "//",
6
+ blockComment: ["/*", "*/"]
7
+ },
8
+ brackets: [
9
+ ["{", "}"],
10
+ ["[", "]"],
11
+ ["(", ")"]
12
+ ],
13
+ autoClosingPairs: [
14
+ { open: "{", close: "}" },
15
+ { open: "[", close: "]" },
16
+ { open: "(", close: ")" },
17
+ { open: '"', close: '"' },
18
+ { open: "'", close: "'" }
19
+ ],
20
+ surroundingPairs: [
21
+ { open: "{", close: "}" },
22
+ { open: "[", close: "]" },
23
+ { open: "(", close: ")" },
24
+ { open: '"', close: '"' },
25
+ { open: "'", close: "'" },
26
+ { open: "<", close: ">" }
27
+ ],
28
+ folding: {
29
+ markers: {
30
+ start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
31
+ end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
32
+ }
33
+ }
34
+ }, t = {
35
+ defaultToken: "",
36
+ tokenPostfix: ".java",
37
+ keywords: [
38
+ "abstract",
39
+ "continue",
40
+ "for",
41
+ "new",
42
+ "switch",
43
+ "assert",
44
+ "default",
45
+ "goto",
46
+ "package",
47
+ "synchronized",
48
+ "boolean",
49
+ "do",
50
+ "if",
51
+ "private",
52
+ "this",
53
+ "break",
54
+ "double",
55
+ "implements",
56
+ "protected",
57
+ "throw",
58
+ "byte",
59
+ "else",
60
+ "import",
61
+ "public",
62
+ "throws",
63
+ "case",
64
+ "enum",
65
+ "instanceof",
66
+ "return",
67
+ "transient",
68
+ "catch",
69
+ "extends",
70
+ "int",
71
+ "short",
72
+ "try",
73
+ "char",
74
+ "final",
75
+ "interface",
76
+ "static",
77
+ "void",
78
+ "class",
79
+ "finally",
80
+ "long",
81
+ "strictfp",
82
+ "volatile",
83
+ "const",
84
+ "float",
85
+ "native",
86
+ "super",
87
+ "while",
88
+ "true",
89
+ "false",
90
+ "yield",
91
+ "record",
92
+ "sealed",
93
+ "non-sealed",
94
+ "permits"
95
+ ],
96
+ operators: [
97
+ "=",
98
+ ">",
99
+ "<",
100
+ "!",
101
+ "~",
102
+ "?",
103
+ ":",
104
+ "==",
105
+ "<=",
106
+ ">=",
107
+ "!=",
108
+ "&&",
109
+ "||",
110
+ "++",
111
+ "--",
112
+ "+",
113
+ "-",
114
+ "*",
115
+ "/",
116
+ "&",
117
+ "|",
118
+ "^",
119
+ "%",
120
+ "<<",
121
+ ">>",
122
+ ">>>",
123
+ "+=",
124
+ "-=",
125
+ "*=",
126
+ "/=",
127
+ "&=",
128
+ "|=",
129
+ "^=",
130
+ "%=",
131
+ "<<=",
132
+ ">>=",
133
+ ">>>="
134
+ ],
135
+ // we include these common regular expressions
136
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
137
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
138
+ digits: /\d+(_+\d+)*/,
139
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
140
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
141
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
142
+ // The main tokenizer for our languages
143
+ tokenizer: {
144
+ root: [
145
+ // Special keyword with a dash
146
+ ["non-sealed", "keyword.non-sealed"],
147
+ // identifiers and keywords
148
+ [
149
+ /[a-zA-Z_$][\w$]*/,
150
+ {
151
+ cases: {
152
+ "@keywords": { token: "keyword.$0" },
153
+ "@default": "identifier"
154
+ }
155
+ }
156
+ ],
157
+ // whitespace
158
+ { include: "@whitespace" },
159
+ // delimiters and operators
160
+ [/[{}()\[\]]/, "@brackets"],
161
+ [/[<>](?!@symbols)/, "@brackets"],
162
+ [
163
+ /@symbols/,
164
+ {
165
+ cases: {
166
+ "@operators": "delimiter",
167
+ "@default": ""
168
+ }
169
+ }
170
+ ],
171
+ // @ annotations.
172
+ [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
173
+ // numbers
174
+ [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
175
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
176
+ [/0[xX](@hexdigits)[Ll]?/, "number.hex"],
177
+ [/0(@octaldigits)[Ll]?/, "number.octal"],
178
+ [/0[bB](@binarydigits)[Ll]?/, "number.binary"],
179
+ [/(@digits)[fFdD]/, "number.float"],
180
+ [/(@digits)[lL]?/, "number"],
181
+ // delimiter: after number because of .\d floats
182
+ [/[;,.]/, "delimiter"],
183
+ // strings
184
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
185
+ // non-teminated string
186
+ [/"""/, "string", "@multistring"],
187
+ [/"/, "string", "@string"],
188
+ // characters
189
+ [/'[^\\']'/, "string"],
190
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
191
+ [/'/, "string.invalid"]
192
+ ],
193
+ whitespace: [
194
+ [/[ \t\r\n]+/, ""],
195
+ [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
196
+ [/\/\*/, "comment", "@comment"],
197
+ [/\/\/.*$/, "comment"]
198
+ ],
199
+ comment: [
200
+ [/[^\/*]+/, "comment"],
201
+ // [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
202
+ // [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
203
+ [/\*\//, "comment", "@pop"],
204
+ [/[\/*]/, "comment"]
205
+ ],
206
+ //Identical copy of comment above, except for the addition of .doc
207
+ javadoc: [
208
+ [/[^\/*]+/, "comment.doc"],
209
+ // [/\/\*/, 'comment.doc', '@push' ], // nested comment not allowed :-(
210
+ [/\/\*/, "comment.doc.invalid"],
211
+ [/\*\//, "comment.doc", "@pop"],
212
+ [/[\/*]/, "comment.doc"]
213
+ ],
214
+ string: [
215
+ [/[^\\"]+/, "string"],
216
+ [/@escapes/, "string.escape"],
217
+ [/\\./, "string.escape.invalid"],
218
+ [/"/, "string", "@pop"]
219
+ ],
220
+ multistring: [
221
+ [/[^\\"]+/, "string"],
222
+ [/@escapes/, "string.escape"],
223
+ [/\\./, "string.escape.invalid"],
224
+ [/"""/, "string", "@pop"],
225
+ [/./, "string"]
226
+ ]
227
+ }
228
+ };
229
+ export {
230
+ e as conf,
231
+ t as language
232
+ };
@@ -0,0 +1,70 @@
1
+ import { conf as t, language as e } from "./typescript-BkqvjzTg.mjs";
2
+ const i = t, o = {
3
+ // Set defaultToken to invalid to see what you do not tokenize yet
4
+ defaultToken: "invalid",
5
+ tokenPostfix: ".js",
6
+ keywords: [
7
+ "break",
8
+ "case",
9
+ "catch",
10
+ "class",
11
+ "continue",
12
+ "const",
13
+ "constructor",
14
+ "debugger",
15
+ "default",
16
+ "delete",
17
+ "do",
18
+ "else",
19
+ "export",
20
+ "extends",
21
+ "false",
22
+ "finally",
23
+ "for",
24
+ "from",
25
+ "function",
26
+ "get",
27
+ "if",
28
+ "import",
29
+ "in",
30
+ "instanceof",
31
+ "let",
32
+ "new",
33
+ "null",
34
+ "return",
35
+ "set",
36
+ "static",
37
+ "super",
38
+ "switch",
39
+ "symbol",
40
+ "this",
41
+ "throw",
42
+ "true",
43
+ "try",
44
+ "typeof",
45
+ "undefined",
46
+ "var",
47
+ "void",
48
+ "while",
49
+ "with",
50
+ "yield",
51
+ "async",
52
+ "await",
53
+ "of"
54
+ ],
55
+ typeKeywords: [],
56
+ operators: e.operators,
57
+ symbols: e.symbols,
58
+ escapes: e.escapes,
59
+ digits: e.digits,
60
+ octaldigits: e.octaldigits,
61
+ binarydigits: e.binarydigits,
62
+ hexdigits: e.hexdigits,
63
+ regexpctl: e.regexpctl,
64
+ regexpesc: e.regexpesc,
65
+ tokenizer: e.tokenizer
66
+ };
67
+ export {
68
+ i as conf,
69
+ o as language
70
+ };