@infinilabs/discover 0.0.1
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/LICENSE +9 -0
- package/README.md +8 -0
- package/dist/abap-B988NUrV.js +122 -0
- package/dist/abap-obercqiY.cjs +1 -0
- package/dist/apex-B0_UGK1B.cjs +1 -0
- package/dist/apex-BlHPPQK-.js +168 -0
- package/dist/azcli-C7iyZFGk.js +53 -0
- package/dist/azcli-CEoytwx_.cjs +1 -0
- package/dist/bat-Buc0l0C3.js +123 -0
- package/dist/bat-D65OC-jj.cjs +1 -0
- package/dist/bicep-DvD_e5vW.cjs +2 -0
- package/dist/bicep-U66iJ-pV.js +219 -0
- package/dist/cameligo-C9Dwkdmm.js +189 -0
- package/dist/cameligo-DzMHfeEs.cjs +1 -0
- package/dist/chunk-BjqF3vbe.cjs +1 -0
- package/dist/chunk-CIp4IH9D.js +21 -0
- package/dist/classnames-BXjDNQ6Q.cjs +1 -0
- package/dist/classnames-eUba3oot.js +29 -0
- package/dist/clojure-BC7BzAFK.cjs +1 -0
- package/dist/clojure-DDWmWbSx.js +146 -0
- package/dist/coffee-7Sx2S8NH.js +260 -0
- package/dist/coffee-Ca9F0OWZ.cjs +1 -0
- package/dist/common-BeXEy5sz.cjs +18 -0
- package/dist/common-BlOHZJzI.js +64 -0
- package/dist/common-DuYIpe6b.cjs +1 -0
- package/dist/common-Tr1I-HCs.js +6725 -0
- package/dist/cpp-CHjqaSPQ.js +230 -0
- package/dist/cpp-DKy9h6xR.cjs +1 -0
- package/dist/createLucideIcon-239Z-2by.cjs +1 -0
- package/dist/createLucideIcon-BO6TDGE7.js +43 -0
- package/dist/csharp-CkbgT9vH.cjs +1 -0
- package/dist/csharp-jwStnVeK.js +260 -0
- package/dist/csp-C2qFd6iv.cjs +1 -0
- package/dist/csp-DkO8Np0h.js +46 -0
- package/dist/css-BFvwcljm.js +284 -0
- package/dist/css-DCKUCzD6.cjs +3 -0
- package/dist/cssMode-CU2AJQMM.js +1509 -0
- package/dist/cssMode-l7eR8WSG.cjs +4 -0
- package/dist/cypher-122TYSjJ.cjs +1 -0
- package/dist/cypher-DaQ7hFRL.js +212 -0
- package/dist/dart-D8p_2HKP.js +236 -0
- package/dist/dart-DshcPGU8.cjs +1 -0
- package/dist/dist-DCz_Qv0B.js +884 -0
- package/dist/dist-D_2dZQH5.cjs +11 -0
- package/dist/dockerfile-CL8dwZCe.cjs +1 -0
- package/dist/dockerfile-DKWOQrwp.js +191 -0
- package/dist/ecl-DP3PNWGB.js +226 -0
- package/dist/ecl-DVx2J_EE.cjs +1 -0
- package/dist/editor.api-CbUDOph7.js +70302 -0
- package/dist/editor.api-lY2thcaq.cjs +644 -0
- package/dist/elixir-Xgx_1krO.cjs +1 -0
- package/dist/elixir-e9tDp1p1.js +523 -0
- package/dist/filter_label-DRJC3vpe.js +58 -0
- package/dist/filter_label-DssaWGpx.cjs +1 -0
- package/dist/filter_operators-C-TaTcNc.js +70 -0
- package/dist/filter_operators-D0kyB-XI.cjs +1 -0
- package/dist/flow9-C9BjpX8h.js +176 -0
- package/dist/flow9-DR-EyjYV.cjs +1 -0
- package/dist/freemarker2-BTGUjvgA.cjs +3 -0
- package/dist/freemarker2-C6Iq5MB-.js +724 -0
- package/dist/fsharp-BWm_FISn.js +147 -0
- package/dist/fsharp-DaBEigN7.cjs +1 -0
- package/dist/go-Xyq33f0v.cjs +1 -0
- package/dist/go-cmqV0Vy_.js +165 -0
- package/dist/graphql-BkFHHVmI.js +174 -0
- package/dist/graphql-Cj7XAy25.cjs +1 -0
- package/dist/handlebars-B2b1q7PA.cjs +1 -0
- package/dist/handlebars-DGGN9u4Y.js +418 -0
- package/dist/hcl-5I-P7bYX.js +219 -0
- package/dist/hcl-C3dpBsgU.cjs +1 -0
- package/dist/html-RJa-j-qT.js +339 -0
- package/dist/html-qfcUzk8e.cjs +1 -0
- package/dist/htmlMode-CYIxo4hc.cjs +4 -0
- package/dist/htmlMode-DDZ48mdp.js +1520 -0
- package/dist/index.cjs +303 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +72895 -0
- package/dist/index_pattern_select--iGeA3sP.js +93 -0
- package/dist/index_pattern_select-BeN5049F.cjs +1 -0
- package/dist/ini-ChENqKh8.cjs +1 -0
- package/dist/ini-DSIAxBZt.js +94 -0
- package/dist/java-DGeAxsRb.js +173 -0
- package/dist/java-LZ6g7weJ.cjs +1 -0
- package/dist/javascript-CN5gTHH2.js +19 -0
- package/dist/javascript-CZ97a-BN.cjs +1 -0
- package/dist/jsonMode-BZDeJMLL.cjs +10 -0
- package/dist/jsonMode-DraOl-ka.js +1885 -0
- package/dist/julia-BeebccKw.cjs +1 -0
- package/dist/julia-CU4CtsP4.js +414 -0
- package/dist/kotlin-B8NxXJ89.js +183 -0
- package/dist/kotlin-M82nl514.cjs +1 -0
- package/dist/less-B4Q3fV9Y.cjs +2 -0
- package/dist/less-DbeQQzer.js +242 -0
- package/dist/lexon-CXQaaecE.cjs +1 -0
- package/dist/lexon-Cw9JuAKc.js +185 -0
- package/dist/lib-C9j_E-l0.js +47 -0
- package/dist/lib-Chy_6VKj.cjs +1 -0
- package/dist/liquid-BYNEOJvX.cjs +1 -0
- package/dist/liquid-DvB-d2w7.js +205 -0
- package/dist/lodash-C_2NO1eK.cjs +35 -0
- package/dist/lodash-D-qGlPRW.js +3769 -0
- package/dist/lua-CnG8Tpu2.cjs +1 -0
- package/dist/lua-yl5NzA_S.js +200 -0
- package/dist/m3-CVcm-OIn.cjs +1 -0
- package/dist/m3-CdNAqvIX.js +193 -0
- package/dist/markdown-C1h-EuiT.js +262 -0
- package/dist/markdown-DrRHDVSU.cjs +1 -0
- package/dist/mdx-BbiOYPr2.cjs +1 -0
- package/dist/mdx-Fk8VTCUK.js +335 -0
- package/dist/mips-DIWpzGF0.js +128 -0
- package/dist/mips-D_p8UYQb.cjs +1 -0
- package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
- package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
- package/dist/msdax-BiazpDQ1.js +156 -0
- package/dist/msdax-xM1_j20x.cjs +1 -0
- package/dist/mysql-DMsJkSnA.cjs +1 -0
- package/dist/mysql-DphBFJlP.js +168 -0
- package/dist/objective-c-BG02Lrht.cjs +1 -0
- package/dist/objective-c-DWZ8Qpyc.js +144 -0
- package/dist/pascal-BcvlMOdu.js +176 -0
- package/dist/pascal-CnP2Fqes.cjs +1 -0
- package/dist/pascaligo-BzDEm-l_.cjs +1 -0
- package/dist/pascaligo-DHEp4kzh.js +201 -0
- package/dist/perl-USYKPHpO.js +316 -0
- package/dist/perl-nIxw-e4R.cjs +1 -0
- package/dist/pgsql-Buk6XzVf.cjs +1 -0
- package/dist/pgsql-DzPhAh9W.js +158 -0
- package/dist/php-B3sFYUqV.cjs +1 -0
- package/dist/php-PfpSTefE.js +471 -0
- package/dist/pla-CZtnfWl6.cjs +1 -0
- package/dist/pla-DrFOZwDB.js +146 -0
- package/dist/postiats-4OGxVVUT.js +504 -0
- package/dist/postiats-CgJZf83Q.cjs +1 -0
- package/dist/powerquery-D9gzk2Dq.cjs +1 -0
- package/dist/powerquery-_h9-HEnY.js +190 -0
- package/dist/powershell-CZHaQY6z.cjs +1 -0
- package/dist/powershell-nOzcY8gy.js +211 -0
- package/dist/protobuf-DAgxhnea.js +659 -0
- package/dist/protobuf-D_C8Guej.cjs +2 -0
- package/dist/public-1PveQco4.js +1756 -0
- package/dist/public-D1K7oN7t.cjs +3 -0
- package/dist/pug-quEtG4rz.cjs +1 -0
- package/dist/pug-raGZNmZ1.js +300 -0
- package/dist/python-C45c7K7W.js +260 -0
- package/dist/python-CQX8JcT4.cjs +1 -0
- package/dist/qsharp-C2jz5tuo.js +143 -0
- package/dist/qsharp-CX1SSV_j.cjs +1 -0
- package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
- package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
- package/dist/query_bar_top_row-D6a48VTk.js +11 -0
- package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
- package/dist/query_string_input-75waAcWy.js +9 -0
- package/dist/query_string_input-CHG9w1ze.cjs +1 -0
- package/dist/query_string_input-CyPZVKif.js +366 -0
- package/dist/query_string_input-SOULY6dl.cjs +1 -0
- package/dist/r-CXkPcYYf.js +189 -0
- package/dist/r-DpVDQTST.cjs +1 -0
- package/dist/razor-BnoJmj1k.js +525 -0
- package/dist/razor-DYx4yJJn.cjs +1 -0
- package/dist/redis-DsCuCZIT.cjs +1 -0
- package/dist/redis-giKZvbbg.js +123 -0
- package/dist/redshift-qKVxBsP_.js +158 -0
- package/dist/redshift-z5_aUfdC.cjs +1 -0
- package/dist/restructuredtext-D0n4pabr.js +287 -0
- package/dist/restructuredtext-DdXoKocW.cjs +1 -0
- package/dist/ruby-BNrBlpcw.js +527 -0
- package/dist/ruby-Dj0sNBey.cjs +1 -0
- package/dist/rust-D6mpPoli.js +178 -0
- package/dist/rust-DjkW1U4M.cjs +1 -0
- package/dist/sb-BCN0JcpS.cjs +1 -0
- package/dist/sb-DhS9GhXl.js +143 -0
- package/dist/scala-BqxBEpi8.js +551 -0
- package/dist/scala-CyXWhZaJ.cjs +1 -0
- package/dist/scheme-Bh4oGAk3.js +170 -0
- package/dist/scheme-Cs9G6QEE.cjs +1 -0
- package/dist/scss-Byf08jwC.js +417 -0
- package/dist/scss-Fl7taPuq.cjs +3 -0
- package/dist/search_bar-Caqi1NVo.js +1815 -0
- package/dist/search_bar-DyO_WsC5.cjs +1 -0
- package/dist/services-9wPHk1eh.js +2350 -0
- package/dist/services-BPC3fXx4.cjs +7 -0
- package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
- package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
- package/dist/shell-Cw5yNfC4.cjs +1 -0
- package/dist/shell-UoRv_tpG.js +223 -0
- package/dist/solidity-B5t7Lkol.js +147 -0
- package/dist/solidity-BoAzg9X_.cjs +1 -0
- package/dist/sophia-BrXXWhvp.js +147 -0
- package/dist/sophia-L84Jz6Ow.cjs +1 -0
- package/dist/sparql-B8ZTY48u.js +124 -0
- package/dist/sparql-D6lnG7vO.cjs +1 -0
- package/dist/sql-D_74hUL-.js +171 -0
- package/dist/sql-VXdYzIyz.cjs +1 -0
- package/dist/src/App.d.ts +2 -0
- package/dist/src/components/ResultHeader/Info.d.ts +30 -0
- package/dist/src/components/ResultHeader/index.d.ts +13 -0
- package/dist/src/components/context.d.ts +82 -0
- package/dist/src/components/euiicons.d.ts +1 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/request.d.ts +1 -0
- package/dist/src/utils/utils.d.ts +1 -0
- package/dist/st-CxJLwAAK.cjs +1 -0
- package/dist/st-D8Rdx9Bz.js +476 -0
- package/dist/suggestions_component-BBHwbjYT.js +1243 -0
- package/dist/suggestions_component-CF4sehth.cjs +77 -0
- package/dist/swift-ZBC6wQdc.cjs +1 -0
- package/dist/swift-s19Ivx3X.js +213 -0
- package/dist/systemverilog-DoSgAb1I.cjs +1 -0
- package/dist/systemverilog-fA72PnKj.js +298 -0
- package/dist/tcl-B8QLbcxi.js +223 -0
- package/dist/tcl-IXmy-lJ0.cjs +1 -0
- package/dist/tsMode-BrPRpJvb.js +597 -0
- package/dist/tsMode-CNvH6xuC.cjs +11 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/twig-CT2RXmm0.cjs +1 -0
- package/dist/twig-Dy7NkzKI.js +388 -0
- package/dist/typescript-BRKHcp4S.js +263 -0
- package/dist/typescript-Bbw9fxuo.cjs +1 -0
- package/dist/typescript-CQjO9XnF.js +3 -0
- package/dist/typescript-D6q4AO2z.cjs +1 -0
- package/dist/typespec-CkKpvaMv.cjs +1 -0
- package/dist/typespec-ndyv0mQx.js +234 -0
- package/dist/vb-DET0NIW-.js +260 -0
- package/dist/vb-R3Kcrzvd.cjs +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/wgsl-D5TeQchR.js +145 -0
- package/dist/wgsl-FTDBzylH.cjs +298 -0
- package/dist/xml-BZjE3dtf.js +136 -0
- package/dist/xml-CxbMIueA.cjs +1 -0
- package/dist/yaml-Di_6aXC4.js +229 -0
- package/dist/yaml-DvaGkWBl.cjs +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import { m as editor_api_exports } from "./editor.api-CbUDOph7.js";
|
|
2
|
+
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (e, s, c, l) => {
|
|
3
|
+
if (s && typeof s == "object" || typeof s == "function") for (let u of __getOwnPropNames(s)) !__hasOwnProp.call(e, u) && u !== c && __defProp(e, u, {
|
|
4
|
+
get: () => s[u],
|
|
5
|
+
enumerable: !(l = __getOwnPropDesc(s, u)) || l.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, __reExport = (e, a, o) => (__copyProps(e, a, "default"), o && __copyProps(o, a, "default")), monaco_editor_core_exports = {};
|
|
9
|
+
__reExport(monaco_editor_core_exports, editor_api_exports);
|
|
10
|
+
var EMPTY_ELEMENTS = [
|
|
11
|
+
"area",
|
|
12
|
+
"base",
|
|
13
|
+
"br",
|
|
14
|
+
"col",
|
|
15
|
+
"embed",
|
|
16
|
+
"hr",
|
|
17
|
+
"img",
|
|
18
|
+
"input",
|
|
19
|
+
"keygen",
|
|
20
|
+
"link",
|
|
21
|
+
"menuitem",
|
|
22
|
+
"meta",
|
|
23
|
+
"param",
|
|
24
|
+
"source",
|
|
25
|
+
"track",
|
|
26
|
+
"wbr"
|
|
27
|
+
], conf = {
|
|
28
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
29
|
+
comments: { blockComment: ["{{!--", "--}}"] },
|
|
30
|
+
brackets: [
|
|
31
|
+
["<!--", "-->"],
|
|
32
|
+
["<", ">"],
|
|
33
|
+
["{{", "}}"],
|
|
34
|
+
["{", "}"],
|
|
35
|
+
["(", ")"]
|
|
36
|
+
],
|
|
37
|
+
autoClosingPairs: [
|
|
38
|
+
{
|
|
39
|
+
open: "{",
|
|
40
|
+
close: "}"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "[",
|
|
44
|
+
close: "]"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "(",
|
|
48
|
+
close: ")"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
open: "\"",
|
|
52
|
+
close: "\""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
open: "'",
|
|
56
|
+
close: "'"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
surroundingPairs: [
|
|
60
|
+
{
|
|
61
|
+
open: "<",
|
|
62
|
+
close: ">"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
open: "\"",
|
|
66
|
+
close: "\""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
open: "'",
|
|
70
|
+
close: "'"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
onEnterRules: [{
|
|
74
|
+
beforeText: RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
75
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
76
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent }
|
|
77
|
+
}, {
|
|
78
|
+
beforeText: RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
79
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
|
80
|
+
}]
|
|
81
|
+
}, language = {
|
|
82
|
+
defaultToken: "",
|
|
83
|
+
tokenPostfix: "",
|
|
84
|
+
tokenizer: {
|
|
85
|
+
root: [
|
|
86
|
+
[
|
|
87
|
+
/\{\{!--/,
|
|
88
|
+
"comment.block.start.handlebars",
|
|
89
|
+
"@commentBlock"
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
/\{\{!/,
|
|
93
|
+
"comment.start.handlebars",
|
|
94
|
+
"@comment"
|
|
95
|
+
],
|
|
96
|
+
[/\{\{/, {
|
|
97
|
+
token: "@rematch",
|
|
98
|
+
switchTo: "@handlebarsInSimpleState.root"
|
|
99
|
+
}],
|
|
100
|
+
[
|
|
101
|
+
/<!DOCTYPE/,
|
|
102
|
+
"metatag.html",
|
|
103
|
+
"@doctype"
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
/<!--/,
|
|
107
|
+
"comment.html",
|
|
108
|
+
"@commentHtml"
|
|
109
|
+
],
|
|
110
|
+
[/(<)(\w+)(\/>)/, [
|
|
111
|
+
"delimiter.html",
|
|
112
|
+
"tag.html",
|
|
113
|
+
"delimiter.html"
|
|
114
|
+
]],
|
|
115
|
+
[/(<)(script)/, ["delimiter.html", {
|
|
116
|
+
token: "tag.html",
|
|
117
|
+
next: "@script"
|
|
118
|
+
}]],
|
|
119
|
+
[/(<)(style)/, ["delimiter.html", {
|
|
120
|
+
token: "tag.html",
|
|
121
|
+
next: "@style"
|
|
122
|
+
}]],
|
|
123
|
+
[/(<)([:\w]+)/, ["delimiter.html", {
|
|
124
|
+
token: "tag.html",
|
|
125
|
+
next: "@otherTag"
|
|
126
|
+
}]],
|
|
127
|
+
[/(<\/)(\w+)/, ["delimiter.html", {
|
|
128
|
+
token: "tag.html",
|
|
129
|
+
next: "@otherTag"
|
|
130
|
+
}]],
|
|
131
|
+
[/</, "delimiter.html"],
|
|
132
|
+
[/\{/, "delimiter.html"],
|
|
133
|
+
[/[^<{]+/]
|
|
134
|
+
],
|
|
135
|
+
doctype: [
|
|
136
|
+
[/\{\{/, {
|
|
137
|
+
token: "@rematch",
|
|
138
|
+
switchTo: "@handlebarsInSimpleState.comment"
|
|
139
|
+
}],
|
|
140
|
+
[/[^>]+/, "metatag.content.html"],
|
|
141
|
+
[
|
|
142
|
+
/>/,
|
|
143
|
+
"metatag.html",
|
|
144
|
+
"@pop"
|
|
145
|
+
]
|
|
146
|
+
],
|
|
147
|
+
comment: [[
|
|
148
|
+
/\}\}/,
|
|
149
|
+
"comment.end.handlebars",
|
|
150
|
+
"@pop"
|
|
151
|
+
], [/./, "comment.content.handlebars"]],
|
|
152
|
+
commentBlock: [[
|
|
153
|
+
/--\}\}/,
|
|
154
|
+
"comment.block.end.handlebars",
|
|
155
|
+
"@pop"
|
|
156
|
+
], [/./, "comment.content.handlebars"]],
|
|
157
|
+
commentHtml: [
|
|
158
|
+
[/\{\{/, {
|
|
159
|
+
token: "@rematch",
|
|
160
|
+
switchTo: "@handlebarsInSimpleState.comment"
|
|
161
|
+
}],
|
|
162
|
+
[
|
|
163
|
+
/-->/,
|
|
164
|
+
"comment.html",
|
|
165
|
+
"@pop"
|
|
166
|
+
],
|
|
167
|
+
[/[^-]+/, "comment.content.html"],
|
|
168
|
+
[/./, "comment.content.html"]
|
|
169
|
+
],
|
|
170
|
+
otherTag: [
|
|
171
|
+
[/\{\{/, {
|
|
172
|
+
token: "@rematch",
|
|
173
|
+
switchTo: "@handlebarsInSimpleState.otherTag"
|
|
174
|
+
}],
|
|
175
|
+
[
|
|
176
|
+
/\/?>/,
|
|
177
|
+
"delimiter.html",
|
|
178
|
+
"@pop"
|
|
179
|
+
],
|
|
180
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
181
|
+
[/'([^']*)'/, "attribute.value"],
|
|
182
|
+
[/[\w\-]+/, "attribute.name"],
|
|
183
|
+
[/=/, "delimiter"],
|
|
184
|
+
[/[ \t\r\n]+/]
|
|
185
|
+
],
|
|
186
|
+
script: [
|
|
187
|
+
[/\{\{/, {
|
|
188
|
+
token: "@rematch",
|
|
189
|
+
switchTo: "@handlebarsInSimpleState.script"
|
|
190
|
+
}],
|
|
191
|
+
[
|
|
192
|
+
/type/,
|
|
193
|
+
"attribute.name",
|
|
194
|
+
"@scriptAfterType"
|
|
195
|
+
],
|
|
196
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
197
|
+
[/'([^']*)'/, "attribute.value"],
|
|
198
|
+
[/[\w\-]+/, "attribute.name"],
|
|
199
|
+
[/=/, "delimiter"],
|
|
200
|
+
[/>/, {
|
|
201
|
+
token: "delimiter.html",
|
|
202
|
+
next: "@scriptEmbedded.text/javascript",
|
|
203
|
+
nextEmbedded: "text/javascript"
|
|
204
|
+
}],
|
|
205
|
+
[/[ \t\r\n]+/],
|
|
206
|
+
[/(<\/)(script\s*)(>)/, [
|
|
207
|
+
"delimiter.html",
|
|
208
|
+
"tag.html",
|
|
209
|
+
{
|
|
210
|
+
token: "delimiter.html",
|
|
211
|
+
next: "@pop"
|
|
212
|
+
}
|
|
213
|
+
]]
|
|
214
|
+
],
|
|
215
|
+
scriptAfterType: [
|
|
216
|
+
[/\{\{/, {
|
|
217
|
+
token: "@rematch",
|
|
218
|
+
switchTo: "@handlebarsInSimpleState.scriptAfterType"
|
|
219
|
+
}],
|
|
220
|
+
[
|
|
221
|
+
/=/,
|
|
222
|
+
"delimiter",
|
|
223
|
+
"@scriptAfterTypeEquals"
|
|
224
|
+
],
|
|
225
|
+
[/>/, {
|
|
226
|
+
token: "delimiter.html",
|
|
227
|
+
next: "@scriptEmbedded.text/javascript",
|
|
228
|
+
nextEmbedded: "text/javascript"
|
|
229
|
+
}],
|
|
230
|
+
[/[ \t\r\n]+/],
|
|
231
|
+
[/<\/script\s*>/, {
|
|
232
|
+
token: "@rematch",
|
|
233
|
+
next: "@pop"
|
|
234
|
+
}]
|
|
235
|
+
],
|
|
236
|
+
scriptAfterTypeEquals: [
|
|
237
|
+
[/\{\{/, {
|
|
238
|
+
token: "@rematch",
|
|
239
|
+
switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
|
|
240
|
+
}],
|
|
241
|
+
[/"([^"]*)"/, {
|
|
242
|
+
token: "attribute.value",
|
|
243
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
244
|
+
}],
|
|
245
|
+
[/'([^']*)'/, {
|
|
246
|
+
token: "attribute.value",
|
|
247
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
248
|
+
}],
|
|
249
|
+
[/>/, {
|
|
250
|
+
token: "delimiter.html",
|
|
251
|
+
next: "@scriptEmbedded.text/javascript",
|
|
252
|
+
nextEmbedded: "text/javascript"
|
|
253
|
+
}],
|
|
254
|
+
[/[ \t\r\n]+/],
|
|
255
|
+
[/<\/script\s*>/, {
|
|
256
|
+
token: "@rematch",
|
|
257
|
+
next: "@pop"
|
|
258
|
+
}]
|
|
259
|
+
],
|
|
260
|
+
scriptWithCustomType: [
|
|
261
|
+
[/\{\{/, {
|
|
262
|
+
token: "@rematch",
|
|
263
|
+
switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
|
|
264
|
+
}],
|
|
265
|
+
[/>/, {
|
|
266
|
+
token: "delimiter.html",
|
|
267
|
+
next: "@scriptEmbedded.$S2",
|
|
268
|
+
nextEmbedded: "$S2"
|
|
269
|
+
}],
|
|
270
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
271
|
+
[/'([^']*)'/, "attribute.value"],
|
|
272
|
+
[/[\w\-]+/, "attribute.name"],
|
|
273
|
+
[/=/, "delimiter"],
|
|
274
|
+
[/[ \t\r\n]+/],
|
|
275
|
+
[/<\/script\s*>/, {
|
|
276
|
+
token: "@rematch",
|
|
277
|
+
next: "@pop"
|
|
278
|
+
}]
|
|
279
|
+
],
|
|
280
|
+
scriptEmbedded: [[/\{\{/, {
|
|
281
|
+
token: "@rematch",
|
|
282
|
+
switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
|
|
283
|
+
nextEmbedded: "@pop"
|
|
284
|
+
}], [/<\/script/, {
|
|
285
|
+
token: "@rematch",
|
|
286
|
+
next: "@pop",
|
|
287
|
+
nextEmbedded: "@pop"
|
|
288
|
+
}]],
|
|
289
|
+
style: [
|
|
290
|
+
[/\{\{/, {
|
|
291
|
+
token: "@rematch",
|
|
292
|
+
switchTo: "@handlebarsInSimpleState.style"
|
|
293
|
+
}],
|
|
294
|
+
[
|
|
295
|
+
/type/,
|
|
296
|
+
"attribute.name",
|
|
297
|
+
"@styleAfterType"
|
|
298
|
+
],
|
|
299
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
300
|
+
[/'([^']*)'/, "attribute.value"],
|
|
301
|
+
[/[\w\-]+/, "attribute.name"],
|
|
302
|
+
[/=/, "delimiter"],
|
|
303
|
+
[/>/, {
|
|
304
|
+
token: "delimiter.html",
|
|
305
|
+
next: "@styleEmbedded.text/css",
|
|
306
|
+
nextEmbedded: "text/css"
|
|
307
|
+
}],
|
|
308
|
+
[/[ \t\r\n]+/],
|
|
309
|
+
[/(<\/)(style\s*)(>)/, [
|
|
310
|
+
"delimiter.html",
|
|
311
|
+
"tag.html",
|
|
312
|
+
{
|
|
313
|
+
token: "delimiter.html",
|
|
314
|
+
next: "@pop"
|
|
315
|
+
}
|
|
316
|
+
]]
|
|
317
|
+
],
|
|
318
|
+
styleAfterType: [
|
|
319
|
+
[/\{\{/, {
|
|
320
|
+
token: "@rematch",
|
|
321
|
+
switchTo: "@handlebarsInSimpleState.styleAfterType"
|
|
322
|
+
}],
|
|
323
|
+
[
|
|
324
|
+
/=/,
|
|
325
|
+
"delimiter",
|
|
326
|
+
"@styleAfterTypeEquals"
|
|
327
|
+
],
|
|
328
|
+
[/>/, {
|
|
329
|
+
token: "delimiter.html",
|
|
330
|
+
next: "@styleEmbedded.text/css",
|
|
331
|
+
nextEmbedded: "text/css"
|
|
332
|
+
}],
|
|
333
|
+
[/[ \t\r\n]+/],
|
|
334
|
+
[/<\/style\s*>/, {
|
|
335
|
+
token: "@rematch",
|
|
336
|
+
next: "@pop"
|
|
337
|
+
}]
|
|
338
|
+
],
|
|
339
|
+
styleAfterTypeEquals: [
|
|
340
|
+
[/\{\{/, {
|
|
341
|
+
token: "@rematch",
|
|
342
|
+
switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
|
|
343
|
+
}],
|
|
344
|
+
[/"([^"]*)"/, {
|
|
345
|
+
token: "attribute.value",
|
|
346
|
+
switchTo: "@styleWithCustomType.$1"
|
|
347
|
+
}],
|
|
348
|
+
[/'([^']*)'/, {
|
|
349
|
+
token: "attribute.value",
|
|
350
|
+
switchTo: "@styleWithCustomType.$1"
|
|
351
|
+
}],
|
|
352
|
+
[/>/, {
|
|
353
|
+
token: "delimiter.html",
|
|
354
|
+
next: "@styleEmbedded.text/css",
|
|
355
|
+
nextEmbedded: "text/css"
|
|
356
|
+
}],
|
|
357
|
+
[/[ \t\r\n]+/],
|
|
358
|
+
[/<\/style\s*>/, {
|
|
359
|
+
token: "@rematch",
|
|
360
|
+
next: "@pop"
|
|
361
|
+
}]
|
|
362
|
+
],
|
|
363
|
+
styleWithCustomType: [
|
|
364
|
+
[/\{\{/, {
|
|
365
|
+
token: "@rematch",
|
|
366
|
+
switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
|
|
367
|
+
}],
|
|
368
|
+
[/>/, {
|
|
369
|
+
token: "delimiter.html",
|
|
370
|
+
next: "@styleEmbedded.$S2",
|
|
371
|
+
nextEmbedded: "$S2"
|
|
372
|
+
}],
|
|
373
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
374
|
+
[/'([^']*)'/, "attribute.value"],
|
|
375
|
+
[/[\w\-]+/, "attribute.name"],
|
|
376
|
+
[/=/, "delimiter"],
|
|
377
|
+
[/[ \t\r\n]+/],
|
|
378
|
+
[/<\/style\s*>/, {
|
|
379
|
+
token: "@rematch",
|
|
380
|
+
next: "@pop"
|
|
381
|
+
}]
|
|
382
|
+
],
|
|
383
|
+
styleEmbedded: [[/\{\{/, {
|
|
384
|
+
token: "@rematch",
|
|
385
|
+
switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
|
|
386
|
+
nextEmbedded: "@pop"
|
|
387
|
+
}], [/<\/style/, {
|
|
388
|
+
token: "@rematch",
|
|
389
|
+
next: "@pop",
|
|
390
|
+
nextEmbedded: "@pop"
|
|
391
|
+
}]],
|
|
392
|
+
handlebarsInSimpleState: [
|
|
393
|
+
[/\{\{\{?/, "delimiter.handlebars"],
|
|
394
|
+
[/\}\}\}?/, {
|
|
395
|
+
token: "delimiter.handlebars",
|
|
396
|
+
switchTo: "@$S2.$S3"
|
|
397
|
+
}],
|
|
398
|
+
{ include: "handlebarsRoot" }
|
|
399
|
+
],
|
|
400
|
+
handlebarsInEmbeddedState: [
|
|
401
|
+
[/\{\{\{?/, "delimiter.handlebars"],
|
|
402
|
+
[/\}\}\}?/, {
|
|
403
|
+
token: "delimiter.handlebars",
|
|
404
|
+
switchTo: "@$S2.$S3",
|
|
405
|
+
nextEmbedded: "$S3"
|
|
406
|
+
}],
|
|
407
|
+
{ include: "handlebarsRoot" }
|
|
408
|
+
],
|
|
409
|
+
handlebarsRoot: [
|
|
410
|
+
[/"[^"]*"/, "string.handlebars"],
|
|
411
|
+
[/[#/][^\s}]+/, "keyword.helper.handlebars"],
|
|
412
|
+
[/else\b/, "keyword.helper.handlebars"],
|
|
413
|
+
[/[\s]+/],
|
|
414
|
+
[/[^}]/, "variable.parameter.handlebars"]
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
export { conf, language };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "#",
|
|
4
|
+
blockComment: ["/*", "*/"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{
|
|
13
|
+
open: "{",
|
|
14
|
+
close: "}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
open: "[",
|
|
18
|
+
close: "]"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
open: "(",
|
|
22
|
+
close: ")"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
open: "\"",
|
|
26
|
+
close: "\"",
|
|
27
|
+
notIn: ["string"]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
surroundingPairs: [
|
|
31
|
+
{
|
|
32
|
+
open: "{",
|
|
33
|
+
close: "}"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
open: "[",
|
|
37
|
+
close: "]"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
open: "(",
|
|
41
|
+
close: ")"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
open: "\"",
|
|
45
|
+
close: "\""
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}, language = {
|
|
49
|
+
defaultToken: "",
|
|
50
|
+
tokenPostfix: ".hcl",
|
|
51
|
+
keywords: [
|
|
52
|
+
"var",
|
|
53
|
+
"local",
|
|
54
|
+
"path",
|
|
55
|
+
"for_each",
|
|
56
|
+
"any",
|
|
57
|
+
"string",
|
|
58
|
+
"number",
|
|
59
|
+
"bool",
|
|
60
|
+
"true",
|
|
61
|
+
"false",
|
|
62
|
+
"null",
|
|
63
|
+
"if ",
|
|
64
|
+
"else ",
|
|
65
|
+
"endif ",
|
|
66
|
+
"for ",
|
|
67
|
+
"in",
|
|
68
|
+
"endfor"
|
|
69
|
+
],
|
|
70
|
+
operators: [
|
|
71
|
+
"=",
|
|
72
|
+
">=",
|
|
73
|
+
"<=",
|
|
74
|
+
"==",
|
|
75
|
+
"!=",
|
|
76
|
+
"+",
|
|
77
|
+
"-",
|
|
78
|
+
"*",
|
|
79
|
+
"/",
|
|
80
|
+
"%",
|
|
81
|
+
"&&",
|
|
82
|
+
"||",
|
|
83
|
+
"!",
|
|
84
|
+
"<",
|
|
85
|
+
">",
|
|
86
|
+
"?",
|
|
87
|
+
"...",
|
|
88
|
+
":"
|
|
89
|
+
],
|
|
90
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
91
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
92
|
+
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)/,
|
|
93
|
+
terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
|
|
94
|
+
tokenizer: {
|
|
95
|
+
root: [
|
|
96
|
+
[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/, [
|
|
97
|
+
"type",
|
|
98
|
+
"",
|
|
99
|
+
"string",
|
|
100
|
+
"",
|
|
101
|
+
"string",
|
|
102
|
+
"",
|
|
103
|
+
"@brackets"
|
|
104
|
+
]],
|
|
105
|
+
[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/, [
|
|
106
|
+
"identifier",
|
|
107
|
+
"",
|
|
108
|
+
"string",
|
|
109
|
+
"",
|
|
110
|
+
"string",
|
|
111
|
+
"",
|
|
112
|
+
"@brackets"
|
|
113
|
+
]],
|
|
114
|
+
[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/, [
|
|
115
|
+
"identifier",
|
|
116
|
+
"",
|
|
117
|
+
"string",
|
|
118
|
+
"",
|
|
119
|
+
"operator",
|
|
120
|
+
"",
|
|
121
|
+
"@brackets"
|
|
122
|
+
]],
|
|
123
|
+
{ include: "@terraform" }
|
|
124
|
+
],
|
|
125
|
+
terraform: [
|
|
126
|
+
[/@terraformFunctions(\()/, ["type", "@brackets"]],
|
|
127
|
+
[/[a-zA-Z_]\w*-*/, { cases: {
|
|
128
|
+
"@keywords": { token: "keyword.$0" },
|
|
129
|
+
"@default": "variable"
|
|
130
|
+
} }],
|
|
131
|
+
{ include: "@whitespace" },
|
|
132
|
+
{ include: "@heredoc" },
|
|
133
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
134
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
135
|
+
[/@symbols/, { cases: {
|
|
136
|
+
"@operators": "operator",
|
|
137
|
+
"@default": ""
|
|
138
|
+
} }],
|
|
139
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
140
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
141
|
+
[/\d[\d']*/, "number"],
|
|
142
|
+
[/\d/, "number"],
|
|
143
|
+
[/[;,.]/, "delimiter"],
|
|
144
|
+
[
|
|
145
|
+
/"/,
|
|
146
|
+
"string",
|
|
147
|
+
"@string"
|
|
148
|
+
],
|
|
149
|
+
[/'/, "invalid"]
|
|
150
|
+
],
|
|
151
|
+
heredoc: [[/<<[-]*\s*["]?([\w\-]+)["]?/, {
|
|
152
|
+
token: "string.heredoc.delimiter",
|
|
153
|
+
next: "@heredocBody.$1"
|
|
154
|
+
}]],
|
|
155
|
+
heredocBody: [[/([\w\-]+)$/, { cases: {
|
|
156
|
+
"$1==$S2": [{
|
|
157
|
+
token: "string.heredoc.delimiter",
|
|
158
|
+
next: "@popall"
|
|
159
|
+
}],
|
|
160
|
+
"@default": "string.heredoc"
|
|
161
|
+
} }], [/./, "string.heredoc"]],
|
|
162
|
+
whitespace: [
|
|
163
|
+
[/[ \t\r\n]+/, ""],
|
|
164
|
+
[
|
|
165
|
+
/\/\*/,
|
|
166
|
+
"comment",
|
|
167
|
+
"@comment"
|
|
168
|
+
],
|
|
169
|
+
[/\/\/.*$/, "comment"],
|
|
170
|
+
[/#.*$/, "comment"]
|
|
171
|
+
],
|
|
172
|
+
comment: [
|
|
173
|
+
[/[^\/*]+/, "comment"],
|
|
174
|
+
[
|
|
175
|
+
/\*\//,
|
|
176
|
+
"comment",
|
|
177
|
+
"@pop"
|
|
178
|
+
],
|
|
179
|
+
[/[\/*]/, "comment"]
|
|
180
|
+
],
|
|
181
|
+
string: [
|
|
182
|
+
[/\$\{/, {
|
|
183
|
+
token: "delimiter",
|
|
184
|
+
next: "@stringExpression"
|
|
185
|
+
}],
|
|
186
|
+
[/[^\\"\$]+/, "string"],
|
|
187
|
+
[/@escapes/, "string.escape"],
|
|
188
|
+
[/\\./, "string.escape.invalid"],
|
|
189
|
+
[
|
|
190
|
+
/"/,
|
|
191
|
+
"string",
|
|
192
|
+
"@popall"
|
|
193
|
+
]
|
|
194
|
+
],
|
|
195
|
+
stringInsideExpression: [
|
|
196
|
+
[/[^\\"]+/, "string"],
|
|
197
|
+
[/@escapes/, "string.escape"],
|
|
198
|
+
[/\\./, "string.escape.invalid"],
|
|
199
|
+
[
|
|
200
|
+
/"/,
|
|
201
|
+
"string",
|
|
202
|
+
"@pop"
|
|
203
|
+
]
|
|
204
|
+
],
|
|
205
|
+
stringExpression: [
|
|
206
|
+
[/\}/, {
|
|
207
|
+
token: "delimiter",
|
|
208
|
+
next: "@pop"
|
|
209
|
+
}],
|
|
210
|
+
[
|
|
211
|
+
/"/,
|
|
212
|
+
"string",
|
|
213
|
+
"@stringInsideExpression"
|
|
214
|
+
],
|
|
215
|
+
{ include: "@terraform" }
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
export { conf, language };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={comments:{lineComment:`#`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}]},n={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=t,exports.language=n;
|