@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,242 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,
|
|
3
|
+
comments: {
|
|
4
|
+
blockComment: ["/*", "*/"],
|
|
5
|
+
lineComment: "//"
|
|
6
|
+
},
|
|
7
|
+
brackets: [
|
|
8
|
+
["{", "}"],
|
|
9
|
+
["[", "]"],
|
|
10
|
+
["(", ")"]
|
|
11
|
+
],
|
|
12
|
+
autoClosingPairs: [
|
|
13
|
+
{
|
|
14
|
+
open: "{",
|
|
15
|
+
close: "}",
|
|
16
|
+
notIn: ["string", "comment"]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "[",
|
|
20
|
+
close: "]",
|
|
21
|
+
notIn: ["string", "comment"]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
open: "(",
|
|
25
|
+
close: ")",
|
|
26
|
+
notIn: ["string", "comment"]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
open: "\"",
|
|
30
|
+
close: "\"",
|
|
31
|
+
notIn: ["string", "comment"]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
open: "'",
|
|
35
|
+
close: "'",
|
|
36
|
+
notIn: ["string", "comment"]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
surroundingPairs: [
|
|
40
|
+
{
|
|
41
|
+
open: "{",
|
|
42
|
+
close: "}"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
open: "[",
|
|
46
|
+
close: "]"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
open: "(",
|
|
50
|
+
close: ")"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
open: "\"",
|
|
54
|
+
close: "\""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
open: "'",
|
|
58
|
+
close: "'"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
folding: { markers: {
|
|
62
|
+
start: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
|
63
|
+
end: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
|
64
|
+
} }
|
|
65
|
+
}, language = {
|
|
66
|
+
defaultToken: "",
|
|
67
|
+
tokenPostfix: ".less",
|
|
68
|
+
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
|
69
|
+
identifierPlus: "-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
|
70
|
+
brackets: [
|
|
71
|
+
{
|
|
72
|
+
open: "{",
|
|
73
|
+
close: "}",
|
|
74
|
+
token: "delimiter.curly"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
open: "[",
|
|
78
|
+
close: "]",
|
|
79
|
+
token: "delimiter.bracket"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
open: "(",
|
|
83
|
+
close: ")",
|
|
84
|
+
token: "delimiter.parenthesis"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
open: "<",
|
|
88
|
+
close: ">",
|
|
89
|
+
token: "delimiter.angle"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
tokenizer: {
|
|
93
|
+
root: [
|
|
94
|
+
{ include: "@nestedJSBegin" },
|
|
95
|
+
["[ \\t\\r\\n]+", ""],
|
|
96
|
+
{ include: "@comments" },
|
|
97
|
+
{ include: "@keyword" },
|
|
98
|
+
{ include: "@strings" },
|
|
99
|
+
{ include: "@numbers" },
|
|
100
|
+
[
|
|
101
|
+
"[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))",
|
|
102
|
+
"attribute.name",
|
|
103
|
+
"@attribute"
|
|
104
|
+
],
|
|
105
|
+
["url(\\-prefix)?\\(", {
|
|
106
|
+
token: "tag",
|
|
107
|
+
next: "@urldeclaration"
|
|
108
|
+
}],
|
|
109
|
+
["[{}()\\[\\]]", "@brackets"],
|
|
110
|
+
["[,:;]", "delimiter"],
|
|
111
|
+
["#@identifierPlus", "tag.id"],
|
|
112
|
+
["&", "tag"],
|
|
113
|
+
[
|
|
114
|
+
"\\.@identifierPlus(?=\\()",
|
|
115
|
+
"tag.class",
|
|
116
|
+
"@attribute"
|
|
117
|
+
],
|
|
118
|
+
["\\.@identifierPlus", "tag.class"],
|
|
119
|
+
["@identifierPlus", "tag"],
|
|
120
|
+
{ include: "@operators" },
|
|
121
|
+
[
|
|
122
|
+
"@(@identifier(?=[:,\\)]))",
|
|
123
|
+
"variable",
|
|
124
|
+
"@attribute"
|
|
125
|
+
],
|
|
126
|
+
["@(@identifier)", "variable"],
|
|
127
|
+
[
|
|
128
|
+
"@",
|
|
129
|
+
"key",
|
|
130
|
+
"@atRules"
|
|
131
|
+
]
|
|
132
|
+
],
|
|
133
|
+
nestedJSBegin: [["``", "delimiter.backtick"], ["`", {
|
|
134
|
+
token: "delimiter.backtick",
|
|
135
|
+
next: "@nestedJSEnd",
|
|
136
|
+
nextEmbedded: "text/javascript"
|
|
137
|
+
}]],
|
|
138
|
+
nestedJSEnd: [["`", {
|
|
139
|
+
token: "delimiter.backtick",
|
|
140
|
+
next: "@pop",
|
|
141
|
+
nextEmbedded: "@pop"
|
|
142
|
+
}]],
|
|
143
|
+
operators: [["[<>=\\+\\-\\*\\/\\^\\|\\~]", "operator"]],
|
|
144
|
+
keyword: [["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b", "keyword"]],
|
|
145
|
+
urldeclaration: [
|
|
146
|
+
{ include: "@strings" },
|
|
147
|
+
["[^)\r\n]+", "string"],
|
|
148
|
+
["\\)", {
|
|
149
|
+
token: "tag",
|
|
150
|
+
next: "@pop"
|
|
151
|
+
}]
|
|
152
|
+
],
|
|
153
|
+
attribute: [
|
|
154
|
+
{ include: "@nestedJSBegin" },
|
|
155
|
+
{ include: "@comments" },
|
|
156
|
+
{ include: "@strings" },
|
|
157
|
+
{ include: "@numbers" },
|
|
158
|
+
{ include: "@keyword" },
|
|
159
|
+
[
|
|
160
|
+
"[a-zA-Z\\-]+(?=\\()",
|
|
161
|
+
"attribute.value",
|
|
162
|
+
"@attribute"
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
">",
|
|
166
|
+
"operator",
|
|
167
|
+
"@pop"
|
|
168
|
+
],
|
|
169
|
+
["@identifier", "attribute.value"],
|
|
170
|
+
{ include: "@operators" },
|
|
171
|
+
["@(@identifier)", "variable"],
|
|
172
|
+
[
|
|
173
|
+
"[)\\}]",
|
|
174
|
+
"@brackets",
|
|
175
|
+
"@pop"
|
|
176
|
+
],
|
|
177
|
+
["[{}()\\[\\]>]", "@brackets"],
|
|
178
|
+
[
|
|
179
|
+
"[;]",
|
|
180
|
+
"delimiter",
|
|
181
|
+
"@pop"
|
|
182
|
+
],
|
|
183
|
+
["[,=:]", "delimiter"],
|
|
184
|
+
["\\s", ""],
|
|
185
|
+
[".", "attribute.value"]
|
|
186
|
+
],
|
|
187
|
+
comments: [[
|
|
188
|
+
"\\/\\*",
|
|
189
|
+
"comment",
|
|
190
|
+
"@comment"
|
|
191
|
+
], ["\\/\\/+.*", "comment"]],
|
|
192
|
+
comment: [[
|
|
193
|
+
"\\*\\/",
|
|
194
|
+
"comment",
|
|
195
|
+
"@pop"
|
|
196
|
+
], [".", "comment"]],
|
|
197
|
+
numbers: [["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {
|
|
198
|
+
token: "attribute.value.number",
|
|
199
|
+
next: "@units"
|
|
200
|
+
}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]],
|
|
201
|
+
units: [[
|
|
202
|
+
"(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
|
203
|
+
"attribute.value.unit",
|
|
204
|
+
"@pop"
|
|
205
|
+
]],
|
|
206
|
+
strings: [["~?\"", {
|
|
207
|
+
token: "string.delimiter",
|
|
208
|
+
next: "@stringsEndDoubleQuote"
|
|
209
|
+
}], ["~?'", {
|
|
210
|
+
token: "string.delimiter",
|
|
211
|
+
next: "@stringsEndQuote"
|
|
212
|
+
}]],
|
|
213
|
+
stringsEndDoubleQuote: [
|
|
214
|
+
["\\\\\"", "string"],
|
|
215
|
+
["\"", {
|
|
216
|
+
token: "string.delimiter",
|
|
217
|
+
next: "@popall"
|
|
218
|
+
}],
|
|
219
|
+
[".", "string"]
|
|
220
|
+
],
|
|
221
|
+
stringsEndQuote: [
|
|
222
|
+
["\\\\'", "string"],
|
|
223
|
+
["'", {
|
|
224
|
+
token: "string.delimiter",
|
|
225
|
+
next: "@popall"
|
|
226
|
+
}],
|
|
227
|
+
[".", "string"]
|
|
228
|
+
],
|
|
229
|
+
atRules: [
|
|
230
|
+
{ include: "@comments" },
|
|
231
|
+
{ include: "@strings" },
|
|
232
|
+
["[()]", "delimiter"],
|
|
233
|
+
[
|
|
234
|
+
"[\\{;]",
|
|
235
|
+
"delimiter",
|
|
236
|
+
"@pop"
|
|
237
|
+
],
|
|
238
|
+
[".", "key"]
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
export { conf, language };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={comments:{lineComment:`COMMENT`},brackets:[[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`:`,close:`.`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:"`",close:"`"},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`:`,close:`.`}],folding:{markers:{start:RegExp(`^\\s*(::\\s*|COMMENT\\s+)#region`),end:RegExp(`^\\s*(::\\s*|COMMENT\\s+)#endregion`)}}},n={tokenPostfix:`.lexon`,ignoreCase:!0,keywords:[`lexon`,`lex`,`clause`,`terms`,`contracts`,`may`,`pay`,`pays`,`appoints`,`into`,`to`],typeKeywords:[`amount`,`person`,`key`,`time`,`date`,`asset`,`text`],operators:[`less`,`greater`,`equal`,`le`,`gt`,`or`,`and`,`add`,`added`,`subtract`,`subtracted`,`multiply`,`multiplied`,`times`,`divide`,`divided`,`is`,`be`,`certified`],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,[``,`comment`]],[/"/,{token:`identifier.quote`,bracket:`@open`,next:`@quoted_identifier`}],[`LEX$`,{token:`keyword`,bracket:`@open`,next:`@identifier_until_period`}],[`LEXON`,{token:`keyword`,bracket:`@open`,next:`@semver`}],[`:`,{token:`delimiter`,bracket:`@open`,next:`@identifier_until_period`}],[/[a-z_$][\w$]*/,{cases:{"@operators":`operator`,"@typeKeywords":`keyword.type`,"@keywords":`keyword`,"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,`delimiter`],[/\d*\.\d*\.\d*/,`number.semver`],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F]+/,`number.hex`],[/\d+/,`number`],[/[;,.]/,`delimiter`]],quoted_identifier:[[/[^\\"]+/,`identifier`],[/"/,{token:`identifier.quote`,bracket:`@close`,next:`@pop`}]],space_identifier_until_period:[[`:`,`delimiter`],[` `,{token:`white`,next:`@identifier_rest`}]],identifier_until_period:[{include:`@whitespace`},[`:`,{token:`delimiter`,next:`@identifier_rest`}],[/[^\\.]+/,`identifier`],[/\./,{token:`delimiter`,bracket:`@close`,next:`@pop`}]],identifier_rest:[[/[^\\.]+/,`identifier`],[/\./,{token:`delimiter`,bracket:`@close`,next:`@pop`}]],semver:[{include:`@whitespace`},[`:`,`delimiter`],[/\d*\.\d*\.\d*/,{token:`number.semver`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,`white`]]}};exports.conf=t,exports.language=n;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
comments: { lineComment: "COMMENT" },
|
|
3
|
+
brackets: [["(", ")"]],
|
|
4
|
+
autoClosingPairs: [
|
|
5
|
+
{
|
|
6
|
+
open: "{",
|
|
7
|
+
close: "}"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
open: "[",
|
|
11
|
+
close: "]"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
open: "(",
|
|
15
|
+
close: ")"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
open: "\"",
|
|
19
|
+
close: "\""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
open: ":",
|
|
23
|
+
close: "."
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
surroundingPairs: [
|
|
27
|
+
{
|
|
28
|
+
open: "{",
|
|
29
|
+
close: "}"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
open: "[",
|
|
33
|
+
close: "]"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
open: "(",
|
|
37
|
+
close: ")"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
open: "`",
|
|
41
|
+
close: "`"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
open: "\"",
|
|
45
|
+
close: "\""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
open: "'",
|
|
49
|
+
close: "'"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
open: ":",
|
|
53
|
+
close: "."
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
folding: { markers: {
|
|
57
|
+
start: /* @__PURE__ */ RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),
|
|
58
|
+
end: /* @__PURE__ */ RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")
|
|
59
|
+
} }
|
|
60
|
+
}, language = {
|
|
61
|
+
tokenPostfix: ".lexon",
|
|
62
|
+
ignoreCase: !0,
|
|
63
|
+
keywords: [
|
|
64
|
+
"lexon",
|
|
65
|
+
"lex",
|
|
66
|
+
"clause",
|
|
67
|
+
"terms",
|
|
68
|
+
"contracts",
|
|
69
|
+
"may",
|
|
70
|
+
"pay",
|
|
71
|
+
"pays",
|
|
72
|
+
"appoints",
|
|
73
|
+
"into",
|
|
74
|
+
"to"
|
|
75
|
+
],
|
|
76
|
+
typeKeywords: [
|
|
77
|
+
"amount",
|
|
78
|
+
"person",
|
|
79
|
+
"key",
|
|
80
|
+
"time",
|
|
81
|
+
"date",
|
|
82
|
+
"asset",
|
|
83
|
+
"text"
|
|
84
|
+
],
|
|
85
|
+
operators: [
|
|
86
|
+
"less",
|
|
87
|
+
"greater",
|
|
88
|
+
"equal",
|
|
89
|
+
"le",
|
|
90
|
+
"gt",
|
|
91
|
+
"or",
|
|
92
|
+
"and",
|
|
93
|
+
"add",
|
|
94
|
+
"added",
|
|
95
|
+
"subtract",
|
|
96
|
+
"subtracted",
|
|
97
|
+
"multiply",
|
|
98
|
+
"multiplied",
|
|
99
|
+
"times",
|
|
100
|
+
"divide",
|
|
101
|
+
"divided",
|
|
102
|
+
"is",
|
|
103
|
+
"be",
|
|
104
|
+
"certified"
|
|
105
|
+
],
|
|
106
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
107
|
+
tokenizer: {
|
|
108
|
+
root: [
|
|
109
|
+
[/^(\s*)(comment:?(?:\s.*|))$/, ["", "comment"]],
|
|
110
|
+
[/"/, {
|
|
111
|
+
token: "identifier.quote",
|
|
112
|
+
bracket: "@open",
|
|
113
|
+
next: "@quoted_identifier"
|
|
114
|
+
}],
|
|
115
|
+
["LEX$", {
|
|
116
|
+
token: "keyword",
|
|
117
|
+
bracket: "@open",
|
|
118
|
+
next: "@identifier_until_period"
|
|
119
|
+
}],
|
|
120
|
+
["LEXON", {
|
|
121
|
+
token: "keyword",
|
|
122
|
+
bracket: "@open",
|
|
123
|
+
next: "@semver"
|
|
124
|
+
}],
|
|
125
|
+
[":", {
|
|
126
|
+
token: "delimiter",
|
|
127
|
+
bracket: "@open",
|
|
128
|
+
next: "@identifier_until_period"
|
|
129
|
+
}],
|
|
130
|
+
[/[a-z_$][\w$]*/, { cases: {
|
|
131
|
+
"@operators": "operator",
|
|
132
|
+
"@typeKeywords": "keyword.type",
|
|
133
|
+
"@keywords": "keyword",
|
|
134
|
+
"@default": "identifier"
|
|
135
|
+
} }],
|
|
136
|
+
{ include: "@whitespace" },
|
|
137
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
138
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
139
|
+
[/@symbols/, "delimiter"],
|
|
140
|
+
[/\d*\.\d*\.\d*/, "number.semver"],
|
|
141
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
142
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
143
|
+
[/\d+/, "number"],
|
|
144
|
+
[/[;,.]/, "delimiter"]
|
|
145
|
+
],
|
|
146
|
+
quoted_identifier: [[/[^\\"]+/, "identifier"], [/"/, {
|
|
147
|
+
token: "identifier.quote",
|
|
148
|
+
bracket: "@close",
|
|
149
|
+
next: "@pop"
|
|
150
|
+
}]],
|
|
151
|
+
space_identifier_until_period: [[":", "delimiter"], [" ", {
|
|
152
|
+
token: "white",
|
|
153
|
+
next: "@identifier_rest"
|
|
154
|
+
}]],
|
|
155
|
+
identifier_until_period: [
|
|
156
|
+
{ include: "@whitespace" },
|
|
157
|
+
[":", {
|
|
158
|
+
token: "delimiter",
|
|
159
|
+
next: "@identifier_rest"
|
|
160
|
+
}],
|
|
161
|
+
[/[^\\.]+/, "identifier"],
|
|
162
|
+
[/\./, {
|
|
163
|
+
token: "delimiter",
|
|
164
|
+
bracket: "@close",
|
|
165
|
+
next: "@pop"
|
|
166
|
+
}]
|
|
167
|
+
],
|
|
168
|
+
identifier_rest: [[/[^\\.]+/, "identifier"], [/\./, {
|
|
169
|
+
token: "delimiter",
|
|
170
|
+
bracket: "@close",
|
|
171
|
+
next: "@pop"
|
|
172
|
+
}]],
|
|
173
|
+
semver: [
|
|
174
|
+
{ include: "@whitespace" },
|
|
175
|
+
[":", "delimiter"],
|
|
176
|
+
[/\d*\.\d*\.\d*/, {
|
|
177
|
+
token: "number.semver",
|
|
178
|
+
bracket: "@close",
|
|
179
|
+
next: "@pop"
|
|
180
|
+
}]
|
|
181
|
+
],
|
|
182
|
+
whitespace: [[/[ \t\r\n]+/, "white"]]
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
export { conf, language };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { t as require_lodash } from "./lodash-D-qGlPRW.js";
|
|
2
|
+
var KbnError = class extends Error {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
5
|
+
}
|
|
6
|
+
}, DuplicateField = class extends KbnError {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
super(`The field "${e}" already exists in this mapping`);
|
|
9
|
+
}
|
|
10
|
+
}, IndexPatternMissingIndices = class extends KbnError {
|
|
11
|
+
constructor(e) {
|
|
12
|
+
super(e && e.length ? `No matching indices found: ${e}` : "IndexPattern's configured pattern does not match any indices");
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
async function getTitle(e, p) {
|
|
16
|
+
let m = await e.get("index-pattern", p);
|
|
17
|
+
if (m.error) throw Error(`Unable to get index-pattern title: ${m.error.message}`);
|
|
18
|
+
return m.attributes.title;
|
|
19
|
+
}
|
|
20
|
+
var import_lodash = require_lodash();
|
|
21
|
+
function getFromSavedObject(e) {
|
|
22
|
+
if ((0, import_lodash.get)(e, "attributes.fields") !== void 0) return {
|
|
23
|
+
id: e.id,
|
|
24
|
+
fields: JSON.parse(e.attributes.fields),
|
|
25
|
+
title: e.attributes.title
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const isDefault = (e) => !e.type, ILLEGAL_CHARACTERS_KEY = "ILLEGAL_CHARACTERS", CONTAINS_SPACES_KEY = "CONTAINS_SPACES", ILLEGAL_CHARACTERS_VISIBLE = [
|
|
29
|
+
"\\",
|
|
30
|
+
"/",
|
|
31
|
+
"?",
|
|
32
|
+
"\"",
|
|
33
|
+
"<",
|
|
34
|
+
">",
|
|
35
|
+
"|"
|
|
36
|
+
], ILLEGAL_CHARACTERS = ILLEGAL_CHARACTERS_VISIBLE.concat(" ");
|
|
37
|
+
function indexPatternContainsSpaces(e) {
|
|
38
|
+
return e.includes(" ");
|
|
39
|
+
}
|
|
40
|
+
function findIllegalCharacters(e) {
|
|
41
|
+
return ILLEGAL_CHARACTERS_VISIBLE.reduce((p, m) => (e.includes(m) && p.push(m), p), []);
|
|
42
|
+
}
|
|
43
|
+
function validateIndexPattern(e) {
|
|
44
|
+
let p = {}, m = findIllegalCharacters(e);
|
|
45
|
+
return m.length && (p[ILLEGAL_CHARACTERS_KEY] = m), indexPatternContainsSpaces(e) && (p[CONTAINS_SPACES_KEY] = !0), p;
|
|
46
|
+
}
|
|
47
|
+
export { ILLEGAL_CHARACTERS_VISIBLE as a, getTitle as c, ILLEGAL_CHARACTERS_KEY as i, IndexPatternMissingIndices as l, CONTAINS_SPACES_KEY as n, isDefault as o, ILLEGAL_CHARACTERS as r, getFromSavedObject as s, validateIndexPattern as t, DuplicateField as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./lodash-C_2NO1eK.cjs`);var t=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}},n=class extends t{constructor(e){super(`The field "${e}" already exists in this mapping`)}},r=class extends t{constructor(e){super(e&&e.length?`No matching indices found: ${e}`:`IndexPattern's configured pattern does not match any indices`)}};async function i(e,t){let n=await e.get(`index-pattern`,t);if(n.error)throw Error(`Unable to get index-pattern title: ${n.error.message}`);return n.attributes.title}var a=e.t();function o(e){if((0,a.get)(e,`attributes.fields`)!==void 0)return{id:e.id,fields:JSON.parse(e.attributes.fields),title:e.attributes.title}}const s=e=>!e.type,c=`ILLEGAL_CHARACTERS`,l=`CONTAINS_SPACES`,u=[`\\`,`/`,`?`,`"`,`<`,`>`,`|`],d=u.concat(` `);function f(e){return e.includes(` `)}function p(e){return u.reduce((t,n)=>(e.includes(n)&&t.push(n),t),[])}function m(e){let t={},n=p(e);return n.length&&(t[c]=n),f(e)&&(t[l]=!0),t}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return n}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`),t=require(`./editor.api-lY2thcaq.cjs`);var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},s=(e,t,n)=>(o(e,t,`default`),n&&o(n,t,`default`)),c={};s(c,t.m);var l=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[`<!--`,`-->`],[`<`,`>`],[`{{`,`}}`],[`{%`,`%}`],[`{`,`}`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`%`,close:`%`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`<`,close:`>`},{open:`"`,close:`"`},{open:`'`,close:`'`}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${l.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${l.join(`|`)}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:c.languages.IndentAction.Indent}}]},d={defaultToken:``,tokenPostfix:``,builtinTags:`if.else.elseif.endif.render.assign.capture.endcapture.case.endcase.comment.endcomment.cycle.decrement.for.endfor.include.increment.layout.raw.endraw.render.tablerow.endtablerow.unless.endunless`.split(`.`),builtinFilters:`abs.append.at_least.at_most.capitalize.ceil.compact.date.default.divided_by.downcase.escape.escape_once.first.floor.join.json.last.lstrip.map.minus.modulo.newline_to_br.plus.prepend.remove.remove_first.replace.replace_first.reverse.round.rstrip.size.slice.sort.sort_natural.split.strip.strip_html.strip_newlines.times.truncate.truncatewords.uniq.upcase.url_decode.url_encode.where`.split(`.`),constants:[`true`,`false`],operators:[`==`,`!=`,`>`,`<`,`>=`,`<=`],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,`comment.start.liquid`,`@comment`],[/\{\{/,{token:`@rematch`,switchTo:`@liquidState.root`}],[/\{\%/,{token:`@rematch`,switchTo:`@liquidState.root`}],[/(<)([\w\-]+)(\/>)/,[`delimiter.html`,`tag.html`,`delimiter.html`]],[/(<)([:\w]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/(<\/)([\w\-]+)/,[`delimiter.html`,{token:`tag.html`,next:`@otherTag`}]],[/</,`delimiter.html`],[/\{/,`delimiter.html`],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,`comment.end.liquid`,`@pop`],[/./,`comment.content.liquid`]],otherTag:[[/\{\{/,{token:`@rematch`,switchTo:`@liquidState.otherTag`}],[/\{\%/,{token:`@rematch`,switchTo:`@liquidState.otherTag`}],[/\/?>/,`delimiter.html`,`@pop`],[/"([^"]*)"/,`attribute.value`],[/'([^']*)'/,`attribute.value`],[/[\w\-]+/,`attribute.name`],[/=/,`delimiter`],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,`delimiter.output.liquid`],[/\}\}/,{token:`delimiter.output.liquid`,switchTo:`@$S2.$S3`}],[/\{\%/,`delimiter.tag.liquid`],[/raw\s*\%\}/,`delimiter.tag.liquid`,`@liquidRaw`],[/\%\}/,{token:`delimiter.tag.liquid`,switchTo:`@$S2.$S3`}],{include:`liquidRoot`}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,`delimiter.tag.liquid`],[/@identifier/],[/\%\}/,{token:`delimiter.tag.liquid`,next:`@root`}]],liquidRoot:[[/\d+(\.\d+)?/,`number.liquid`],[/"[^"]*"/,`string.liquid`],[/'[^']*'/,`string.liquid`],[/\s+/],[/@symbol/,{cases:{"@operators":`operator.liquid`,"@default":``}}],[/\./],[/@identifier/,{cases:{"@constants":`keyword.liquid`,"@builtinFilters":`predefined.liquid`,"@builtinTags":`predefined.liquid`,"@default":`variable.liquid`}}],[/[^}|%]/,`variable.liquid`]]}};exports.conf=u,exports.language=d;
|
|
@@ -0,0 +1,205 @@
|
|
|
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
|
+
brackets: [
|
|
30
|
+
["<!--", "-->"],
|
|
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
|
+
open: "'",
|
|
60
|
+
close: "'"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
surroundingPairs: [
|
|
64
|
+
{
|
|
65
|
+
open: "<",
|
|
66
|
+
close: ">"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
open: "\"",
|
|
70
|
+
close: "\""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
open: "'",
|
|
74
|
+
close: "'"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
onEnterRules: [{
|
|
78
|
+
beforeText: RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
79
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
80
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent }
|
|
81
|
+
}, {
|
|
82
|
+
beforeText: RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
83
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
|
84
|
+
}]
|
|
85
|
+
}, language = {
|
|
86
|
+
defaultToken: "",
|
|
87
|
+
tokenPostfix: "",
|
|
88
|
+
builtinTags: /* @__PURE__ */ "if.else.elseif.endif.render.assign.capture.endcapture.case.endcase.comment.endcomment.cycle.decrement.for.endfor.include.increment.layout.raw.endraw.render.tablerow.endtablerow.unless.endunless".split("."),
|
|
89
|
+
builtinFilters: /* @__PURE__ */ "abs.append.at_least.at_most.capitalize.ceil.compact.date.default.divided_by.downcase.escape.escape_once.first.floor.join.json.last.lstrip.map.minus.modulo.newline_to_br.plus.prepend.remove.remove_first.replace.replace_first.reverse.round.rstrip.size.slice.sort.sort_natural.split.strip.strip_html.strip_newlines.times.truncate.truncatewords.uniq.upcase.url_decode.url_encode.where".split("."),
|
|
90
|
+
constants: ["true", "false"],
|
|
91
|
+
operators: [
|
|
92
|
+
"==",
|
|
93
|
+
"!=",
|
|
94
|
+
">",
|
|
95
|
+
"<",
|
|
96
|
+
">=",
|
|
97
|
+
"<="
|
|
98
|
+
],
|
|
99
|
+
symbol: /[=><!]+/,
|
|
100
|
+
identifier: /[a-zA-Z_][\w]*/,
|
|
101
|
+
tokenizer: {
|
|
102
|
+
root: [
|
|
103
|
+
[
|
|
104
|
+
/\{\%\s*comment\s*\%\}/,
|
|
105
|
+
"comment.start.liquid",
|
|
106
|
+
"@comment"
|
|
107
|
+
],
|
|
108
|
+
[/\{\{/, {
|
|
109
|
+
token: "@rematch",
|
|
110
|
+
switchTo: "@liquidState.root"
|
|
111
|
+
}],
|
|
112
|
+
[/\{\%/, {
|
|
113
|
+
token: "@rematch",
|
|
114
|
+
switchTo: "@liquidState.root"
|
|
115
|
+
}],
|
|
116
|
+
[/(<)([\w\-]+)(\/>)/, [
|
|
117
|
+
"delimiter.html",
|
|
118
|
+
"tag.html",
|
|
119
|
+
"delimiter.html"
|
|
120
|
+
]],
|
|
121
|
+
[/(<)([:\w]+)/, ["delimiter.html", {
|
|
122
|
+
token: "tag.html",
|
|
123
|
+
next: "@otherTag"
|
|
124
|
+
}]],
|
|
125
|
+
[/(<\/)([\w\-]+)/, ["delimiter.html", {
|
|
126
|
+
token: "tag.html",
|
|
127
|
+
next: "@otherTag"
|
|
128
|
+
}]],
|
|
129
|
+
[/</, "delimiter.html"],
|
|
130
|
+
[/\{/, "delimiter.html"],
|
|
131
|
+
[/[^<{]+/]
|
|
132
|
+
],
|
|
133
|
+
comment: [[
|
|
134
|
+
/\{\%\s*endcomment\s*\%\}/,
|
|
135
|
+
"comment.end.liquid",
|
|
136
|
+
"@pop"
|
|
137
|
+
], [/./, "comment.content.liquid"]],
|
|
138
|
+
otherTag: [
|
|
139
|
+
[/\{\{/, {
|
|
140
|
+
token: "@rematch",
|
|
141
|
+
switchTo: "@liquidState.otherTag"
|
|
142
|
+
}],
|
|
143
|
+
[/\{\%/, {
|
|
144
|
+
token: "@rematch",
|
|
145
|
+
switchTo: "@liquidState.otherTag"
|
|
146
|
+
}],
|
|
147
|
+
[
|
|
148
|
+
/\/?>/,
|
|
149
|
+
"delimiter.html",
|
|
150
|
+
"@pop"
|
|
151
|
+
],
|
|
152
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
153
|
+
[/'([^']*)'/, "attribute.value"],
|
|
154
|
+
[/[\w\-]+/, "attribute.name"],
|
|
155
|
+
[/=/, "delimiter"],
|
|
156
|
+
[/[ \t\r\n]+/]
|
|
157
|
+
],
|
|
158
|
+
liquidState: [
|
|
159
|
+
[/\{\{/, "delimiter.output.liquid"],
|
|
160
|
+
[/\}\}/, {
|
|
161
|
+
token: "delimiter.output.liquid",
|
|
162
|
+
switchTo: "@$S2.$S3"
|
|
163
|
+
}],
|
|
164
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
165
|
+
[
|
|
166
|
+
/raw\s*\%\}/,
|
|
167
|
+
"delimiter.tag.liquid",
|
|
168
|
+
"@liquidRaw"
|
|
169
|
+
],
|
|
170
|
+
[/\%\}/, {
|
|
171
|
+
token: "delimiter.tag.liquid",
|
|
172
|
+
switchTo: "@$S2.$S3"
|
|
173
|
+
}],
|
|
174
|
+
{ include: "liquidRoot" }
|
|
175
|
+
],
|
|
176
|
+
liquidRaw: [
|
|
177
|
+
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
|
178
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
179
|
+
[/@identifier/],
|
|
180
|
+
[/\%\}/, {
|
|
181
|
+
token: "delimiter.tag.liquid",
|
|
182
|
+
next: "@root"
|
|
183
|
+
}]
|
|
184
|
+
],
|
|
185
|
+
liquidRoot: [
|
|
186
|
+
[/\d+(\.\d+)?/, "number.liquid"],
|
|
187
|
+
[/"[^"]*"/, "string.liquid"],
|
|
188
|
+
[/'[^']*'/, "string.liquid"],
|
|
189
|
+
[/\s+/],
|
|
190
|
+
[/@symbol/, { cases: {
|
|
191
|
+
"@operators": "operator.liquid",
|
|
192
|
+
"@default": ""
|
|
193
|
+
} }],
|
|
194
|
+
[/\./],
|
|
195
|
+
[/@identifier/, { cases: {
|
|
196
|
+
"@constants": "keyword.liquid",
|
|
197
|
+
"@builtinFilters": "predefined.liquid",
|
|
198
|
+
"@builtinTags": "predefined.liquid",
|
|
199
|
+
"@default": "variable.liquid"
|
|
200
|
+
} }],
|
|
201
|
+
[/[^}|%]/, "variable.liquid"]
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
export { conf, language };
|