@univerjs/uniscript 0.3.0 → 0.4.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/abap-BZS-1p12.js +6 -0
- package/lib/abap-D8H3nII2.mjs +1404 -0
- package/lib/apex-B2xdRF0k.js +6 -0
- package/lib/apex-BVHYDV51.mjs +334 -0
- package/lib/azcli-BwJ4gbR1.mjs +74 -0
- package/lib/azcli-CKk2q0zF.js +6 -0
- package/lib/bat-BDmMqWXx.mjs +106 -0
- package/lib/bat-Ehz5Z_mk.js +6 -0
- package/lib/bicep-B5L2IbSj.mjs +110 -0
- package/lib/bicep-WbLMPUMj.js +7 -0
- package/lib/cameligo-B_ldnAvM.js +6 -0
- package/lib/cameligo-CmyOPZUd.mjs +180 -0
- package/lib/cjs/index.js +1 -9
- package/lib/clojure-Dg-qgg-1.js +6 -0
- package/lib/clojure-iSXHsTlR.mjs +767 -0
- package/lib/coffee-BCg0pb49.js +6 -0
- package/lib/coffee-BUCk2FHC.mjs +238 -0
- package/lib/cpp-CJWZ7Zo7.js +6 -0
- package/lib/cpp-MUyeqRt5.mjs +395 -0
- package/lib/csharp-B9vyMfVU.mjs +332 -0
- package/lib/csharp-BZypj8XG.js +6 -0
- package/lib/csp-BfXxGnNN.js +6 -0
- package/lib/csp-CbylPXe5.mjs +59 -0
- package/lib/css-BPDnvT2s.js +8 -0
- package/lib/css-BQSMT8k7.mjs +193 -0
- package/lib/cssMode-B_of5tVd.js +9 -0
- package/lib/cssMode-BuX-eUHc.mjs +1604 -0
- package/lib/cypher-3bNWMNCJ.js +6 -0
- package/lib/cypher-D7IWy_82.mjs +269 -0
- package/lib/dart-BCVbUKaH.mjs +287 -0
- package/lib/dart-C9Glm5m-.js +6 -0
- package/lib/dockerfile-CjnlcV5o.js +6 -0
- package/lib/dockerfile-D2-hSnDX.mjs +136 -0
- package/lib/ecl-DRJlPmOb.mjs +462 -0
- package/lib/ecl-UyoSfv7F.js +6 -0
- package/lib/elixir-Bol0p0Ia.js +6 -0
- package/lib/elixir-D8NBXKCb.mjs +575 -0
- package/lib/es/index.js +5 -262
- package/lib/flow9-Be1OUdJl.js +6 -0
- package/lib/flow9-Dp7h8rKW.mjs +148 -0
- package/lib/freemarker2-D8-fH4uC.mjs +1001 -0
- package/lib/freemarker2-S5ay_GEf.js +8 -0
- package/lib/fsharp-CJxdVP7r.mjs +223 -0
- package/lib/fsharp-CKIYWNYJ.js +6 -0
- package/lib/go-DWj6zslQ.js +6 -0
- package/lib/go-IPaMO3Uz.mjs +224 -0
- package/lib/graphql-BzJpwfxN.js +6 -0
- package/lib/graphql-CMoDK5uf.mjs +157 -0
- package/lib/handlebars-CEMNnGaU.mjs +427 -0
- package/lib/handlebars-CM3PRDRO.js +6 -0
- package/lib/hcl-BCY6T0iq.js +6 -0
- package/lib/hcl-BTAYK4pT.mjs +189 -0
- package/lib/html-BSUn7oJR.mjs +316 -0
- package/lib/html-Df-Osxjs.js +6 -0
- package/lib/htmlMode-Bj4CfAzA.js +9 -0
- package/lib/htmlMode-xJPwX0cD.mjs +1615 -0
- package/lib/index-D6nY5NdF.mjs +116821 -0
- package/lib/index-rYV4VmC2.js +1163 -0
- package/lib/index.css +1 -1
- package/lib/ini-CC3_THb4.js +6 -0
- package/lib/ini-CiaphB6F.mjs +77 -0
- package/lib/java-CwRV8Dsg.js +6 -0
- package/lib/java-DxksziCw.mjs +238 -0
- package/lib/javascript-D1eKEotE.js +6 -0
- package/lib/javascript-c8D1_K05.mjs +76 -0
- package/lib/jsonMode-8-L3-E9k.mjs +2042 -0
- package/lib/jsonMode-BdBVsN9_.js +15 -0
- package/lib/julia-7Z1jwT4W.js +6 -0
- package/lib/julia-TTty8och.mjs +517 -0
- package/lib/kotlin-BAXgl2QX.js +6 -0
- package/lib/kotlin-Dzand-bM.mjs +259 -0
- package/lib/less-CSG9Zdoy.js +7 -0
- package/lib/less-CWDFQI_i.mjs +168 -0
- package/lib/lexon-BiTtMD9F.js +6 -0
- package/lib/lexon-bZpjZioh.mjs +163 -0
- package/lib/liquid-BmlJOXgY.js +6 -0
- package/lib/liquid-Bs7DM5cg.mjs +248 -0
- package/lib/locale/fa-IR.json +17 -0
- package/lib/lua-CoWYKXUu.mjs +168 -0
- package/lib/lua-o7UTFJ05.js +6 -0
- package/lib/m3-DIJY3uEe.mjs +216 -0
- package/lib/m3-DOYTRLxi.js +6 -0
- package/lib/markdown-CDlkMTMZ.mjs +235 -0
- package/lib/markdown-Di5faXtP.js +6 -0
- package/lib/mdx-BEI71kqO.mjs +173 -0
- package/lib/mdx-DJV2KJ98.js +6 -0
- package/lib/mips-CIiuS33B.mjs +204 -0
- package/lib/mips-CjGjcf9D.js +6 -0
- package/lib/msdax-4_jBeazN.mjs +381 -0
- package/lib/msdax-DZFpIwAH.js +6 -0
- package/lib/mysql-6Y0DL_eO.js +6 -0
- package/lib/mysql-D_KZRjSR.mjs +884 -0
- package/lib/objective-c-7nsY1fc1.mjs +189 -0
- package/lib/objective-c-BtrzMwBz.js +6 -0
- package/lib/pascal-BF06Dt9I.js +6 -0
- package/lib/pascal-BHpF9PW1.mjs +257 -0
- package/lib/pascaligo-BDrxVOcH.js +6 -0
- package/lib/pascaligo-C3mRbxmU.mjs +170 -0
- package/lib/perl-BMlqAyyD.js +6 -0
- package/lib/perl-F3tWDMLI.mjs +632 -0
- package/lib/pgsql-D62t1RD_.mjs +857 -0
- package/lib/pgsql-DXYBcnYD.js +6 -0
- package/lib/php-C8GGPjjI.mjs +506 -0
- package/lib/php-DmDmMNs3.js +6 -0
- package/lib/pla-2A6q3K8_.js +6 -0
- package/lib/pla-C_W_x2fV.mjs +143 -0
- package/lib/postiats-CMS8WwLg.mjs +913 -0
- package/lib/postiats-DQ-6iLGI.js +6 -0
- package/lib/powerquery-CuZPk7NC.js +6 -0
- package/lib/powerquery-Dcs0XplE.mjs +896 -0
- package/lib/powershell-Brx1N_3T.mjs +245 -0
- package/lib/powershell-D7BqJxnS.js +6 -0
- package/lib/protobuf-CkqkhuUG.js +7 -0
- package/lib/protobuf-UEJDuX6l.mjs +426 -0
- package/lib/pug-65DF18O8.js +6 -0
- package/lib/pug-LDwDmrMc.mjs +408 -0
- package/lib/python-BOeTitp9.mjs +309 -0
- package/lib/python-DRyE-VQQ.js +6 -0
- package/lib/qsharp-Cb7hPwnM.mjs +307 -0
- package/lib/qsharp-Dw07PXbd.js +6 -0
- package/lib/r-BHuY0po5.js +6 -0
- package/lib/r-BiFgSgcs.mjs +249 -0
- package/lib/razor-D0RPXCAO.mjs +558 -0
- package/lib/razor-DtDOotKq.js +6 -0
- package/lib/redis-BdzqoKC2.mjs +308 -0
- package/lib/redis-_Q4kv9ug.js +6 -0
- package/lib/redshift-DNNCHCLR.js +6 -0
- package/lib/redshift-Df6PoiEL.mjs +815 -0
- package/lib/restructuredtext-C9FM3r80.js +6 -0
- package/lib/restructuredtext-CW0ZtQ2l.mjs +180 -0
- package/lib/ruby-DyIFepcy.mjs +517 -0
- package/lib/ruby-DyJmXCYh.js +6 -0
- package/lib/rust-BiRHKB0S.mjs +349 -0
- package/lib/rust-DVvzZ_uH.js +6 -0
- package/lib/sb-CFwmZh3c.js +6 -0
- package/lib/sb-CahkGwPC.mjs +121 -0
- package/lib/scala-Cg9Wfw6B.mjs +376 -0
- package/lib/scala-DjaRe0PR.js +6 -0
- package/lib/scheme-Bqb0wlMX.mjs +114 -0
- package/lib/scheme-ZdeLzG0d.js +6 -0
- package/lib/scss-3qd2syug.mjs +268 -0
- package/lib/scss-Dqv1RljX.js +8 -0
- package/lib/shell-B5iW6U-v.mjs +227 -0
- package/lib/shell-BJ5zD_-e.js +6 -0
- package/lib/solidity-8Ys0iSgd.mjs +1373 -0
- package/lib/solidity-CagYWQAe.js +6 -0
- package/lib/sophia-PnZfErC3.mjs +205 -0
- package/lib/sophia-szuux90p.js +6 -0
- package/lib/sparql-CXz1-gkd.js +6 -0
- package/lib/sparql-CgWX-KRM.mjs +207 -0
- package/lib/sql-CN3Vg4Sm.mjs +859 -0
- package/lib/sql-CWZ5x4mg.js +6 -0
- package/lib/st-CcWMPoh3.js +6 -0
- package/lib/st-DKDuarOh.mjs +422 -0
- package/lib/swift-DUBoAkDR.js +8 -0
- package/lib/swift-DnXH6Con.mjs +318 -0
- package/lib/systemverilog-5hQzl-99.js +6 -0
- package/lib/systemverilog-pJOgZU46.mjs +582 -0
- package/lib/tcl-Bls9iNXn.mjs +238 -0
- package/lib/tcl-CiK0GhJi.js +6 -0
- package/lib/tsMode-BB2mDc5d.mjs +906 -0
- package/lib/tsMode-N-LS5RKx.js +16 -0
- package/lib/twig-B14HEeE0.mjs +398 -0
- package/lib/twig-Cbq-Ua-E.js +6 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/plugin.d.ts +2 -1
- package/lib/typescript-CZplv8KD.js +6 -0
- package/lib/typescript-f9PHTVoW.mjs +351 -0
- package/lib/typespec-Br_LC070.js +6 -0
- package/lib/typespec-dAaIdBal.mjs +125 -0
- package/lib/umd/index.js +1914 -2
- package/lib/vb-B1HzwoGL.js +6 -0
- package/lib/vb-CPBujGrP.mjs +378 -0
- package/lib/wgsl-BNAUPMiJ.js +303 -0
- package/lib/wgsl-CqCqdnZC.mjs +448 -0
- package/lib/xml-BSe-ETnG.js +6 -0
- package/lib/xml-Dv0cmUxw.mjs +103 -0
- package/lib/yaml-O_DoXtBP.js +6 -0
- package/lib/yaml-eXS7QSgG.mjs +214 -0
- package/package.json +13 -21
@@ -0,0 +1,157 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var conf = {
|
8
|
+
comments: {
|
9
|
+
lineComment: "#"
|
10
|
+
},
|
11
|
+
brackets: [
|
12
|
+
["{", "}"],
|
13
|
+
["[", "]"],
|
14
|
+
["(", ")"]
|
15
|
+
],
|
16
|
+
autoClosingPairs: [
|
17
|
+
{ open: "{", close: "}" },
|
18
|
+
{ open: "[", close: "]" },
|
19
|
+
{ open: "(", close: ")" },
|
20
|
+
{ open: '"""', close: '"""', notIn: ["string", "comment"] },
|
21
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
22
|
+
],
|
23
|
+
surroundingPairs: [
|
24
|
+
{ open: "{", close: "}" },
|
25
|
+
{ open: "[", close: "]" },
|
26
|
+
{ open: "(", close: ")" },
|
27
|
+
{ open: '"""', close: '"""' },
|
28
|
+
{ open: '"', close: '"' }
|
29
|
+
],
|
30
|
+
folding: {
|
31
|
+
offSide: !0
|
32
|
+
}
|
33
|
+
}, language = {
|
34
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
35
|
+
defaultToken: "invalid",
|
36
|
+
tokenPostfix: ".gql",
|
37
|
+
keywords: [
|
38
|
+
"null",
|
39
|
+
"true",
|
40
|
+
"false",
|
41
|
+
"query",
|
42
|
+
"mutation",
|
43
|
+
"subscription",
|
44
|
+
"extend",
|
45
|
+
"schema",
|
46
|
+
"directive",
|
47
|
+
"scalar",
|
48
|
+
"type",
|
49
|
+
"interface",
|
50
|
+
"union",
|
51
|
+
"enum",
|
52
|
+
"input",
|
53
|
+
"implements",
|
54
|
+
"fragment",
|
55
|
+
"on"
|
56
|
+
],
|
57
|
+
typeKeywords: ["Int", "Float", "String", "Boolean", "ID"],
|
58
|
+
directiveLocations: [
|
59
|
+
"SCHEMA",
|
60
|
+
"SCALAR",
|
61
|
+
"OBJECT",
|
62
|
+
"FIELD_DEFINITION",
|
63
|
+
"ARGUMENT_DEFINITION",
|
64
|
+
"INTERFACE",
|
65
|
+
"UNION",
|
66
|
+
"ENUM",
|
67
|
+
"ENUM_VALUE",
|
68
|
+
"INPUT_OBJECT",
|
69
|
+
"INPUT_FIELD_DEFINITION",
|
70
|
+
"QUERY",
|
71
|
+
"MUTATION",
|
72
|
+
"SUBSCRIPTION",
|
73
|
+
"FIELD",
|
74
|
+
"FRAGMENT_DEFINITION",
|
75
|
+
"FRAGMENT_SPREAD",
|
76
|
+
"INLINE_FRAGMENT",
|
77
|
+
"VARIABLE_DEFINITION"
|
78
|
+
],
|
79
|
+
operators: ["=", "!", "?", ":", "&", "|"],
|
80
|
+
// we include these common regular expressions
|
81
|
+
symbols: /[=!?:&|]+/,
|
82
|
+
// https://facebook.github.io/graphql/draft/#sec-String-Value
|
83
|
+
escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
|
84
|
+
// The main tokenizer for our languages
|
85
|
+
tokenizer: {
|
86
|
+
root: [
|
87
|
+
// fields and argument names
|
88
|
+
[
|
89
|
+
/[a-z_][\w$]*/,
|
90
|
+
{
|
91
|
+
cases: {
|
92
|
+
"@keywords": "keyword",
|
93
|
+
"@default": "key.identifier"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
],
|
97
|
+
// identify typed input variables
|
98
|
+
[
|
99
|
+
/[$][\w$]*/,
|
100
|
+
{
|
101
|
+
cases: {
|
102
|
+
"@keywords": "keyword",
|
103
|
+
"@default": "argument.identifier"
|
104
|
+
}
|
105
|
+
}
|
106
|
+
],
|
107
|
+
// to show class names nicely
|
108
|
+
[
|
109
|
+
/[A-Z][\w\$]*/,
|
110
|
+
{
|
111
|
+
cases: {
|
112
|
+
"@typeKeywords": "keyword",
|
113
|
+
"@default": "type.identifier"
|
114
|
+
}
|
115
|
+
}
|
116
|
+
],
|
117
|
+
// whitespace
|
118
|
+
{ include: "@whitespace" },
|
119
|
+
// delimiters and operators
|
120
|
+
[/[{}()\[\]]/, "@brackets"],
|
121
|
+
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
122
|
+
// @ annotations.
|
123
|
+
// As an example, we emit a debugging log message on these tokens.
|
124
|
+
// Note: message are supressed during the first load -- change some lines to see them.
|
125
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }],
|
126
|
+
// numbers
|
127
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
128
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
129
|
+
[/\d+/, "number"],
|
130
|
+
// delimiter: after number because of .\d floats
|
131
|
+
[/[;,.]/, "delimiter"],
|
132
|
+
[/"""/, { token: "string", next: "@mlstring", nextEmbedded: "markdown" }],
|
133
|
+
// strings
|
134
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
135
|
+
// non-teminated string
|
136
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
137
|
+
],
|
138
|
+
mlstring: [
|
139
|
+
[/[^"]+/, "string"],
|
140
|
+
['"""', { token: "string", next: "@pop", nextEmbedded: "@pop" }]
|
141
|
+
],
|
142
|
+
string: [
|
143
|
+
[/[^\\"]+/, "string"],
|
144
|
+
[/@escapes/, "string.escape"],
|
145
|
+
[/\\./, "string.escape.invalid"],
|
146
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
147
|
+
],
|
148
|
+
whitespace: [
|
149
|
+
[/[ \t\r\n]+/, ""],
|
150
|
+
[/#.*$/, "comment"]
|
151
|
+
]
|
152
|
+
}
|
153
|
+
};
|
154
|
+
export {
|
155
|
+
conf,
|
156
|
+
language
|
157
|
+
};
|
@@ -0,0 +1,427 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
|
3
|
+
import { m as monaco_editor_core_star } from "./index-D6nY5NdF.mjs";
|
4
|
+
/*!-----------------------------------------------------------------------------
|
5
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
6
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
7
|
+
* Released under the MIT license
|
8
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
9
|
+
*-----------------------------------------------------------------------------*/
|
10
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
return to;
|
15
|
+
}, "__copyProps"), __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget), "__reExport"), monaco_editor_core_exports = {};
|
16
|
+
__reExport(monaco_editor_core_exports, monaco_editor_core_star);
|
17
|
+
var EMPTY_ELEMENTS = [
|
18
|
+
"area",
|
19
|
+
"base",
|
20
|
+
"br",
|
21
|
+
"col",
|
22
|
+
"embed",
|
23
|
+
"hr",
|
24
|
+
"img",
|
25
|
+
"input",
|
26
|
+
"keygen",
|
27
|
+
"link",
|
28
|
+
"menuitem",
|
29
|
+
"meta",
|
30
|
+
"param",
|
31
|
+
"source",
|
32
|
+
"track",
|
33
|
+
"wbr"
|
34
|
+
], conf = {
|
35
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
36
|
+
comments: {
|
37
|
+
blockComment: ["{{!--", "--}}"]
|
38
|
+
},
|
39
|
+
brackets: [
|
40
|
+
["<!--", "-->"],
|
41
|
+
["<", ">"],
|
42
|
+
["{{", "}}"],
|
43
|
+
["{", "}"],
|
44
|
+
["(", ")"]
|
45
|
+
],
|
46
|
+
autoClosingPairs: [
|
47
|
+
{ open: "{", close: "}" },
|
48
|
+
{ open: "[", close: "]" },
|
49
|
+
{ open: "(", close: ")" },
|
50
|
+
{ open: '"', close: '"' },
|
51
|
+
{ open: "'", close: "'" }
|
52
|
+
],
|
53
|
+
surroundingPairs: [
|
54
|
+
{ open: "<", close: ">" },
|
55
|
+
{ open: '"', close: '"' },
|
56
|
+
{ open: "'", close: "'" }
|
57
|
+
],
|
58
|
+
onEnterRules: [
|
59
|
+
{
|
60
|
+
beforeText: new RegExp(
|
61
|
+
`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
62
|
+
"i"
|
63
|
+
),
|
64
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
65
|
+
action: {
|
66
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
67
|
+
}
|
68
|
+
},
|
69
|
+
{
|
70
|
+
beforeText: new RegExp(
|
71
|
+
`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
72
|
+
"i"
|
73
|
+
),
|
74
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
75
|
+
}
|
76
|
+
]
|
77
|
+
}, language = {
|
78
|
+
defaultToken: "",
|
79
|
+
tokenPostfix: "",
|
80
|
+
// ignoreCase: true,
|
81
|
+
// The main tokenizer for our languages
|
82
|
+
tokenizer: {
|
83
|
+
root: [
|
84
|
+
[/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"],
|
85
|
+
[/\{\{!/, "comment.start.handlebars", "@comment"],
|
86
|
+
[/\{\{/, { token: "@rematch", switchTo: "@handlebarsInSimpleState.root" }],
|
87
|
+
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
88
|
+
[/<!--/, "comment.html", "@commentHtml"],
|
89
|
+
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
90
|
+
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
91
|
+
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
92
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
93
|
+
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
94
|
+
[/</, "delimiter.html"],
|
95
|
+
[/\{/, "delimiter.html"],
|
96
|
+
[/[^<{]+/]
|
97
|
+
// text
|
98
|
+
],
|
99
|
+
doctype: [
|
100
|
+
[
|
101
|
+
/\{\{/,
|
102
|
+
{
|
103
|
+
token: "@rematch",
|
104
|
+
switchTo: "@handlebarsInSimpleState.comment"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
[/[^>]+/, "metatag.content.html"],
|
108
|
+
[/>/, "metatag.html", "@pop"]
|
109
|
+
],
|
110
|
+
comment: [
|
111
|
+
[/\}\}/, "comment.end.handlebars", "@pop"],
|
112
|
+
[/./, "comment.content.handlebars"]
|
113
|
+
],
|
114
|
+
commentBlock: [
|
115
|
+
[/--\}\}/, "comment.block.end.handlebars", "@pop"],
|
116
|
+
[/./, "comment.content.handlebars"]
|
117
|
+
],
|
118
|
+
commentHtml: [
|
119
|
+
[
|
120
|
+
/\{\{/,
|
121
|
+
{
|
122
|
+
token: "@rematch",
|
123
|
+
switchTo: "@handlebarsInSimpleState.comment"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
[/-->/, "comment.html", "@pop"],
|
127
|
+
[/[^-]+/, "comment.content.html"],
|
128
|
+
[/./, "comment.content.html"]
|
129
|
+
],
|
130
|
+
otherTag: [
|
131
|
+
[
|
132
|
+
/\{\{/,
|
133
|
+
{
|
134
|
+
token: "@rematch",
|
135
|
+
switchTo: "@handlebarsInSimpleState.otherTag"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
139
|
+
[/"([^"]*)"/, "attribute.value"],
|
140
|
+
[/'([^']*)'/, "attribute.value"],
|
141
|
+
[/[\w\-]+/, "attribute.name"],
|
142
|
+
[/=/, "delimiter"],
|
143
|
+
[/[ \t\r\n]+/]
|
144
|
+
// whitespace
|
145
|
+
],
|
146
|
+
// -- BEGIN <script> tags handling
|
147
|
+
// After <script
|
148
|
+
script: [
|
149
|
+
[
|
150
|
+
/\{\{/,
|
151
|
+
{
|
152
|
+
token: "@rematch",
|
153
|
+
switchTo: "@handlebarsInSimpleState.script"
|
154
|
+
}
|
155
|
+
],
|
156
|
+
[/type/, "attribute.name", "@scriptAfterType"],
|
157
|
+
[/"([^"]*)"/, "attribute.value"],
|
158
|
+
[/'([^']*)'/, "attribute.value"],
|
159
|
+
[/[\w\-]+/, "attribute.name"],
|
160
|
+
[/=/, "delimiter"],
|
161
|
+
[
|
162
|
+
/>/,
|
163
|
+
{
|
164
|
+
token: "delimiter.html",
|
165
|
+
next: "@scriptEmbedded.text/javascript",
|
166
|
+
nextEmbedded: "text/javascript"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
[/[ \t\r\n]+/],
|
170
|
+
// whitespace
|
171
|
+
[
|
172
|
+
/(<\/)(script\s*)(>)/,
|
173
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
174
|
+
]
|
175
|
+
],
|
176
|
+
// After <script ... type
|
177
|
+
scriptAfterType: [
|
178
|
+
[
|
179
|
+
/\{\{/,
|
180
|
+
{
|
181
|
+
token: "@rematch",
|
182
|
+
switchTo: "@handlebarsInSimpleState.scriptAfterType"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
186
|
+
[
|
187
|
+
/>/,
|
188
|
+
{
|
189
|
+
token: "delimiter.html",
|
190
|
+
next: "@scriptEmbedded.text/javascript",
|
191
|
+
nextEmbedded: "text/javascript"
|
192
|
+
}
|
193
|
+
],
|
194
|
+
// cover invalid e.g. <script type>
|
195
|
+
[/[ \t\r\n]+/],
|
196
|
+
// whitespace
|
197
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
198
|
+
],
|
199
|
+
// After <script ... type =
|
200
|
+
scriptAfterTypeEquals: [
|
201
|
+
[
|
202
|
+
/\{\{/,
|
203
|
+
{
|
204
|
+
token: "@rematch",
|
205
|
+
switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
|
206
|
+
}
|
207
|
+
],
|
208
|
+
[
|
209
|
+
/"([^"]*)"/,
|
210
|
+
{
|
211
|
+
token: "attribute.value",
|
212
|
+
switchTo: "@scriptWithCustomType.$1"
|
213
|
+
}
|
214
|
+
],
|
215
|
+
[
|
216
|
+
/'([^']*)'/,
|
217
|
+
{
|
218
|
+
token: "attribute.value",
|
219
|
+
switchTo: "@scriptWithCustomType.$1"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
[
|
223
|
+
/>/,
|
224
|
+
{
|
225
|
+
token: "delimiter.html",
|
226
|
+
next: "@scriptEmbedded.text/javascript",
|
227
|
+
nextEmbedded: "text/javascript"
|
228
|
+
}
|
229
|
+
],
|
230
|
+
// cover invalid e.g. <script type=>
|
231
|
+
[/[ \t\r\n]+/],
|
232
|
+
// whitespace
|
233
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
234
|
+
],
|
235
|
+
// After <script ... type = $S2
|
236
|
+
scriptWithCustomType: [
|
237
|
+
[
|
238
|
+
/\{\{/,
|
239
|
+
{
|
240
|
+
token: "@rematch",
|
241
|
+
switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
|
242
|
+
}
|
243
|
+
],
|
244
|
+
[
|
245
|
+
/>/,
|
246
|
+
{
|
247
|
+
token: "delimiter.html",
|
248
|
+
next: "@scriptEmbedded.$S2",
|
249
|
+
nextEmbedded: "$S2"
|
250
|
+
}
|
251
|
+
],
|
252
|
+
[/"([^"]*)"/, "attribute.value"],
|
253
|
+
[/'([^']*)'/, "attribute.value"],
|
254
|
+
[/[\w\-]+/, "attribute.name"],
|
255
|
+
[/=/, "delimiter"],
|
256
|
+
[/[ \t\r\n]+/],
|
257
|
+
// whitespace
|
258
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
259
|
+
],
|
260
|
+
scriptEmbedded: [
|
261
|
+
[
|
262
|
+
/\{\{/,
|
263
|
+
{
|
264
|
+
token: "@rematch",
|
265
|
+
switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
|
266
|
+
nextEmbedded: "@pop"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
270
|
+
],
|
271
|
+
// -- END <script> tags handling
|
272
|
+
// -- BEGIN <style> tags handling
|
273
|
+
// After <style
|
274
|
+
style: [
|
275
|
+
[
|
276
|
+
/\{\{/,
|
277
|
+
{
|
278
|
+
token: "@rematch",
|
279
|
+
switchTo: "@handlebarsInSimpleState.style"
|
280
|
+
}
|
281
|
+
],
|
282
|
+
[/type/, "attribute.name", "@styleAfterType"],
|
283
|
+
[/"([^"]*)"/, "attribute.value"],
|
284
|
+
[/'([^']*)'/, "attribute.value"],
|
285
|
+
[/[\w\-]+/, "attribute.name"],
|
286
|
+
[/=/, "delimiter"],
|
287
|
+
[
|
288
|
+
/>/,
|
289
|
+
{
|
290
|
+
token: "delimiter.html",
|
291
|
+
next: "@styleEmbedded.text/css",
|
292
|
+
nextEmbedded: "text/css"
|
293
|
+
}
|
294
|
+
],
|
295
|
+
[/[ \t\r\n]+/],
|
296
|
+
// whitespace
|
297
|
+
[
|
298
|
+
/(<\/)(style\s*)(>)/,
|
299
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
300
|
+
]
|
301
|
+
],
|
302
|
+
// After <style ... type
|
303
|
+
styleAfterType: [
|
304
|
+
[
|
305
|
+
/\{\{/,
|
306
|
+
{
|
307
|
+
token: "@rematch",
|
308
|
+
switchTo: "@handlebarsInSimpleState.styleAfterType"
|
309
|
+
}
|
310
|
+
],
|
311
|
+
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
312
|
+
[
|
313
|
+
/>/,
|
314
|
+
{
|
315
|
+
token: "delimiter.html",
|
316
|
+
next: "@styleEmbedded.text/css",
|
317
|
+
nextEmbedded: "text/css"
|
318
|
+
}
|
319
|
+
],
|
320
|
+
// cover invalid e.g. <style type>
|
321
|
+
[/[ \t\r\n]+/],
|
322
|
+
// whitespace
|
323
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
324
|
+
],
|
325
|
+
// After <style ... type =
|
326
|
+
styleAfterTypeEquals: [
|
327
|
+
[
|
328
|
+
/\{\{/,
|
329
|
+
{
|
330
|
+
token: "@rematch",
|
331
|
+
switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
|
332
|
+
}
|
333
|
+
],
|
334
|
+
[
|
335
|
+
/"([^"]*)"/,
|
336
|
+
{
|
337
|
+
token: "attribute.value",
|
338
|
+
switchTo: "@styleWithCustomType.$1"
|
339
|
+
}
|
340
|
+
],
|
341
|
+
[
|
342
|
+
/'([^']*)'/,
|
343
|
+
{
|
344
|
+
token: "attribute.value",
|
345
|
+
switchTo: "@styleWithCustomType.$1"
|
346
|
+
}
|
347
|
+
],
|
348
|
+
[
|
349
|
+
/>/,
|
350
|
+
{
|
351
|
+
token: "delimiter.html",
|
352
|
+
next: "@styleEmbedded.text/css",
|
353
|
+
nextEmbedded: "text/css"
|
354
|
+
}
|
355
|
+
],
|
356
|
+
// cover invalid e.g. <style type=>
|
357
|
+
[/[ \t\r\n]+/],
|
358
|
+
// whitespace
|
359
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
360
|
+
],
|
361
|
+
// After <style ... type = $S2
|
362
|
+
styleWithCustomType: [
|
363
|
+
[
|
364
|
+
/\{\{/,
|
365
|
+
{
|
366
|
+
token: "@rematch",
|
367
|
+
switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
|
368
|
+
}
|
369
|
+
],
|
370
|
+
[
|
371
|
+
/>/,
|
372
|
+
{
|
373
|
+
token: "delimiter.html",
|
374
|
+
next: "@styleEmbedded.$S2",
|
375
|
+
nextEmbedded: "$S2"
|
376
|
+
}
|
377
|
+
],
|
378
|
+
[/"([^"]*)"/, "attribute.value"],
|
379
|
+
[/'([^']*)'/, "attribute.value"],
|
380
|
+
[/[\w\-]+/, "attribute.name"],
|
381
|
+
[/=/, "delimiter"],
|
382
|
+
[/[ \t\r\n]+/],
|
383
|
+
// whitespace
|
384
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
385
|
+
],
|
386
|
+
styleEmbedded: [
|
387
|
+
[
|
388
|
+
/\{\{/,
|
389
|
+
{
|
390
|
+
token: "@rematch",
|
391
|
+
switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
|
392
|
+
nextEmbedded: "@pop"
|
393
|
+
}
|
394
|
+
],
|
395
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
396
|
+
],
|
397
|
+
// -- END <style> tags handling
|
398
|
+
handlebarsInSimpleState: [
|
399
|
+
[/\{\{\{?/, "delimiter.handlebars"],
|
400
|
+
[/\}\}\}?/, { token: "delimiter.handlebars", switchTo: "@$S2.$S3" }],
|
401
|
+
{ include: "handlebarsRoot" }
|
402
|
+
],
|
403
|
+
handlebarsInEmbeddedState: [
|
404
|
+
[/\{\{\{?/, "delimiter.handlebars"],
|
405
|
+
[
|
406
|
+
/\}\}\}?/,
|
407
|
+
{
|
408
|
+
token: "delimiter.handlebars",
|
409
|
+
switchTo: "@$S2.$S3",
|
410
|
+
nextEmbedded: "$S3"
|
411
|
+
}
|
412
|
+
],
|
413
|
+
{ include: "handlebarsRoot" }
|
414
|
+
],
|
415
|
+
handlebarsRoot: [
|
416
|
+
[/"[^"]*"/, "string.handlebars"],
|
417
|
+
[/[#/][^\s}]+/, "keyword.helper.handlebars"],
|
418
|
+
[/else\b/, "keyword.helper.handlebars"],
|
419
|
+
[/[\s]+/],
|
420
|
+
[/[^}]/, "variable.parameter.handlebars"]
|
421
|
+
]
|
422
|
+
}
|
423
|
+
};
|
424
|
+
export {
|
425
|
+
conf,
|
426
|
+
language
|
427
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("./index-rYV4VmC2.js");/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=__name((to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:__name(()=>from[key],"get"),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget),"__reExport"),monaco_editor_core_exports={};__reExport(monaco_editor_core_exports,index.monaco_editor_core_star);var EMPTY_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}}]},language={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};exports.conf=conf;exports.language=language;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var conf={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},language={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,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)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}};exports.conf=conf;exports.language=language;
|