monaco-editor11 1.0.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.
- package/README.md +5 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/abap-CrvW7_qN.mjs +1398 -0
- package/dist/apex-BAOI8p1v.mjs +327 -0
- package/dist/assets/css.worker-C7FogG4G.js +93 -0
- package/dist/assets/editor.worker-iXcRX1Tq.js +26 -0
- package/dist/assets/html.worker-C8VxctEJ.js +470 -0
- package/dist/assets/json.worker-CMC9kgPL.js +58 -0
- package/dist/assets/ts.worker-CtTJ3hNN.js +67731 -0
- package/dist/azcli-BlCk_UqW.mjs +68 -0
- package/dist/bat-DPoEelVx.mjs +100 -0
- package/dist/bicep-Cp1F394l.mjs +102 -0
- package/dist/cameligo-CWqtSlQs.mjs +174 -0
- package/dist/clojure-CKBp32Gf.mjs +761 -0
- package/dist/coffee-CDo6vc-J.mjs +232 -0
- package/dist/cpp-DokufPgf.mjs +389 -0
- package/dist/csharp-BQi3szM0.mjs +326 -0
- package/dist/csp-BSGtCCZ-.mjs +53 -0
- package/dist/css-DEPFDJfb.mjs +187 -0
- package/dist/cssMode-BhKA1zSu.mjs +141 -0
- package/dist/cypher-DAb1vOxS.mjs +263 -0
- package/dist/dart-C8p4jewR.mjs +281 -0
- package/dist/dockerfile-DP0iLFPN.mjs +130 -0
- package/dist/ecl-BDQHA6fi.mjs +456 -0
- package/dist/elixir-D4II6kDM.mjs +569 -0
- package/dist/flow9-StcnL-VB.mjs +142 -0
- package/dist/freemarker2-ww_D58dk.mjs +982 -0
- package/dist/fsharp-DdUVp3EN.mjs +217 -0
- package/dist/go-D1-I258M.mjs +218 -0
- package/dist/graphql-DWkL3f8U.mjs +151 -0
- package/dist/handlebars-p6e472fk.mjs +412 -0
- package/dist/hb-vue3-print-nb.es.js +24 -0
- package/dist/hb-vue3-print-nb.umd.js +1234 -0
- package/dist/hcl-D_0MNifv.mjs +183 -0
- package/dist/html-RxjjEvRj.mjs +301 -0
- package/dist/htmlMode-CJ7jqvHB.mjs +152 -0
- package/dist/index copy.d.ts +7 -0
- package/dist/index-D22E33Ns.mjs +128804 -0
- package/dist/index.d.ts +9 -0
- package/dist/ini-C4I2-MT7.mjs +71 -0
- package/dist/java-OBvaP_SS.mjs +232 -0
- package/dist/javascript-4cugaJH-.mjs +70 -0
- package/dist/jsonMode-mEAKo0MB.mjs +577 -0
- package/dist/julia-BmDH8Kkf.mjs +511 -0
- package/dist/kotlin-Dhu5AGOD.mjs +252 -0
- package/dist/less-CzmjXREq.mjs +162 -0
- package/dist/lexon-CV2c4pN9.mjs +157 -0
- package/dist/liquid-CHAki8UD.mjs +233 -0
- package/dist/lspLanguageFeatures-B7Hqx8aW.mjs +1458 -0
- package/dist/lua-CFY5U8qF.mjs +162 -0
- package/dist/m3-BL_AnZVh.mjs +210 -0
- package/dist/main.d.ts +0 -0
- package/dist/markdown-CWKQPXCv.mjs +229 -0
- package/dist/mdx-zeC77g8c.mjs +158 -0
- package/dist/mips-ButYmJ5E.mjs +198 -0
- package/dist/monaco-editor11.css +1 -0
- package/dist/msdax-C3cnXqDh.mjs +375 -0
- package/dist/mysql-YlSHaf6G.mjs +878 -0
- package/dist/objective-c-Dwnlproe.mjs +183 -0
- package/dist/pascal-UzGbSWEN.mjs +251 -0
- package/dist/pascaligo-CslTgu68.mjs +164 -0
- package/dist/perl-oj6r_mgw.mjs +626 -0
- package/dist/pgsql-DSBO0Mev.mjs +851 -0
- package/dist/php-YzCD--7j.mjs +500 -0
- package/dist/pla-CmylB8vQ.mjs +137 -0
- package/dist/postiats-CLFW5gNY.mjs +907 -0
- package/dist/powerquery-CmOWUvlh.mjs +890 -0
- package/dist/powershell-fHQcmBLK.mjs +239 -0
- package/dist/protobuf-p5BArb-9.mjs +420 -0
- package/dist/pug-gVdUDvqf.mjs +402 -0
- package/dist/python-DULwfuw6.mjs +294 -0
- package/dist/qsharp-DnrWSUlt.mjs +301 -0
- package/dist/r-Cv309K2z.mjs +243 -0
- package/dist/razor-c0jgmA5G.mjs +543 -0
- package/dist/redis-DTcS4wMj.mjs +302 -0
- package/dist/redshift-hLxZVESM.mjs +809 -0
- package/dist/restructuredtext-C898lK4f.mjs +174 -0
- package/dist/router/index.d.ts +2 -0
- package/dist/ruby-CgKtnJIQ.mjs +511 -0
- package/dist/rust-bj8oxVnh.mjs +343 -0
- package/dist/sb-DWynz26l.mjs +115 -0
- package/dist/scala-BL5z1UEd.mjs +370 -0
- package/dist/scheme-DUJsH6VU.mjs +108 -0
- package/dist/scss-CxjmhvaL.mjs +262 -0
- package/dist/shell-D14Zs1dF.mjs +221 -0
- package/dist/solidity-WyRm-BGK.mjs +1367 -0
- package/dist/sophia-CKk-_Oa5.mjs +199 -0
- package/dist/sparql-DHtmINMZ.mjs +201 -0
- package/dist/sql-Dqaj5JHC.mjs +853 -0
- package/dist/st-Bj2IIaop.mjs +416 -0
- package/dist/store/index.d.ts +2 -0
- package/dist/store/modules/tableConfig.d.ts +7 -0
- package/dist/swift-DwxP72iM.mjs +312 -0
- package/dist/systemverilog-D7wJfuql.mjs +576 -0
- package/dist/tcl-0ApMt-eC.mjs +232 -0
- package/dist/tsMode-CepBtZtU.mjs +946 -0
- package/dist/twig-DxwbdmvQ.mjs +392 -0
- package/dist/typescript-hbfpGuFj.mjs +336 -0
- package/dist/typespec-Fd-JwSuS.mjs +117 -0
- package/dist/vb-CxuyYE1I.mjs +372 -0
- package/dist/views/Home.vue.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/dist/wgsl-DoEGc31J.mjs +439 -0
- package/dist/xml-DE69CcMx.mjs +88 -0
- package/dist/yaml-CdiGER8y.mjs +199 -0
- package/package.json +37 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "#",
|
|
4
|
+
blockComment: ["/*", "*/"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{ open: "{", close: "}" },
|
|
13
|
+
{ open: "[", close: "]" },
|
|
14
|
+
{ open: "(", close: ")" },
|
|
15
|
+
{ open: '"', close: '"', notIn: ["string"] }
|
|
16
|
+
],
|
|
17
|
+
surroundingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: '"', close: '"' }
|
|
22
|
+
]
|
|
23
|
+
}, t = {
|
|
24
|
+
defaultToken: "",
|
|
25
|
+
tokenPostfix: ".hcl",
|
|
26
|
+
keywords: [
|
|
27
|
+
"var",
|
|
28
|
+
"local",
|
|
29
|
+
"path",
|
|
30
|
+
"for_each",
|
|
31
|
+
"any",
|
|
32
|
+
"string",
|
|
33
|
+
"number",
|
|
34
|
+
"bool",
|
|
35
|
+
"true",
|
|
36
|
+
"false",
|
|
37
|
+
"null",
|
|
38
|
+
"if ",
|
|
39
|
+
"else ",
|
|
40
|
+
"endif ",
|
|
41
|
+
"for ",
|
|
42
|
+
"in",
|
|
43
|
+
"endfor"
|
|
44
|
+
],
|
|
45
|
+
operators: [
|
|
46
|
+
"=",
|
|
47
|
+
">=",
|
|
48
|
+
"<=",
|
|
49
|
+
"==",
|
|
50
|
+
"!=",
|
|
51
|
+
"+",
|
|
52
|
+
"-",
|
|
53
|
+
"*",
|
|
54
|
+
"/",
|
|
55
|
+
"%",
|
|
56
|
+
"&&",
|
|
57
|
+
"||",
|
|
58
|
+
"!",
|
|
59
|
+
"<",
|
|
60
|
+
">",
|
|
61
|
+
"?",
|
|
62
|
+
"...",
|
|
63
|
+
":"
|
|
64
|
+
],
|
|
65
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
66
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
67
|
+
terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
|
|
68
|
+
terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
|
|
69
|
+
tokenizer: {
|
|
70
|
+
root: [
|
|
71
|
+
// highlight main blocks
|
|
72
|
+
[
|
|
73
|
+
/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
|
74
|
+
["type", "", "string", "", "string", "", "@brackets"]
|
|
75
|
+
],
|
|
76
|
+
// highlight all the remaining blocks
|
|
77
|
+
[
|
|
78
|
+
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
|
79
|
+
["identifier", "", "string", "", "string", "", "@brackets"]
|
|
80
|
+
],
|
|
81
|
+
// highlight block
|
|
82
|
+
[
|
|
83
|
+
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
|
|
84
|
+
["identifier", "", "string", "", "operator", "", "@brackets"]
|
|
85
|
+
],
|
|
86
|
+
// terraform general highlight - shared with expressions
|
|
87
|
+
{ include: "@terraform" }
|
|
88
|
+
],
|
|
89
|
+
terraform: [
|
|
90
|
+
// highlight terraform functions
|
|
91
|
+
[/@terraformFunctions(\()/, ["type", "@brackets"]],
|
|
92
|
+
// all other words are variables or keywords
|
|
93
|
+
[
|
|
94
|
+
/[a-zA-Z_]\w*-*/,
|
|
95
|
+
// must work with variables such as foo-bar and also with negative numbers
|
|
96
|
+
{
|
|
97
|
+
cases: {
|
|
98
|
+
"@keywords": { token: "keyword.$0" },
|
|
99
|
+
"@default": "variable"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
{ include: "@whitespace" },
|
|
104
|
+
{ include: "@heredoc" },
|
|
105
|
+
// delimiters and operators
|
|
106
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
107
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
108
|
+
[
|
|
109
|
+
/@symbols/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@operators": "operator",
|
|
113
|
+
"@default": ""
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
// numbers
|
|
118
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
119
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
120
|
+
[/\d[\d']*/, "number"],
|
|
121
|
+
[/\d/, "number"],
|
|
122
|
+
[/[;,.]/, "delimiter"],
|
|
123
|
+
// delimiter: after number because of .\d floats
|
|
124
|
+
// strings
|
|
125
|
+
[/"/, "string", "@string"],
|
|
126
|
+
// this will include expressions
|
|
127
|
+
[/'/, "invalid"]
|
|
128
|
+
],
|
|
129
|
+
heredoc: [
|
|
130
|
+
[/<<[-]*\s*["]?([\w\-]+)["]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
|
|
131
|
+
],
|
|
132
|
+
heredocBody: [
|
|
133
|
+
[
|
|
134
|
+
/([\w\-]+)$/,
|
|
135
|
+
{
|
|
136
|
+
cases: {
|
|
137
|
+
"$1==$S2": [
|
|
138
|
+
{
|
|
139
|
+
token: "string.heredoc.delimiter",
|
|
140
|
+
next: "@popall"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"@default": "string.heredoc"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
[/./, "string.heredoc"]
|
|
148
|
+
],
|
|
149
|
+
whitespace: [
|
|
150
|
+
[/[ \t\r\n]+/, ""],
|
|
151
|
+
[/\/\*/, "comment", "@comment"],
|
|
152
|
+
[/\/\/.*$/, "comment"],
|
|
153
|
+
[/#.*$/, "comment"]
|
|
154
|
+
],
|
|
155
|
+
comment: [
|
|
156
|
+
[/[^\/*]+/, "comment"],
|
|
157
|
+
[/\*\//, "comment", "@pop"],
|
|
158
|
+
[/[\/*]/, "comment"]
|
|
159
|
+
],
|
|
160
|
+
string: [
|
|
161
|
+
[/\$\{/, { token: "delimiter", next: "@stringExpression" }],
|
|
162
|
+
[/[^\\"\$]+/, "string"],
|
|
163
|
+
[/@escapes/, "string.escape"],
|
|
164
|
+
[/\\./, "string.escape.invalid"],
|
|
165
|
+
[/"/, "string", "@popall"]
|
|
166
|
+
],
|
|
167
|
+
stringInsideExpression: [
|
|
168
|
+
[/[^\\"]+/, "string"],
|
|
169
|
+
[/@escapes/, "string.escape"],
|
|
170
|
+
[/\\./, "string.escape.invalid"],
|
|
171
|
+
[/"/, "string", "@pop"]
|
|
172
|
+
],
|
|
173
|
+
stringExpression: [
|
|
174
|
+
[/\}/, { token: "delimiter", next: "@pop" }],
|
|
175
|
+
[/"/, "string", "@stringInsideExpression"],
|
|
176
|
+
{ include: "@terraform" }
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
export {
|
|
181
|
+
e as conf,
|
|
182
|
+
t as language
|
|
183
|
+
};
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { l as e } from "./index-D22E33Ns.mjs";
|
|
2
|
+
const t = [
|
|
3
|
+
"area",
|
|
4
|
+
"base",
|
|
5
|
+
"br",
|
|
6
|
+
"col",
|
|
7
|
+
"embed",
|
|
8
|
+
"hr",
|
|
9
|
+
"img",
|
|
10
|
+
"input",
|
|
11
|
+
"keygen",
|
|
12
|
+
"link",
|
|
13
|
+
"menuitem",
|
|
14
|
+
"meta",
|
|
15
|
+
"param",
|
|
16
|
+
"source",
|
|
17
|
+
"track",
|
|
18
|
+
"wbr"
|
|
19
|
+
], i = {
|
|
20
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
21
|
+
comments: {
|
|
22
|
+
blockComment: ["<!--", "-->"]
|
|
23
|
+
},
|
|
24
|
+
brackets: [
|
|
25
|
+
["<!--", "-->"],
|
|
26
|
+
["<", ">"],
|
|
27
|
+
["{", "}"],
|
|
28
|
+
["(", ")"]
|
|
29
|
+
],
|
|
30
|
+
autoClosingPairs: [
|
|
31
|
+
{ open: "{", close: "}" },
|
|
32
|
+
{ open: "[", close: "]" },
|
|
33
|
+
{ open: "(", close: ")" },
|
|
34
|
+
{ open: '"', close: '"' },
|
|
35
|
+
{ open: "'", close: "'" }
|
|
36
|
+
],
|
|
37
|
+
surroundingPairs: [
|
|
38
|
+
{ open: '"', close: '"' },
|
|
39
|
+
{ open: "'", close: "'" },
|
|
40
|
+
{ open: "{", close: "}" },
|
|
41
|
+
{ open: "[", close: "]" },
|
|
42
|
+
{ open: "(", close: ")" },
|
|
43
|
+
{ open: "<", close: ">" }
|
|
44
|
+
],
|
|
45
|
+
onEnterRules: [
|
|
46
|
+
{
|
|
47
|
+
beforeText: new RegExp(
|
|
48
|
+
`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
49
|
+
"i"
|
|
50
|
+
),
|
|
51
|
+
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
|
52
|
+
action: {
|
|
53
|
+
indentAction: e.IndentAction.IndentOutdent
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
beforeText: new RegExp(
|
|
58
|
+
`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
59
|
+
"i"
|
|
60
|
+
),
|
|
61
|
+
action: { indentAction: e.IndentAction.Indent }
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
folding: {
|
|
65
|
+
markers: {
|
|
66
|
+
start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
|
|
67
|
+
end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, r = {
|
|
71
|
+
defaultToken: "",
|
|
72
|
+
tokenPostfix: ".html",
|
|
73
|
+
ignoreCase: !0,
|
|
74
|
+
// The main tokenizer for our languages
|
|
75
|
+
tokenizer: {
|
|
76
|
+
root: [
|
|
77
|
+
[/<!DOCTYPE/, "metatag", "@doctype"],
|
|
78
|
+
[/<!--/, "comment", "@comment"],
|
|
79
|
+
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
|
|
80
|
+
[/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
|
|
81
|
+
[/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
|
|
82
|
+
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
|
|
83
|
+
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
|
|
84
|
+
[/</, "delimiter"],
|
|
85
|
+
[/[^<]+/]
|
|
86
|
+
// text
|
|
87
|
+
],
|
|
88
|
+
doctype: [
|
|
89
|
+
[/[^>]+/, "metatag.content"],
|
|
90
|
+
[/>/, "metatag", "@pop"]
|
|
91
|
+
],
|
|
92
|
+
comment: [
|
|
93
|
+
[/-->/, "comment", "@pop"],
|
|
94
|
+
[/[^-]+/, "comment.content"],
|
|
95
|
+
[/./, "comment.content"]
|
|
96
|
+
],
|
|
97
|
+
otherTag: [
|
|
98
|
+
[/\/?>/, "delimiter", "@pop"],
|
|
99
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
100
|
+
[/'([^']*)'/, "attribute.value"],
|
|
101
|
+
[/[\w\-]+/, "attribute.name"],
|
|
102
|
+
[/=/, "delimiter"],
|
|
103
|
+
[/[ \t\r\n]+/]
|
|
104
|
+
// whitespace
|
|
105
|
+
],
|
|
106
|
+
// -- BEGIN <script> tags handling
|
|
107
|
+
// After <script
|
|
108
|
+
script: [
|
|
109
|
+
[/type/, "attribute.name", "@scriptAfterType"],
|
|
110
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
111
|
+
[/'([^']*)'/, "attribute.value"],
|
|
112
|
+
[/[\w\-]+/, "attribute.name"],
|
|
113
|
+
[/=/, "delimiter"],
|
|
114
|
+
[
|
|
115
|
+
/>/,
|
|
116
|
+
{
|
|
117
|
+
token: "delimiter",
|
|
118
|
+
next: "@scriptEmbedded",
|
|
119
|
+
nextEmbedded: "text/javascript"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
[/[ \t\r\n]+/],
|
|
123
|
+
// whitespace
|
|
124
|
+
[/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
|
|
125
|
+
],
|
|
126
|
+
// After <script ... type
|
|
127
|
+
scriptAfterType: [
|
|
128
|
+
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
129
|
+
[
|
|
130
|
+
/>/,
|
|
131
|
+
{
|
|
132
|
+
token: "delimiter",
|
|
133
|
+
next: "@scriptEmbedded",
|
|
134
|
+
nextEmbedded: "text/javascript"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
// cover invalid e.g. <script type>
|
|
138
|
+
[/[ \t\r\n]+/],
|
|
139
|
+
// whitespace
|
|
140
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
141
|
+
],
|
|
142
|
+
// After <script ... type =
|
|
143
|
+
scriptAfterTypeEquals: [
|
|
144
|
+
[
|
|
145
|
+
/"module"/,
|
|
146
|
+
{
|
|
147
|
+
token: "attribute.value",
|
|
148
|
+
switchTo: "@scriptWithCustomType.text/javascript"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
[
|
|
152
|
+
/'module'/,
|
|
153
|
+
{
|
|
154
|
+
token: "attribute.value",
|
|
155
|
+
switchTo: "@scriptWithCustomType.text/javascript"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
[
|
|
159
|
+
/"([^"]*)"/,
|
|
160
|
+
{
|
|
161
|
+
token: "attribute.value",
|
|
162
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
[
|
|
166
|
+
/'([^']*)'/,
|
|
167
|
+
{
|
|
168
|
+
token: "attribute.value",
|
|
169
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
/>/,
|
|
174
|
+
{
|
|
175
|
+
token: "delimiter",
|
|
176
|
+
next: "@scriptEmbedded",
|
|
177
|
+
nextEmbedded: "text/javascript"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
// cover invalid e.g. <script type=>
|
|
181
|
+
[/[ \t\r\n]+/],
|
|
182
|
+
// whitespace
|
|
183
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
184
|
+
],
|
|
185
|
+
// After <script ... type = $S2
|
|
186
|
+
scriptWithCustomType: [
|
|
187
|
+
[
|
|
188
|
+
/>/,
|
|
189
|
+
{
|
|
190
|
+
token: "delimiter",
|
|
191
|
+
next: "@scriptEmbedded.$S2",
|
|
192
|
+
nextEmbedded: "$S2"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
196
|
+
[/'([^']*)'/, "attribute.value"],
|
|
197
|
+
[/[\w\-]+/, "attribute.name"],
|
|
198
|
+
[/=/, "delimiter"],
|
|
199
|
+
[/[ \t\r\n]+/],
|
|
200
|
+
// whitespace
|
|
201
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
202
|
+
],
|
|
203
|
+
scriptEmbedded: [
|
|
204
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
205
|
+
[/[^<]+/, ""]
|
|
206
|
+
],
|
|
207
|
+
// -- END <script> tags handling
|
|
208
|
+
// -- BEGIN <style> tags handling
|
|
209
|
+
// After <style
|
|
210
|
+
style: [
|
|
211
|
+
[/type/, "attribute.name", "@styleAfterType"],
|
|
212
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
213
|
+
[/'([^']*)'/, "attribute.value"],
|
|
214
|
+
[/[\w\-]+/, "attribute.name"],
|
|
215
|
+
[/=/, "delimiter"],
|
|
216
|
+
[
|
|
217
|
+
/>/,
|
|
218
|
+
{
|
|
219
|
+
token: "delimiter",
|
|
220
|
+
next: "@styleEmbedded",
|
|
221
|
+
nextEmbedded: "text/css"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
[/[ \t\r\n]+/],
|
|
225
|
+
// whitespace
|
|
226
|
+
[/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
|
|
227
|
+
],
|
|
228
|
+
// After <style ... type
|
|
229
|
+
styleAfterType: [
|
|
230
|
+
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
231
|
+
[
|
|
232
|
+
/>/,
|
|
233
|
+
{
|
|
234
|
+
token: "delimiter",
|
|
235
|
+
next: "@styleEmbedded",
|
|
236
|
+
nextEmbedded: "text/css"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
// cover invalid e.g. <style type>
|
|
240
|
+
[/[ \t\r\n]+/],
|
|
241
|
+
// whitespace
|
|
242
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
243
|
+
],
|
|
244
|
+
// After <style ... type =
|
|
245
|
+
styleAfterTypeEquals: [
|
|
246
|
+
[
|
|
247
|
+
/"([^"]*)"/,
|
|
248
|
+
{
|
|
249
|
+
token: "attribute.value",
|
|
250
|
+
switchTo: "@styleWithCustomType.$1"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
[
|
|
254
|
+
/'([^']*)'/,
|
|
255
|
+
{
|
|
256
|
+
token: "attribute.value",
|
|
257
|
+
switchTo: "@styleWithCustomType.$1"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
[
|
|
261
|
+
/>/,
|
|
262
|
+
{
|
|
263
|
+
token: "delimiter",
|
|
264
|
+
next: "@styleEmbedded",
|
|
265
|
+
nextEmbedded: "text/css"
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
// cover invalid e.g. <style type=>
|
|
269
|
+
[/[ \t\r\n]+/],
|
|
270
|
+
// whitespace
|
|
271
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
272
|
+
],
|
|
273
|
+
// After <style ... type = $S2
|
|
274
|
+
styleWithCustomType: [
|
|
275
|
+
[
|
|
276
|
+
/>/,
|
|
277
|
+
{
|
|
278
|
+
token: "delimiter",
|
|
279
|
+
next: "@styleEmbedded.$S2",
|
|
280
|
+
nextEmbedded: "$S2"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
284
|
+
[/'([^']*)'/, "attribute.value"],
|
|
285
|
+
[/[\w\-]+/, "attribute.name"],
|
|
286
|
+
[/=/, "delimiter"],
|
|
287
|
+
[/[ \t\r\n]+/],
|
|
288
|
+
// whitespace
|
|
289
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
290
|
+
],
|
|
291
|
+
styleEmbedded: [
|
|
292
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
293
|
+
[/[^<]+/, ""]
|
|
294
|
+
]
|
|
295
|
+
// -- END <style> tags handling
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
export {
|
|
299
|
+
i as conf,
|
|
300
|
+
r as language
|
|
301
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { c as D, l as t } from "./index-D22E33Ns.mjs";
|
|
2
|
+
import { H as d, D as l, h as c, F as u, b as h, S as m, c as p, f as w, g as _, C as R } from "./lspLanguageFeatures-B7Hqx8aW.mjs";
|
|
3
|
+
import { a as E, e as H, d as b, R as y, i as x, j as T, t as U, k as M } from "./lspLanguageFeatures-B7Hqx8aW.mjs";
|
|
4
|
+
const I = 120 * 1e3;
|
|
5
|
+
class f {
|
|
6
|
+
constructor(n) {
|
|
7
|
+
this._defaults = n, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
8
|
+
}
|
|
9
|
+
_stopWorker() {
|
|
10
|
+
this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
|
|
11
|
+
}
|
|
12
|
+
dispose() {
|
|
13
|
+
clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
|
|
14
|
+
}
|
|
15
|
+
_checkIfIdle() {
|
|
16
|
+
if (!this._worker)
|
|
17
|
+
return;
|
|
18
|
+
Date.now() - this._lastUsedTime > I && this._stopWorker();
|
|
19
|
+
}
|
|
20
|
+
_getClient() {
|
|
21
|
+
return this._lastUsedTime = Date.now(), this._client || (this._worker = D({
|
|
22
|
+
// module that exports the create() method and returns a `HTMLWorker` instance
|
|
23
|
+
moduleId: "vs/language/html/htmlWorker",
|
|
24
|
+
createWorker: () => new Worker(new URL(
|
|
25
|
+
/* @vite-ignore */
|
|
26
|
+
"/assets/html.worker-C8VxctEJ.js",
|
|
27
|
+
import.meta.url
|
|
28
|
+
), { type: "module" }),
|
|
29
|
+
// passed in to the create() method
|
|
30
|
+
createData: {
|
|
31
|
+
languageSettings: this._defaults.options,
|
|
32
|
+
languageId: this._defaults.languageId
|
|
33
|
+
},
|
|
34
|
+
label: this._defaults.languageId
|
|
35
|
+
}), this._client = this._worker.getProxy()), this._client;
|
|
36
|
+
}
|
|
37
|
+
getLanguageServiceWorker(...n) {
|
|
38
|
+
let e;
|
|
39
|
+
return this._getClient().then((r) => {
|
|
40
|
+
e = r;
|
|
41
|
+
}).then((r) => {
|
|
42
|
+
if (this._worker)
|
|
43
|
+
return this._worker.withSyncedResources(n);
|
|
44
|
+
}).then((r) => e);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
class v extends R {
|
|
48
|
+
constructor(n) {
|
|
49
|
+
super(n, [".", ":", "<", '"', "=", "/"]);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function A(i) {
|
|
53
|
+
const n = new f(i), e = (...s) => n.getLanguageServiceWorker(...s);
|
|
54
|
+
let r = i.languageId;
|
|
55
|
+
t.registerCompletionItemProvider(r, new v(e)), t.registerHoverProvider(r, new d(e)), t.registerDocumentHighlightProvider(
|
|
56
|
+
r,
|
|
57
|
+
new l(e)
|
|
58
|
+
), t.registerLinkProvider(r, new c(e)), t.registerFoldingRangeProvider(
|
|
59
|
+
r,
|
|
60
|
+
new u(e)
|
|
61
|
+
), t.registerDocumentSymbolProvider(
|
|
62
|
+
r,
|
|
63
|
+
new h(e)
|
|
64
|
+
), t.registerSelectionRangeProvider(
|
|
65
|
+
r,
|
|
66
|
+
new m(e)
|
|
67
|
+
), t.registerRenameProvider(r, new p(e)), r === "html" && (t.registerDocumentFormattingEditProvider(
|
|
68
|
+
r,
|
|
69
|
+
new w(e)
|
|
70
|
+
), t.registerDocumentRangeFormattingEditProvider(
|
|
71
|
+
r,
|
|
72
|
+
new _(e)
|
|
73
|
+
));
|
|
74
|
+
}
|
|
75
|
+
function W(i) {
|
|
76
|
+
const n = [], e = [], r = new f(i);
|
|
77
|
+
n.push(r);
|
|
78
|
+
const s = (...o) => r.getLanguageServiceWorker(...o);
|
|
79
|
+
function P() {
|
|
80
|
+
const { languageId: o, modeConfiguration: a } = i;
|
|
81
|
+
k(e), a.completionItems && e.push(
|
|
82
|
+
t.registerCompletionItemProvider(o, new v(s))
|
|
83
|
+
), a.hovers && e.push(
|
|
84
|
+
t.registerHoverProvider(o, new d(s))
|
|
85
|
+
), a.documentHighlights && e.push(
|
|
86
|
+
t.registerDocumentHighlightProvider(
|
|
87
|
+
o,
|
|
88
|
+
new l(s)
|
|
89
|
+
)
|
|
90
|
+
), a.links && e.push(
|
|
91
|
+
t.registerLinkProvider(o, new c(s))
|
|
92
|
+
), a.documentSymbols && e.push(
|
|
93
|
+
t.registerDocumentSymbolProvider(
|
|
94
|
+
o,
|
|
95
|
+
new h(s)
|
|
96
|
+
)
|
|
97
|
+
), a.rename && e.push(
|
|
98
|
+
t.registerRenameProvider(o, new p(s))
|
|
99
|
+
), a.foldingRanges && e.push(
|
|
100
|
+
t.registerFoldingRangeProvider(
|
|
101
|
+
o,
|
|
102
|
+
new u(s)
|
|
103
|
+
)
|
|
104
|
+
), a.selectionRanges && e.push(
|
|
105
|
+
t.registerSelectionRangeProvider(
|
|
106
|
+
o,
|
|
107
|
+
new m(s)
|
|
108
|
+
)
|
|
109
|
+
), a.documentFormattingEdits && e.push(
|
|
110
|
+
t.registerDocumentFormattingEditProvider(
|
|
111
|
+
o,
|
|
112
|
+
new w(s)
|
|
113
|
+
)
|
|
114
|
+
), a.documentRangeFormattingEdits && e.push(
|
|
115
|
+
t.registerDocumentRangeFormattingEditProvider(
|
|
116
|
+
o,
|
|
117
|
+
new _(s)
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
return P(), n.push(g(e)), g(n);
|
|
122
|
+
}
|
|
123
|
+
function g(i) {
|
|
124
|
+
return { dispose: () => k(i) };
|
|
125
|
+
}
|
|
126
|
+
function k(i) {
|
|
127
|
+
for (; i.length; )
|
|
128
|
+
i.pop().dispose();
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
R as CompletionAdapter,
|
|
132
|
+
E as DefinitionAdapter,
|
|
133
|
+
H as DiagnosticsAdapter,
|
|
134
|
+
b as DocumentColorAdapter,
|
|
135
|
+
w as DocumentFormattingEditProvider,
|
|
136
|
+
l as DocumentHighlightAdapter,
|
|
137
|
+
c as DocumentLinkAdapter,
|
|
138
|
+
_ as DocumentRangeFormattingEditProvider,
|
|
139
|
+
h as DocumentSymbolAdapter,
|
|
140
|
+
u as FoldingRangeAdapter,
|
|
141
|
+
d as HoverAdapter,
|
|
142
|
+
y as ReferenceAdapter,
|
|
143
|
+
p as RenameAdapter,
|
|
144
|
+
m as SelectionRangeAdapter,
|
|
145
|
+
f as WorkerManager,
|
|
146
|
+
x as fromPosition,
|
|
147
|
+
T as fromRange,
|
|
148
|
+
W as setupMode,
|
|
149
|
+
A as setupMode1,
|
|
150
|
+
U as toRange,
|
|
151
|
+
M as toTextEdit
|
|
152
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as ElButtonMe } from './components/el-button-me.vue';
|
|
2
|
+
import { default as ElInputMe } from './components/el-input-me.vue';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
install: (app: any) => void;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export { ElButtonMe, ElInputMe };
|