monacozen 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +124 -0
  2. package/assets/antimono-ClsI0fxy.js +5 -0
  3. package/assets/antimono-zBXMptjq.css +1 -0
  4. package/assets/azcli-ue5GhsHI.js +55 -0
  5. package/assets/bat-C6DzPBcU.js +125 -0
  6. package/assets/bicep-B6UDBWZN.js +220 -0
  7. package/assets/cameligo-BoKy-zSd.js +191 -0
  8. package/assets/clojure-D8WHGr6v.js +148 -0
  9. package/assets/coffee-C16Mnhbm.js +262 -0
  10. package/assets/cpp-_HbkGdoj.js +232 -0
  11. package/assets/csharp-DeGXkEgi.js +262 -0
  12. package/assets/csp-DGVEba9U.js +48 -0
  13. package/assets/css-DmO2GtiT.js +286 -0
  14. package/assets/css.worker-B59bB4vF.js +6 -0
  15. package/assets/css.worker-zFzGcGyJ.js +96 -0
  16. package/assets/cssMode-B-yiAIn5.js +65 -0
  17. package/assets/cypher-5654EJL_.js +214 -0
  18. package/assets/dart-BjXVSQM-.js +238 -0
  19. package/assets/dist-Bx9hOuoB.js +624 -0
  20. package/assets/dockerfile-DSA8TJLS.js +193 -0
  21. package/assets/ecl-DoDWSDGs.js +228 -0
  22. package/assets/editor.api-C_6h_pYy.js +83476 -0
  23. package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
  24. package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
  25. package/assets/elixir-CzC02SL7.js +525 -0
  26. package/assets/freemarker2-Jvnudjht.js +718 -0
  27. package/assets/fsharp-DRGCXPNW.js +149 -0
  28. package/assets/go-CyErB8P9.js +167 -0
  29. package/assets/graphql-CNnvnjR8.js +176 -0
  30. package/assets/handlebars-B9HHtHT5.js +412 -0
  31. package/assets/hcl-D4a6HBjk.js +221 -0
  32. package/assets/html-B5_5MvV-.js +333 -0
  33. package/assets/html.worker-Czi9KUKj.js +6 -0
  34. package/assets/html.worker-D4M1xqlZ.js +509 -0
  35. package/assets/htmlMode-DcETbRqN.js +74 -0
  36. package/assets/ini-CpSjysbn.js +96 -0
  37. package/assets/java-DkRrYYRp.js +175 -0
  38. package/assets/javascript-Da2MNB2t.js +20 -0
  39. package/assets/json.worker-D3-21m4I.js +65 -0
  40. package/assets/json.worker-pkLWnKxn.js +6 -0
  41. package/assets/jsonMode-BtwFVp_X.js +450 -0
  42. package/assets/julia-DXDdnD4p.js +416 -0
  43. package/assets/kotlin-BNDyMshT.js +184 -0
  44. package/assets/less-3yDKfG4U.js +244 -0
  45. package/assets/liquid-DCciKNzb.js +199 -0
  46. package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
  47. package/assets/lua-CqDy9oHE.js +202 -0
  48. package/assets/m3-DyBtJGhR.js +195 -0
  49. package/assets/main-16cPxgwS.js +107 -0
  50. package/assets/main-CB71Lf5W.js +129 -0
  51. package/assets/main-HEYSEiwe.js +66 -0
  52. package/assets/markdown-DIkeztiD.js +264 -0
  53. package/assets/mdx-BcOG7QFm.js +329 -0
  54. package/assets/mips-BUbWxz0r.js +130 -0
  55. package/assets/monaco-BMsB0TPD.js +39430 -0
  56. package/assets/monaco-ffd8b062.css +3 -0
  57. package/assets/msdax-95fojGvn.js +158 -0
  58. package/assets/mysql-CX3tETwr.js +170 -0
  59. package/assets/objective-c-CK2i53vc.js +146 -0
  60. package/assets/pascal-wnGRqmNG.js +178 -0
  61. package/assets/pascaligo-DR2NqTqc.js +203 -0
  62. package/assets/perl-DXuijcFO.js +318 -0
  63. package/assets/pgsql-BFvD7ctB.js +160 -0
  64. package/assets/php-FZHoZ5C_.js +473 -0
  65. package/assets/pla-Cmb_VVG6.js +148 -0
  66. package/assets/postiats-DUwtyBVk.js +506 -0
  67. package/assets/powerquery-wUlwxvME.js +192 -0
  68. package/assets/powershell-Wf4X7WOf.js +213 -0
  69. package/assets/protobuf-CcMDFVG6.js +661 -0
  70. package/assets/pug-OPBd_9cN.js +302 -0
  71. package/assets/python-D2Z49Cw8.js +254 -0
  72. package/assets/qsharp-C4P6iWbB.js +145 -0
  73. package/assets/r-FHjiK9Ff.js +191 -0
  74. package/assets/razor-CfcSDTvR.js +519 -0
  75. package/assets/redis-CLJ_Tkzp.js +125 -0
  76. package/assets/redshift-Cn0YgnO8.js +160 -0
  77. package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
  78. package/assets/ruby-Dhjv9xsd.js +529 -0
  79. package/assets/rust-Bq7le2bN.js +180 -0
  80. package/assets/scala-Bth6QY64.js +553 -0
  81. package/assets/scheme-BHXdn3HT.js +172 -0
  82. package/assets/scss-DVPfVfp2.js +419 -0
  83. package/assets/shell-DYY2DoAm.js +225 -0
  84. package/assets/solidity-C2dWya5C.js +149 -0
  85. package/assets/sophia-BdPli0VA.js +149 -0
  86. package/assets/sparql-Ca6NBL_y.js +126 -0
  87. package/assets/sql-CE5EfRV1.js +173 -0
  88. package/assets/st-BKcHiAlg.js +478 -0
  89. package/assets/swift-v0LuaFKN.js +215 -0
  90. package/assets/systemverilog-BRC61WOW.js +300 -0
  91. package/assets/tcl-Xx48oN1j.js +225 -0
  92. package/assets/ts.worker-CokkJ1Lk.js +6 -0
  93. package/assets/ts.worker-De3FAST6.js +67741 -0
  94. package/assets/tsMode-cdcRizUc.js +567 -0
  95. package/assets/twig-Dq5WyzaF.js +390 -0
  96. package/assets/typescript-B25ZZJLy.js +257 -0
  97. package/assets/typespec-DVZXVZWY.js +236 -0
  98. package/assets/vb--Ows3SAS.js +262 -0
  99. package/assets/wgsl-gwRTfDFE.js +147 -0
  100. package/assets/workers-qpP7-_JR.js +48 -0
  101. package/assets/xml-BD6eVsMx.js +130 -0
  102. package/assets/yaml-unVkvP57.js +223 -0
  103. package/lib.d.ts +8379 -0
  104. package/package.json +1 -1
  105. package/src/main.js +24 -0
  106. package/index.d.ts +0 -6
  107. package/index.js +0 -1
  108. package/readme.md +0 -1
  109. /package/{license.txt → LICENSE} +0 -0
@@ -0,0 +1,236 @@
1
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/typespec/typespec.js
2
+ var e = (e) => `\\b${e}\\b`, t = (e) => `(?!${e})`, n = e("[_a-zA-Z][_a-zA-Z0-9]*"), r = e("[_a-zA-Z-0-9]+"), i = [
3
+ "import",
4
+ "model",
5
+ "scalar",
6
+ "namespace",
7
+ "op",
8
+ "interface",
9
+ "union",
10
+ "using",
11
+ "is",
12
+ "extends",
13
+ "enum",
14
+ "alias",
15
+ "return",
16
+ "void",
17
+ "if",
18
+ "else",
19
+ "projection",
20
+ "dec",
21
+ "extern",
22
+ "fn"
23
+ ], a = [
24
+ "true",
25
+ "false",
26
+ "null",
27
+ "unknown",
28
+ "never"
29
+ ], o = "[ \\t\\r\\n]", s = "[0-9]+", c = {
30
+ comments: {
31
+ lineComment: "//",
32
+ blockComment: ["/*", "*/"]
33
+ },
34
+ brackets: [
35
+ ["{", "}"],
36
+ ["[", "]"],
37
+ ["(", ")"]
38
+ ],
39
+ autoClosingPairs: [
40
+ {
41
+ open: "{",
42
+ close: "}"
43
+ },
44
+ {
45
+ open: "[",
46
+ close: "]"
47
+ },
48
+ {
49
+ open: "(",
50
+ close: ")"
51
+ },
52
+ {
53
+ open: "\"",
54
+ close: "\""
55
+ },
56
+ {
57
+ open: "/**",
58
+ close: " */",
59
+ notIn: ["string"]
60
+ }
61
+ ],
62
+ surroundingPairs: [
63
+ {
64
+ open: "{",
65
+ close: "}"
66
+ },
67
+ {
68
+ open: "[",
69
+ close: "]"
70
+ },
71
+ {
72
+ open: "(",
73
+ close: ")"
74
+ },
75
+ {
76
+ open: "\"",
77
+ close: "\""
78
+ }
79
+ ],
80
+ indentationRules: {
81
+ decreaseIndentPattern: /* @__PURE__ */ RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),
82
+ increaseIndentPattern: /* @__PURE__ */ RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),
83
+ unIndentedLinePattern: /* @__PURE__ */ RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")
84
+ }
85
+ }, l = {
86
+ defaultToken: "",
87
+ tokenPostfix: ".tsp",
88
+ brackets: [
89
+ {
90
+ open: "{",
91
+ close: "}",
92
+ token: "delimiter.curly"
93
+ },
94
+ {
95
+ open: "[",
96
+ close: "]",
97
+ token: "delimiter.square"
98
+ },
99
+ {
100
+ open: "(",
101
+ close: ")",
102
+ token: "delimiter.parenthesis"
103
+ }
104
+ ],
105
+ symbols: /[=:;<>]+/,
106
+ keywords: i,
107
+ namedLiterals: a,
108
+ escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|\"|\\${)",
109
+ tokenizer: {
110
+ root: [{ include: "@expression" }, { include: "@whitespace" }],
111
+ stringVerbatim: [{
112
+ regex: "(|\"|\"\")[^\"]",
113
+ action: { token: "string" }
114
+ }, {
115
+ regex: `"""${t("\"")}`,
116
+ action: {
117
+ token: "string",
118
+ next: "@pop"
119
+ }
120
+ }],
121
+ stringLiteral: [
122
+ {
123
+ regex: "\\${",
124
+ action: {
125
+ token: "delimiter.bracket",
126
+ next: "@bracketCounting"
127
+ }
128
+ },
129
+ {
130
+ regex: "[^\\\\\"$]+",
131
+ action: { token: "string" }
132
+ },
133
+ {
134
+ regex: "@escapes",
135
+ action: { token: "string.escape" }
136
+ },
137
+ {
138
+ regex: "\\\\.",
139
+ action: { token: "string.escape.invalid" }
140
+ },
141
+ {
142
+ regex: "\"",
143
+ action: {
144
+ token: "string",
145
+ next: "@pop"
146
+ }
147
+ }
148
+ ],
149
+ bracketCounting: [
150
+ {
151
+ regex: "{",
152
+ action: {
153
+ token: "delimiter.bracket",
154
+ next: "@bracketCounting"
155
+ }
156
+ },
157
+ {
158
+ regex: "}",
159
+ action: {
160
+ token: "delimiter.bracket",
161
+ next: "@pop"
162
+ }
163
+ },
164
+ { include: "@expression" }
165
+ ],
166
+ comment: [
167
+ {
168
+ regex: "[^\\*]+",
169
+ action: { token: "comment" }
170
+ },
171
+ {
172
+ regex: "\\*\\/",
173
+ action: {
174
+ token: "comment",
175
+ next: "@pop"
176
+ }
177
+ },
178
+ {
179
+ regex: "[\\/*]",
180
+ action: { token: "comment" }
181
+ }
182
+ ],
183
+ whitespace: [
184
+ { regex: o },
185
+ {
186
+ regex: "\\/\\*",
187
+ action: {
188
+ token: "comment",
189
+ next: "@comment"
190
+ }
191
+ },
192
+ {
193
+ regex: "\\/\\/.*$",
194
+ action: { token: "comment" }
195
+ }
196
+ ],
197
+ expression: [
198
+ {
199
+ regex: "\"\"\"",
200
+ action: {
201
+ token: "string",
202
+ next: "@stringVerbatim"
203
+ }
204
+ },
205
+ {
206
+ regex: `"${t("\"\"")}`,
207
+ action: {
208
+ token: "string",
209
+ next: "@stringLiteral"
210
+ }
211
+ },
212
+ {
213
+ regex: s,
214
+ action: { token: "number" }
215
+ },
216
+ {
217
+ regex: n,
218
+ action: { cases: {
219
+ "@keywords": { token: "keyword" },
220
+ "@namedLiterals": { token: "keyword" },
221
+ "@default": { token: "identifier" }
222
+ } }
223
+ },
224
+ {
225
+ regex: `@${n}`,
226
+ action: { token: "tag" }
227
+ },
228
+ {
229
+ regex: `#${r}`,
230
+ action: { token: "directive" }
231
+ }
232
+ ]
233
+ }
234
+ };
235
+ //#endregion
236
+ export { c as conf, l as language };
@@ -0,0 +1,262 @@
1
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/vb/vb.js
2
+ var e = {
3
+ comments: {
4
+ lineComment: "'",
5
+ blockComment: ["/*", "*/"]
6
+ },
7
+ brackets: [
8
+ ["{", "}"],
9
+ ["[", "]"],
10
+ ["(", ")"],
11
+ ["<", ">"],
12
+ ["addhandler", "end addhandler"],
13
+ ["class", "end class"],
14
+ ["enum", "end enum"],
15
+ ["event", "end event"],
16
+ ["function", "end function"],
17
+ ["get", "end get"],
18
+ ["if", "end if"],
19
+ ["interface", "end interface"],
20
+ ["module", "end module"],
21
+ ["namespace", "end namespace"],
22
+ ["operator", "end operator"],
23
+ ["property", "end property"],
24
+ ["raiseevent", "end raiseevent"],
25
+ ["removehandler", "end removehandler"],
26
+ ["select", "end select"],
27
+ ["set", "end set"],
28
+ ["structure", "end structure"],
29
+ ["sub", "end sub"],
30
+ ["synclock", "end synclock"],
31
+ ["try", "end try"],
32
+ ["while", "end while"],
33
+ ["with", "end with"],
34
+ ["using", "end using"],
35
+ ["do", "loop"],
36
+ ["for", "next"]
37
+ ],
38
+ autoClosingPairs: [
39
+ {
40
+ open: "{",
41
+ close: "}",
42
+ notIn: ["string", "comment"]
43
+ },
44
+ {
45
+ open: "[",
46
+ close: "]",
47
+ notIn: ["string", "comment"]
48
+ },
49
+ {
50
+ open: "(",
51
+ close: ")",
52
+ notIn: ["string", "comment"]
53
+ },
54
+ {
55
+ open: "\"",
56
+ close: "\"",
57
+ notIn: ["string", "comment"]
58
+ },
59
+ {
60
+ open: "<",
61
+ close: ">",
62
+ notIn: ["string", "comment"]
63
+ }
64
+ ],
65
+ folding: { markers: {
66
+ start: /* @__PURE__ */ RegExp("^\\s*#Region\\b"),
67
+ end: /* @__PURE__ */ RegExp("^\\s*#End Region\\b")
68
+ } }
69
+ }, t = {
70
+ defaultToken: "",
71
+ tokenPostfix: ".vb",
72
+ ignoreCase: !0,
73
+ brackets: [
74
+ {
75
+ token: "delimiter.bracket",
76
+ open: "{",
77
+ close: "}"
78
+ },
79
+ {
80
+ token: "delimiter.array",
81
+ open: "[",
82
+ close: "]"
83
+ },
84
+ {
85
+ token: "delimiter.parenthesis",
86
+ open: "(",
87
+ close: ")"
88
+ },
89
+ {
90
+ token: "delimiter.angle",
91
+ open: "<",
92
+ close: ">"
93
+ },
94
+ {
95
+ token: "keyword.tag-addhandler",
96
+ open: "addhandler",
97
+ close: "end addhandler"
98
+ },
99
+ {
100
+ token: "keyword.tag-class",
101
+ open: "class",
102
+ close: "end class"
103
+ },
104
+ {
105
+ token: "keyword.tag-enum",
106
+ open: "enum",
107
+ close: "end enum"
108
+ },
109
+ {
110
+ token: "keyword.tag-event",
111
+ open: "event",
112
+ close: "end event"
113
+ },
114
+ {
115
+ token: "keyword.tag-function",
116
+ open: "function",
117
+ close: "end function"
118
+ },
119
+ {
120
+ token: "keyword.tag-get",
121
+ open: "get",
122
+ close: "end get"
123
+ },
124
+ {
125
+ token: "keyword.tag-if",
126
+ open: "if",
127
+ close: "end if"
128
+ },
129
+ {
130
+ token: "keyword.tag-interface",
131
+ open: "interface",
132
+ close: "end interface"
133
+ },
134
+ {
135
+ token: "keyword.tag-module",
136
+ open: "module",
137
+ close: "end module"
138
+ },
139
+ {
140
+ token: "keyword.tag-namespace",
141
+ open: "namespace",
142
+ close: "end namespace"
143
+ },
144
+ {
145
+ token: "keyword.tag-operator",
146
+ open: "operator",
147
+ close: "end operator"
148
+ },
149
+ {
150
+ token: "keyword.tag-property",
151
+ open: "property",
152
+ close: "end property"
153
+ },
154
+ {
155
+ token: "keyword.tag-raiseevent",
156
+ open: "raiseevent",
157
+ close: "end raiseevent"
158
+ },
159
+ {
160
+ token: "keyword.tag-removehandler",
161
+ open: "removehandler",
162
+ close: "end removehandler"
163
+ },
164
+ {
165
+ token: "keyword.tag-select",
166
+ open: "select",
167
+ close: "end select"
168
+ },
169
+ {
170
+ token: "keyword.tag-set",
171
+ open: "set",
172
+ close: "end set"
173
+ },
174
+ {
175
+ token: "keyword.tag-structure",
176
+ open: "structure",
177
+ close: "end structure"
178
+ },
179
+ {
180
+ token: "keyword.tag-sub",
181
+ open: "sub",
182
+ close: "end sub"
183
+ },
184
+ {
185
+ token: "keyword.tag-synclock",
186
+ open: "synclock",
187
+ close: "end synclock"
188
+ },
189
+ {
190
+ token: "keyword.tag-try",
191
+ open: "try",
192
+ close: "end try"
193
+ },
194
+ {
195
+ token: "keyword.tag-while",
196
+ open: "while",
197
+ close: "end while"
198
+ },
199
+ {
200
+ token: "keyword.tag-with",
201
+ open: "with",
202
+ close: "end with"
203
+ },
204
+ {
205
+ token: "keyword.tag-using",
206
+ open: "using",
207
+ close: "end using"
208
+ },
209
+ {
210
+ token: "keyword.tag-do",
211
+ open: "do",
212
+ close: "loop"
213
+ },
214
+ {
215
+ token: "keyword.tag-for",
216
+ open: "for",
217
+ close: "next"
218
+ }
219
+ ],
220
+ keywords: /* @__PURE__ */ "AddHandler.AddressOf.Alias.And.AndAlso.As.Async.Boolean.ByRef.Byte.ByVal.Call.Case.Catch.CBool.CByte.CChar.CDate.CDbl.CDec.Char.CInt.Class.CLng.CObj.Const.Continue.CSByte.CShort.CSng.CStr.CType.CUInt.CULng.CUShort.Date.Decimal.Declare.Default.Delegate.Dim.DirectCast.Do.Double.Each.Else.ElseIf.End.EndIf.Enum.Erase.Error.Event.Exit.False.Finally.For.Friend.Function.Get.GetType.GetXMLNamespace.Global.GoSub.GoTo.Handles.If.Implements.Imports.In.Inherits.Integer.Interface.Is.IsNot.Let.Lib.Like.Long.Loop.Me.Mod.Module.MustInherit.MustOverride.MyBase.MyClass.NameOf.Namespace.Narrowing.New.Next.Not.Nothing.NotInheritable.NotOverridable.Object.Of.On.Operator.Option.Optional.Or.OrElse.Out.Overloads.Overridable.Overrides.ParamArray.Partial.Private.Property.Protected.Public.RaiseEvent.ReadOnly.ReDim.RemoveHandler.Resume.Return.SByte.Select.Set.Shadows.Shared.Short.Single.Static.Step.Stop.String.Structure.Sub.SyncLock.Then.Throw.To.True.Try.TryCast.TypeOf.UInteger.ULong.UShort.Using.Variant.Wend.When.While.Widening.With.WithEvents.WriteOnly.Xor".split("."),
221
+ tagwords: /* @__PURE__ */ "If.Sub.Select.Try.Class.Enum.Function.Get.Interface.Module.Namespace.Operator.Set.Structure.Using.While.With.Do.Loop.For.Next.Property.Continue.AddHandler.RemoveHandler.Event.RaiseEvent.SyncLock".split("."),
222
+ symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/,
223
+ integersuffix: /U?[DI%L&S@]?/,
224
+ floatsuffix: /[R#F!]?/,
225
+ tokenizer: {
226
+ root: [
227
+ { include: "@whitespace" },
228
+ [/next(?!\w)/, { token: "keyword.tag-for" }],
229
+ [/loop(?!\w)/, { token: "keyword.tag-do" }],
230
+ [/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/, { token: "keyword.tag-$1" }],
231
+ [/[a-zA-Z_]\w*/, { cases: {
232
+ "@tagwords": { token: "keyword.tag-$0" },
233
+ "@keywords": { token: "keyword.$0" },
234
+ "@default": "identifier"
235
+ } }],
236
+ [/^\s*#\w+/, "keyword"],
237
+ [/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"],
238
+ [/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"],
239
+ [/&H[0-9a-f]+(@integersuffix)/, "number.hex"],
240
+ [/&0[0-7]+(@integersuffix)/, "number.octal"],
241
+ [/\d+(@integersuffix)/, "number"],
242
+ [/#.*#/, "number"],
243
+ [/[{}()\[\]]/, "@brackets"],
244
+ [/@symbols/, "delimiter"],
245
+ [/["\u201c\u201d]/, {
246
+ token: "string.quote",
247
+ next: "@string"
248
+ }]
249
+ ],
250
+ whitespace: [[/[ \t\r\n]+/, ""], [/(\'|REM(?!\w)).*$/, "comment"]],
251
+ string: [
252
+ [/[^"\u201c\u201d]+/, "string"],
253
+ [/["\u201c\u201d]{2}/, "string.escape"],
254
+ [/["\u201c\u201d]C?/, {
255
+ token: "string.quote",
256
+ next: "@pop"
257
+ }]
258
+ ]
259
+ }
260
+ };
261
+ //#endregion
262
+ export { e as conf, t as language };
@@ -0,0 +1,147 @@
1
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/wgsl/wgsl.js
2
+ var e = {
3
+ comments: {
4
+ lineComment: "//",
5
+ blockComment: ["/*", "*/"]
6
+ },
7
+ brackets: [
8
+ ["{", "}"],
9
+ ["[", "]"],
10
+ ["(", ")"]
11
+ ],
12
+ autoClosingPairs: [
13
+ {
14
+ open: "[",
15
+ close: "]"
16
+ },
17
+ {
18
+ open: "{",
19
+ close: "}"
20
+ },
21
+ {
22
+ open: "(",
23
+ close: ")"
24
+ }
25
+ ],
26
+ surroundingPairs: [
27
+ {
28
+ open: "{",
29
+ close: "}"
30
+ },
31
+ {
32
+ open: "[",
33
+ close: "]"
34
+ },
35
+ {
36
+ open: "(",
37
+ close: ")"
38
+ }
39
+ ]
40
+ };
41
+ function t(e) {
42
+ let t = [], n = e.split(/\t+|\r+|\n+| +/);
43
+ for (let e = 0; e < n.length; ++e) n[e].length > 0 && t.push(n[e]);
44
+ return t;
45
+ }
46
+ var n = t("true false"), r = t("\n alias\n break\n case\n const\n const_assert\n continue\n continuing\n default\n diagnostic\n discard\n else\n enable\n fn\n for\n if\n let\n loop\n override\n requires\n return\n struct\n switch\n var\n while\n "), i = t("\n NULL\n Self\n abstract\n active\n alignas\n alignof\n as\n asm\n asm_fragment\n async\n attribute\n auto\n await\n become\n binding_array\n cast\n catch\n class\n co_await\n co_return\n co_yield\n coherent\n column_major\n common\n compile\n compile_fragment\n concept\n const_cast\n consteval\n constexpr\n constinit\n crate\n debugger\n decltype\n delete\n demote\n demote_to_helper\n do\n dynamic_cast\n enum\n explicit\n export\n extends\n extern\n external\n fallthrough\n filter\n final\n finally\n friend\n from\n fxgroup\n get\n goto\n groupshared\n highp\n impl\n implements\n import\n inline\n instanceof\n interface\n layout\n lowp\n macro\n macro_rules\n match\n mediump\n meta\n mod\n module\n move\n mut\n mutable\n namespace\n new\n nil\n noexcept\n noinline\n nointerpolation\n noperspective\n null\n nullptr\n of\n operator\n package\n packoffset\n partition\n pass\n patch\n pixelfragment\n precise\n precision\n premerge\n priv\n protected\n pub\n public\n readonly\n ref\n regardless\n register\n reinterpret_cast\n require\n resource\n restrict\n self\n set\n shared\n sizeof\n smooth\n snorm\n static\n static_assert\n static_cast\n std\n subroutine\n super\n target\n template\n this\n thread_local\n throw\n trait\n try\n type\n typedef\n typeid\n typename\n typeof\n union\n unless\n unorm\n unsafe\n unsized\n use\n using\n varying\n virtual\n volatile\n wgsl\n where\n with\n writeonly\n yield\n "), a = t("\n read write read_write\n function private workgroup uniform storage\n perspective linear flat\n center centroid sample\n vertex_index instance_index position front_facing frag_depth\n local_invocation_id local_invocation_index\n global_invocation_id workgroup_id num_workgroups\n sample_index sample_mask\n rgba8unorm\n rgba8snorm\n rgba8uint\n rgba8sint\n rgba16uint\n rgba16sint\n rgba16float\n r32uint\n r32sint\n r32float\n rg32uint\n rg32sint\n rg32float\n rgba32uint\n rgba32sint\n rgba32float\n bgra8unorm\n"), o = t("\n bool\n f16\n f32\n i32\n sampler sampler_comparison\n texture_depth_2d\n texture_depth_2d_array\n texture_depth_cube\n texture_depth_cube_array\n texture_depth_multisampled_2d\n texture_external\n texture_external\n u32\n "), s = t("\n array\n atomic\n mat2x2\n mat2x3\n mat2x4\n mat3x2\n mat3x3\n mat3x4\n mat4x2\n mat4x3\n mat4x4\n ptr\n texture_1d\n texture_2d\n texture_2d_array\n texture_3d\n texture_cube\n texture_cube_array\n texture_multisampled_2d\n texture_storage_1d\n texture_storage_2d\n texture_storage_2d_array\n texture_storage_3d\n vec2\n vec3\n vec4\n "), c = t("\n vec2i vec3i vec4i\n vec2u vec3u vec4u\n vec2f vec3f vec4f\n vec2h vec3h vec4h\n mat2x2f mat2x3f mat2x4f\n mat3x2f mat3x3f mat3x4f\n mat4x2f mat4x3f mat4x4f\n mat2x2h mat2x3h mat2x4h\n mat3x2h mat3x3h mat3x4h\n mat4x2h mat4x3h mat4x4h\n "), l = t("\n bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2\n ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross\n degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit\n firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length\n log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract\n reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose\n trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine\n textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers\n textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare\n textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge\n textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin\n atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm\n pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm\n unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier\n workgroupUniformLoad\n"), u = t("\n &\n &&\n ->\n /\n =\n ==\n !=\n >\n >=\n <\n <=\n %\n -\n --\n +\n ++\n |\n ||\n *\n <<\n >>\n +=\n -=\n *=\n /=\n %=\n &=\n |=\n ^=\n >>=\n <<=\n "), d = /enable|requires|diagnostic/, f = /[_\p{XID_Start}]\p{XID_Continue}*/u, p = "variable.predefined", m = {
47
+ tokenPostfix: ".wgsl",
48
+ defaultToken: "invalid",
49
+ unicode: !0,
50
+ atoms: n,
51
+ keywords: r,
52
+ reserved: i,
53
+ predeclared_enums: a,
54
+ predeclared_types: o,
55
+ predeclared_type_generators: s,
56
+ predeclared_type_aliases: c,
57
+ predeclared_intrinsics: l,
58
+ operators: u,
59
+ symbols: /[!%&*+\-\.\/:;<=>^|_~,]+/,
60
+ tokenizer: {
61
+ root: [
62
+ [
63
+ d,
64
+ "keyword",
65
+ "@directive"
66
+ ],
67
+ [f, { cases: {
68
+ "@atoms": p,
69
+ "@keywords": "keyword",
70
+ "@reserved": "invalid",
71
+ "@predeclared_enums": p,
72
+ "@predeclared_types": p,
73
+ "@predeclared_type_generators": p,
74
+ "@predeclared_type_aliases": p,
75
+ "@predeclared_intrinsics": p,
76
+ "@default": "identifier"
77
+ } }],
78
+ { include: "@commentOrSpace" },
79
+ { include: "@numbers" },
80
+ [/[{}()\[\]]/, "@brackets"],
81
+ [
82
+ "@",
83
+ "annotation",
84
+ "@attribute"
85
+ ],
86
+ [/@symbols/, { cases: {
87
+ "@operators": "operator",
88
+ "@default": "delimiter"
89
+ } }],
90
+ [/./, "invalid"]
91
+ ],
92
+ commentOrSpace: [
93
+ [/\s+/, "white"],
94
+ [
95
+ /\/\*/,
96
+ "comment",
97
+ "@blockComment"
98
+ ],
99
+ [/\/\/.*$/, "comment"]
100
+ ],
101
+ blockComment: [
102
+ [/[^\/*]+/, "comment"],
103
+ [
104
+ /\/\*/,
105
+ "comment",
106
+ "@push"
107
+ ],
108
+ [
109
+ /\*\//,
110
+ "comment",
111
+ "@pop"
112
+ ],
113
+ [/[\/*]/, "comment"]
114
+ ],
115
+ attribute: [{ include: "@commentOrSpace" }, [
116
+ /\w+/,
117
+ "annotation",
118
+ "@pop"
119
+ ]],
120
+ directive: [
121
+ { include: "@commentOrSpace" },
122
+ [/[()]/, "@brackets"],
123
+ [/,/, "delimiter"],
124
+ [f, "meta.content"],
125
+ [
126
+ /;/,
127
+ "delimiter",
128
+ "@pop"
129
+ ]
130
+ ],
131
+ numbers: [
132
+ [/0[fh]/, "number.float"],
133
+ [/[1-9][0-9]*[fh]/, "number.float"],
134
+ [/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
135
+ [/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
136
+ [/[0-9]+[eE][+-]?[0-9]+[fh]?/, "number.float"],
137
+ [/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
138
+ [/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
139
+ [/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/, "number.hex"],
140
+ [/0[xX][0-9a-fA-F]+[iu]?/, "number.hex"],
141
+ [/[1-9][0-9]*[iu]?/, "number"],
142
+ [/0[iu]?/, "number"]
143
+ ]
144
+ }
145
+ };
146
+ //#endregion
147
+ export { e as conf, m as language };
@@ -0,0 +1,48 @@
1
+ import { p as e } from "./editor.api-C_6h_pYy.js";
2
+ import "./monaco-BMsB0TPD.js";
3
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/internal/common/workers.js
4
+ function t(e, t) {
5
+ let n = globalThis.MonacoEnvironment;
6
+ if (n?.createTrustedTypesPolicy) try {
7
+ return n.createTrustedTypesPolicy(e, t);
8
+ } catch (e) {
9
+ console.error(e);
10
+ return;
11
+ }
12
+ try {
13
+ return globalThis.trustedTypes?.createPolicy(e, t);
14
+ } catch (e) {
15
+ console.error(e);
16
+ return;
17
+ }
18
+ }
19
+ var n = typeof self == "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope" && globalThis.workerttPolicy !== void 0 ? globalThis.workerttPolicy : t("defaultWorkerFactory", { createScriptURL: (e) => e });
20
+ function r(e) {
21
+ let t = e.label, r = globalThis.MonacoEnvironment;
22
+ if (r) {
23
+ if (typeof r.getWorker == "function") return r.getWorker("workerMain.js", t);
24
+ if (typeof r.getWorkerUrl == "function") {
25
+ let e = r.getWorkerUrl("workerMain.js", t);
26
+ return new Worker(n ? n.createScriptURL(e) : e, {
27
+ name: t,
28
+ type: "module"
29
+ });
30
+ }
31
+ }
32
+ if (e.createWorker) return e.createWorker();
33
+ throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker");
34
+ }
35
+ function i(t) {
36
+ let n = Promise.resolve(r({
37
+ label: t.label ?? "monaco-editor-worker",
38
+ moduleId: t.moduleId,
39
+ createWorker: t.createWorker
40
+ })).then((e) => (e.postMessage("ignore"), e.postMessage(t.createData), e));
41
+ return e.createWebWorker({
42
+ worker: n,
43
+ host: t.host,
44
+ keepIdleModels: t.keepIdleModels
45
+ });
46
+ }
47
+ //#endregion
48
+ export { i as t };