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,158 @@
1
+ import { l as e } from "./index-CiIcpngo.mjs";
2
+ const i = {
3
+ comments: {
4
+ blockComment: ["{/*", "*/}"]
5
+ },
6
+ brackets: [["{", "}"]],
7
+ autoClosingPairs: [
8
+ { open: '"', close: '"' },
9
+ { open: "'", close: "'" },
10
+ { open: "“", close: "”" },
11
+ { open: "‘", close: "’" },
12
+ { open: "`", close: "`" },
13
+ { open: "{", close: "}" },
14
+ { open: "(", close: ")" },
15
+ { open: "_", close: "_" },
16
+ { open: "**", close: "**" },
17
+ { open: "<", close: ">" }
18
+ ],
19
+ onEnterRules: [
20
+ {
21
+ beforeText: /^\s*- .+/,
22
+ action: { indentAction: e.IndentAction.None, appendText: "- " }
23
+ },
24
+ {
25
+ beforeText: /^\s*\+ .+/,
26
+ action: { indentAction: e.IndentAction.None, appendText: "+ " }
27
+ },
28
+ {
29
+ beforeText: /^\s*\* .+/,
30
+ action: { indentAction: e.IndentAction.None, appendText: "* " }
31
+ },
32
+ {
33
+ beforeText: /^> /,
34
+ action: { indentAction: e.IndentAction.None, appendText: "> " }
35
+ },
36
+ {
37
+ beforeText: /<\w+/,
38
+ action: { indentAction: e.IndentAction.Indent }
39
+ },
40
+ {
41
+ beforeText: /\s+>\s*$/,
42
+ action: { indentAction: e.IndentAction.Indent }
43
+ },
44
+ {
45
+ beforeText: /<\/\w+>/,
46
+ action: { indentAction: e.IndentAction.Outdent }
47
+ },
48
+ ...Array.from({ length: 100 }, (n, t) => ({
49
+ beforeText: new RegExp(`^${t}\\. .+`),
50
+ action: { indentAction: e.IndentAction.None, appendText: `${t + 1}. ` }
51
+ }))
52
+ ]
53
+ }, s = {
54
+ defaultToken: "",
55
+ tokenPostfix: ".mdx",
56
+ control: /[!#()*+.[\\\]_`{}\-]/,
57
+ escapes: /\\@control/,
58
+ tokenizer: {
59
+ root: [
60
+ [/^---$/, { token: "meta.content", next: "@frontmatter", nextEmbedded: "yaml" }],
61
+ [/^\s*import/, { token: "keyword", next: "@import", nextEmbedded: "js" }],
62
+ [/^\s*export/, { token: "keyword", next: "@export", nextEmbedded: "js" }],
63
+ [/<\w+/, { token: "type.identifier", next: "@jsx" }],
64
+ [/<\/?\w+>/, "type.identifier"],
65
+ [
66
+ /^(\s*)(>*\s*)(#{1,6}\s)/,
67
+ [{ token: "white" }, { token: "comment" }, { token: "keyword", next: "@header" }]
68
+ ],
69
+ [/^(\s*)(>*\s*)([*+-])(\s+)/, ["white", "comment", "keyword", "white"]],
70
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
71
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
72
+ [/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, ["white", "comment", "keyword"]],
73
+ [/`{3,}(\s.*)?$/, { token: "string", next: "@codeblock_backtick" }],
74
+ [/~{3,}(\s.*)?$/, { token: "string", next: "@codeblock_tilde" }],
75
+ [
76
+ /`{3,}(\S+).*$/,
77
+ { token: "string", next: "@codeblock_highlight_backtick", nextEmbedded: "$1" }
78
+ ],
79
+ [
80
+ /~{3,}(\S+).*$/,
81
+ { token: "string", next: "@codeblock_highlight_tilde", nextEmbedded: "$1" }
82
+ ],
83
+ [/^(\s*)(-{4,})$/, ["white", "comment"]],
84
+ [/^(\s*)(>+)/, ["white", "comment"]],
85
+ { include: "content" }
86
+ ],
87
+ content: [
88
+ [
89
+ /(\[)(.+)(]\()(.+)(\s+".*")(\))/,
90
+ ["", "string.link", "", "type.identifier", "string.link", ""]
91
+ ],
92
+ [/(\[)(.+)(]\()(.+)(\))/, ["", "type.identifier", "", "string.link", ""]],
93
+ [/(\[)(.+)(]\[)(.+)(])/, ["", "type.identifier", "", "type.identifier", ""]],
94
+ [/(\[)(.+)(]:\s+)(\S*)/, ["", "type.identifier", "", "string.link"]],
95
+ [/(\[)(.+)(])/, ["", "type.identifier", ""]],
96
+ [/`.*`/, "variable.source"],
97
+ [/_/, { token: "emphasis", next: "@emphasis_underscore" }],
98
+ [/\*(?!\*)/, { token: "emphasis", next: "@emphasis_asterisk" }],
99
+ [/\*\*/, { token: "strong", next: "@strong" }],
100
+ [/{/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }]
101
+ ],
102
+ import: [[/'\s*(;|$)/, { token: "string", next: "@pop", nextEmbedded: "@pop" }]],
103
+ expression: [
104
+ [/{/, { token: "delimiter.bracket", next: "@expression" }],
105
+ [/}/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]
106
+ ],
107
+ export: [[/^\s*$/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]],
108
+ jsx: [
109
+ [/\s+/, ""],
110
+ [/(\w+)(=)("(?:[^"\\]|\\.)*")/, ["attribute.name", "operator", "string"]],
111
+ [/(\w+)(=)('(?:[^'\\]|\\.)*')/, ["attribute.name", "operator", "string"]],
112
+ [/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
113
+ [/={/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }],
114
+ [/>/, { token: "type.identifier", next: "@pop" }]
115
+ ],
116
+ header: [
117
+ [/.$/, { token: "keyword", next: "@pop" }],
118
+ { include: "content" },
119
+ [/./, { token: "keyword" }]
120
+ ],
121
+ strong: [
122
+ [/\*\*/, { token: "strong", next: "@pop" }],
123
+ { include: "content" },
124
+ [/./, { token: "strong" }]
125
+ ],
126
+ emphasis_underscore: [
127
+ [/_/, { token: "emphasis", next: "@pop" }],
128
+ { include: "content" },
129
+ [/./, { token: "emphasis" }]
130
+ ],
131
+ emphasis_asterisk: [
132
+ [/\*(?!\*)/, { token: "emphasis", next: "@pop" }],
133
+ { include: "content" },
134
+ [/./, { token: "emphasis" }]
135
+ ],
136
+ frontmatter: [[/^---$/, { token: "meta.content", nextEmbedded: "@pop", next: "@pop" }]],
137
+ codeblock_highlight_backtick: [
138
+ [/\s*`{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
139
+ [/.*$/, "variable.source"]
140
+ ],
141
+ codeblock_highlight_tilde: [
142
+ [/\s*~{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
143
+ [/.*$/, "variable.source"]
144
+ ],
145
+ codeblock_backtick: [
146
+ [/\s*`{3,}\s*$/, { token: "string", next: "@pop" }],
147
+ [/.*$/, "variable.source"]
148
+ ],
149
+ codeblock_tilde: [
150
+ [/\s*~{3,}\s*$/, { token: "string", next: "@pop" }],
151
+ [/.*$/, "variable.source"]
152
+ ]
153
+ }
154
+ };
155
+ export {
156
+ i as conf,
157
+ s as language
158
+ };
@@ -0,0 +1,198 @@
1
+ const e = {
2
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
3
+ comments: {
4
+ blockComment: ["###", "###"],
5
+ lineComment: "#"
6
+ },
7
+ folding: {
8
+ markers: {
9
+ start: new RegExp("^\\s*#region\\b"),
10
+ end: new RegExp("^\\s*#endregion\\b")
11
+ }
12
+ }
13
+ }, t = {
14
+ defaultToken: "",
15
+ ignoreCase: !1,
16
+ tokenPostfix: ".mips",
17
+ regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
18
+ keywords: [
19
+ ".data",
20
+ ".text",
21
+ "syscall",
22
+ "trap",
23
+ "add",
24
+ "addu",
25
+ "addi",
26
+ "addiu",
27
+ "and",
28
+ "andi",
29
+ "div",
30
+ "divu",
31
+ "mult",
32
+ "multu",
33
+ "nor",
34
+ "or",
35
+ "ori",
36
+ "sll",
37
+ "slv",
38
+ "sra",
39
+ "srav",
40
+ "srl",
41
+ "srlv",
42
+ "sub",
43
+ "subu",
44
+ "xor",
45
+ "xori",
46
+ "lhi",
47
+ "lho",
48
+ "lhi",
49
+ "llo",
50
+ "slt",
51
+ "slti",
52
+ "sltu",
53
+ "sltiu",
54
+ "beq",
55
+ "bgtz",
56
+ "blez",
57
+ "bne",
58
+ "j",
59
+ "jal",
60
+ "jalr",
61
+ "jr",
62
+ "lb",
63
+ "lbu",
64
+ "lh",
65
+ "lhu",
66
+ "lw",
67
+ "li",
68
+ "la",
69
+ "sb",
70
+ "sh",
71
+ "sw",
72
+ "mfhi",
73
+ "mflo",
74
+ "mthi",
75
+ "mtlo",
76
+ "move"
77
+ ],
78
+ // we include these common regular expressions
79
+ symbols: /[\.,\:]+/,
80
+ escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
81
+ // The main tokenizer for our languages
82
+ tokenizer: {
83
+ root: [
84
+ // identifiers and keywords
85
+ [/\$[a-zA-Z_]\w*/, "variable.predefined"],
86
+ [
87
+ /[.a-zA-Z_]\w*/,
88
+ {
89
+ cases: {
90
+ this: "variable.predefined",
91
+ "@keywords": { token: "keyword.$0" },
92
+ "@default": ""
93
+ }
94
+ }
95
+ ],
96
+ // whitespace
97
+ [/[ \t\r\n]+/, ""],
98
+ // Comments
99
+ [/#.*$/, "comment"],
100
+ // regular expressions
101
+ ["///", { token: "regexp", next: "@hereregexp" }],
102
+ [/^(\s*)(@regEx)/, ["", "regexp"]],
103
+ [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
104
+ [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
105
+ // delimiters
106
+ [/@symbols/, "delimiter"],
107
+ // numbers
108
+ [/\d+[eE]([\-+]?\d+)?/, "number.float"],
109
+ [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
110
+ [/0[xX][0-9a-fA-F]+/, "number.hex"],
111
+ [/0[0-7]+(?!\d)/, "number.octal"],
112
+ [/\d+/, "number"],
113
+ // delimiter: after number because of .\d floats
114
+ [/[,.]/, "delimiter"],
115
+ // strings:
116
+ [/"""/, "string", '@herestring."""'],
117
+ [/'''/, "string", "@herestring.'''"],
118
+ [
119
+ /"/,
120
+ {
121
+ cases: {
122
+ "@eos": "string",
123
+ "@default": { token: "string", next: '@string."' }
124
+ }
125
+ }
126
+ ],
127
+ [
128
+ /'/,
129
+ {
130
+ cases: {
131
+ "@eos": "string",
132
+ "@default": { token: "string", next: "@string.'" }
133
+ }
134
+ }
135
+ ]
136
+ ],
137
+ string: [
138
+ [/[^"'\#\\]+/, "string"],
139
+ [/@escapes/, "string.escape"],
140
+ [/\./, "string.escape.invalid"],
141
+ [/\./, "string.escape.invalid"],
142
+ [
143
+ /#{/,
144
+ {
145
+ cases: {
146
+ '$S2=="': {
147
+ token: "string",
148
+ next: "root.interpolatedstring"
149
+ },
150
+ "@default": "string"
151
+ }
152
+ }
153
+ ],
154
+ [
155
+ /["']/,
156
+ {
157
+ cases: {
158
+ "$#==$S2": { token: "string", next: "@pop" },
159
+ "@default": "string"
160
+ }
161
+ }
162
+ ],
163
+ [/#/, "string"]
164
+ ],
165
+ herestring: [
166
+ [
167
+ /("""|''')/,
168
+ {
169
+ cases: {
170
+ "$1==$S2": { token: "string", next: "@pop" },
171
+ "@default": "string"
172
+ }
173
+ }
174
+ ],
175
+ [/[^#\\'"]+/, "string"],
176
+ [/['"]+/, "string"],
177
+ [/@escapes/, "string.escape"],
178
+ [/\./, "string.escape.invalid"],
179
+ [/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
180
+ [/#/, "string"]
181
+ ],
182
+ comment: [
183
+ [/[^#]+/, "comment"],
184
+ [/#/, "comment"]
185
+ ],
186
+ hereregexp: [
187
+ [/[^\\\/#]+/, "regexp"],
188
+ [/\\./, "regexp"],
189
+ [/#.*$/, "comment"],
190
+ ["///[igm]*", { token: "regexp", next: "@pop" }],
191
+ [/\//, "regexp"]
192
+ ]
193
+ }
194
+ };
195
+ export {
196
+ e as conf,
197
+ t as language
198
+ };