@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,284 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
|
3
|
+
comments: { blockComment: ["/*", "*/"] },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "{",
|
|
12
|
+
close: "}",
|
|
13
|
+
notIn: ["string", "comment"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
open: "[",
|
|
17
|
+
close: "]",
|
|
18
|
+
notIn: ["string", "comment"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
open: "(",
|
|
22
|
+
close: ")",
|
|
23
|
+
notIn: ["string", "comment"]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
open: "\"",
|
|
27
|
+
close: "\"",
|
|
28
|
+
notIn: ["string", "comment"]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "'",
|
|
32
|
+
close: "'",
|
|
33
|
+
notIn: ["string", "comment"]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
surroundingPairs: [
|
|
37
|
+
{
|
|
38
|
+
open: "{",
|
|
39
|
+
close: "}"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
open: "[",
|
|
43
|
+
close: "]"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
open: "(",
|
|
47
|
+
close: ")"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
open: "\"",
|
|
51
|
+
close: "\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
open: "'",
|
|
55
|
+
close: "'"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
folding: { markers: {
|
|
59
|
+
start: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
|
60
|
+
end: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
|
61
|
+
} }
|
|
62
|
+
}, language = {
|
|
63
|
+
defaultToken: "",
|
|
64
|
+
tokenPostfix: ".css",
|
|
65
|
+
ws: "[ \n\r\f]*",
|
|
66
|
+
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])))*",
|
|
67
|
+
brackets: [
|
|
68
|
+
{
|
|
69
|
+
open: "{",
|
|
70
|
+
close: "}",
|
|
71
|
+
token: "delimiter.bracket"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
open: "[",
|
|
75
|
+
close: "]",
|
|
76
|
+
token: "delimiter.bracket"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
open: "(",
|
|
80
|
+
close: ")",
|
|
81
|
+
token: "delimiter.parenthesis"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
open: "<",
|
|
85
|
+
close: ">",
|
|
86
|
+
token: "delimiter.angle"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
tokenizer: {
|
|
90
|
+
root: [{ include: "@selector" }],
|
|
91
|
+
selector: [
|
|
92
|
+
{ include: "@comments" },
|
|
93
|
+
{ include: "@import" },
|
|
94
|
+
{ include: "@strings" },
|
|
95
|
+
["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {
|
|
96
|
+
token: "keyword",
|
|
97
|
+
next: "@keyframedeclaration"
|
|
98
|
+
}],
|
|
99
|
+
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
|
100
|
+
["[@](charset|namespace)", {
|
|
101
|
+
token: "keyword",
|
|
102
|
+
next: "@declarationbody"
|
|
103
|
+
}],
|
|
104
|
+
["(url-prefix)(\\()", ["attribute.value", {
|
|
105
|
+
token: "delimiter.parenthesis",
|
|
106
|
+
next: "@urldeclaration"
|
|
107
|
+
}]],
|
|
108
|
+
["(url)(\\()", ["attribute.value", {
|
|
109
|
+
token: "delimiter.parenthesis",
|
|
110
|
+
next: "@urldeclaration"
|
|
111
|
+
}]],
|
|
112
|
+
{ include: "@selectorname" },
|
|
113
|
+
["[\\*]", "tag"],
|
|
114
|
+
["[>\\+,]", "delimiter"],
|
|
115
|
+
["\\[", {
|
|
116
|
+
token: "delimiter.bracket",
|
|
117
|
+
next: "@selectorattribute"
|
|
118
|
+
}],
|
|
119
|
+
["{", {
|
|
120
|
+
token: "delimiter.bracket",
|
|
121
|
+
next: "@selectorbody"
|
|
122
|
+
}]
|
|
123
|
+
],
|
|
124
|
+
selectorbody: [
|
|
125
|
+
{ include: "@comments" },
|
|
126
|
+
[
|
|
127
|
+
"[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))",
|
|
128
|
+
"attribute.name",
|
|
129
|
+
"@rulevalue"
|
|
130
|
+
],
|
|
131
|
+
["}", {
|
|
132
|
+
token: "delimiter.bracket",
|
|
133
|
+
next: "@pop"
|
|
134
|
+
}]
|
|
135
|
+
],
|
|
136
|
+
selectorname: [["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]],
|
|
137
|
+
selectorattribute: [{ include: "@term" }, ["]", {
|
|
138
|
+
token: "delimiter.bracket",
|
|
139
|
+
next: "@pop"
|
|
140
|
+
}]],
|
|
141
|
+
term: [
|
|
142
|
+
{ include: "@comments" },
|
|
143
|
+
["(url-prefix)(\\()", ["attribute.value", {
|
|
144
|
+
token: "delimiter.parenthesis",
|
|
145
|
+
next: "@urldeclaration"
|
|
146
|
+
}]],
|
|
147
|
+
["(url)(\\()", ["attribute.value", {
|
|
148
|
+
token: "delimiter.parenthesis",
|
|
149
|
+
next: "@urldeclaration"
|
|
150
|
+
}]],
|
|
151
|
+
{ include: "@functioninvocation" },
|
|
152
|
+
{ include: "@numbers" },
|
|
153
|
+
{ include: "@name" },
|
|
154
|
+
{ include: "@strings" },
|
|
155
|
+
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
|
|
156
|
+
[",", "delimiter"]
|
|
157
|
+
],
|
|
158
|
+
rulevalue: [
|
|
159
|
+
{ include: "@comments" },
|
|
160
|
+
{ include: "@strings" },
|
|
161
|
+
{ include: "@term" },
|
|
162
|
+
["!important", "keyword"],
|
|
163
|
+
[
|
|
164
|
+
";",
|
|
165
|
+
"delimiter",
|
|
166
|
+
"@pop"
|
|
167
|
+
],
|
|
168
|
+
["(?=})", {
|
|
169
|
+
token: "",
|
|
170
|
+
next: "@pop"
|
|
171
|
+
}]
|
|
172
|
+
],
|
|
173
|
+
warndebug: [["[@](warn|debug)", {
|
|
174
|
+
token: "keyword",
|
|
175
|
+
next: "@declarationbody"
|
|
176
|
+
}]],
|
|
177
|
+
import: [["[@](import)", {
|
|
178
|
+
token: "keyword",
|
|
179
|
+
next: "@declarationbody"
|
|
180
|
+
}]],
|
|
181
|
+
urldeclaration: [
|
|
182
|
+
{ include: "@strings" },
|
|
183
|
+
["[^)\r\n]+", "string"],
|
|
184
|
+
["\\)", {
|
|
185
|
+
token: "delimiter.parenthesis",
|
|
186
|
+
next: "@pop"
|
|
187
|
+
}]
|
|
188
|
+
],
|
|
189
|
+
parenthizedterm: [{ include: "@term" }, ["\\)", {
|
|
190
|
+
token: "delimiter.parenthesis",
|
|
191
|
+
next: "@pop"
|
|
192
|
+
}]],
|
|
193
|
+
declarationbody: [
|
|
194
|
+
{ include: "@term" },
|
|
195
|
+
[
|
|
196
|
+
";",
|
|
197
|
+
"delimiter",
|
|
198
|
+
"@pop"
|
|
199
|
+
],
|
|
200
|
+
["(?=})", {
|
|
201
|
+
token: "",
|
|
202
|
+
next: "@pop"
|
|
203
|
+
}]
|
|
204
|
+
],
|
|
205
|
+
comments: [[
|
|
206
|
+
"\\/\\*",
|
|
207
|
+
"comment",
|
|
208
|
+
"@comment"
|
|
209
|
+
], ["\\/\\/+.*", "comment"]],
|
|
210
|
+
comment: [
|
|
211
|
+
[
|
|
212
|
+
"\\*\\/",
|
|
213
|
+
"comment",
|
|
214
|
+
"@pop"
|
|
215
|
+
],
|
|
216
|
+
[/[^*/]+/, "comment"],
|
|
217
|
+
[/./, "comment"]
|
|
218
|
+
],
|
|
219
|
+
name: [["@identifier", "attribute.value"]],
|
|
220
|
+
numbers: [["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {
|
|
221
|
+
token: "attribute.value.number",
|
|
222
|
+
next: "@units"
|
|
223
|
+
}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]],
|
|
224
|
+
units: [[
|
|
225
|
+
"(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
|
226
|
+
"attribute.value.unit",
|
|
227
|
+
"@pop"
|
|
228
|
+
]],
|
|
229
|
+
keyframedeclaration: [["@identifier", "attribute.value"], ["{", {
|
|
230
|
+
token: "delimiter.bracket",
|
|
231
|
+
switchTo: "@keyframebody"
|
|
232
|
+
}]],
|
|
233
|
+
keyframebody: [
|
|
234
|
+
{ include: "@term" },
|
|
235
|
+
["{", {
|
|
236
|
+
token: "delimiter.bracket",
|
|
237
|
+
next: "@selectorbody"
|
|
238
|
+
}],
|
|
239
|
+
["}", {
|
|
240
|
+
token: "delimiter.bracket",
|
|
241
|
+
next: "@pop"
|
|
242
|
+
}]
|
|
243
|
+
],
|
|
244
|
+
functioninvocation: [["@identifier\\(", {
|
|
245
|
+
token: "attribute.value",
|
|
246
|
+
next: "@functionarguments"
|
|
247
|
+
}]],
|
|
248
|
+
functionarguments: [
|
|
249
|
+
["\\$@identifier@ws:", "attribute.name"],
|
|
250
|
+
["[,]", "delimiter"],
|
|
251
|
+
{ include: "@term" },
|
|
252
|
+
["\\)", {
|
|
253
|
+
token: "attribute.value",
|
|
254
|
+
next: "@pop"
|
|
255
|
+
}]
|
|
256
|
+
],
|
|
257
|
+
strings: [["~?\"", {
|
|
258
|
+
token: "string",
|
|
259
|
+
next: "@stringenddoublequote"
|
|
260
|
+
}], ["~?'", {
|
|
261
|
+
token: "string",
|
|
262
|
+
next: "@stringendquote"
|
|
263
|
+
}]],
|
|
264
|
+
stringenddoublequote: [
|
|
265
|
+
["\\\\.", "string"],
|
|
266
|
+
["\"", {
|
|
267
|
+
token: "string",
|
|
268
|
+
next: "@pop"
|
|
269
|
+
}],
|
|
270
|
+
[/[^\\"]+/, "string"],
|
|
271
|
+
[".", "string"]
|
|
272
|
+
],
|
|
273
|
+
stringendquote: [
|
|
274
|
+
["\\\\.", "string"],
|
|
275
|
+
["'", {
|
|
276
|
+
token: "string",
|
|
277
|
+
next: "@pop"
|
|
278
|
+
}],
|
|
279
|
+
[/[^\\']+/, "string"],
|
|
280
|
+
[".", "string"]
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
export { conf, language };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/`),end:RegExp(`^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/`)}}},n={defaultToken:``,tokenPostfix:`.css`,ws:`[
|
|
2
|
+
\r\f]*`,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])))*`,brackets:[{open:`{`,close:`}`,token:`delimiter.bracket`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],tokenizer:{root:[{include:`@selector`}],selector:[{include:`@comments`},{include:`@import`},{include:`@strings`},[`[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)`,{token:`keyword`,next:`@keyframedeclaration`}],[`[@](page|content|font-face|-moz-document)`,{token:`keyword`}],[`[@](charset|namespace)`,{token:`keyword`,next:`@declarationbody`}],[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@selectorname`},[`[\\*]`,`tag`],[`[>\\+,]`,`delimiter`],[`\\[`,{token:`delimiter.bracket`,next:`@selectorattribute`}],[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}]],selectorbody:[{include:`@comments`},[`[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))`,`attribute.name`,`@rulevalue`],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],selectorname:[[`(\\.|#(?=[^{])|%|(@identifier)|:)+`,`tag`]],selectorattribute:[{include:`@term`},[`]`,{token:`delimiter.bracket`,next:`@pop`}]],term:[{include:`@comments`},[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@functioninvocation`},{include:`@numbers`},{include:`@name`},{include:`@strings`},[`([<>=\\+\\-\\*\\/\\^\\|\\~,])`,`delimiter`],[`,`,`delimiter`]],rulevalue:[{include:`@comments`},{include:`@strings`},{include:`@term`},[`!important`,`keyword`],[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],warndebug:[[`[@](warn|debug)`,{token:`keyword`,next:`@declarationbody`}]],import:[[`[@](import)`,{token:`keyword`,next:`@declarationbody`}]],urldeclaration:[{include:`@strings`},[`[^)\r
|
|
3
|
+
]+`,`string`],[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],parenthizedterm:[{include:`@term`},[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],declarationbody:[{include:`@term`},[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[/[^*/]+/,`comment`],[/./,`comment`]],name:[[`@identifier`,`attribute.value`]],numbers:[[`-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?`,{token:`attribute.value.number`,next:`@units`}],[`#[0-9a-fA-F_]+(?!\\w)`,`attribute.value.hex`]],units:[[`(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?`,`attribute.value.unit`,`@pop`]],keyframedeclaration:[[`@identifier`,`attribute.value`],[`{`,{token:`delimiter.bracket`,switchTo:`@keyframebody`}]],keyframebody:[{include:`@term`},[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],functioninvocation:[[`@identifier\\(`,{token:`attribute.value`,next:`@functionarguments`}]],functionarguments:[[`\\$@identifier@ws:`,`attribute.name`],[`[,]`,`delimiter`],{include:`@term`},[`\\)`,{token:`attribute.value`,next:`@pop`}]],strings:[[`~?"`,{token:`string`,next:`@stringenddoublequote`}],[`~?'`,{token:`string`,next:`@stringendquote`}]],stringenddoublequote:[[`\\\\.`,`string`],[`"`,{token:`string`,next:`@pop`}],[/[^\\"]+/,`string`],[`.`,`string`]],stringendquote:[[`\\\\.`,`string`],[`'`,{token:`string`,next:`@pop`}],[/[^\\']+/,`string`],[`.`,`string`]]}};exports.conf=t,exports.language=n;
|