@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,234 @@
|
|
|
1
|
+
var bounded = (e) => `\\b${e}\\b`, notBefore = (e) => `(?!${e})`, identifier = bounded("[_a-zA-Z][_a-zA-Z0-9]*"), directive = bounded("[_a-zA-Z-0-9]+"), keywords = [
|
|
2
|
+
"import",
|
|
3
|
+
"model",
|
|
4
|
+
"scalar",
|
|
5
|
+
"namespace",
|
|
6
|
+
"op",
|
|
7
|
+
"interface",
|
|
8
|
+
"union",
|
|
9
|
+
"using",
|
|
10
|
+
"is",
|
|
11
|
+
"extends",
|
|
12
|
+
"enum",
|
|
13
|
+
"alias",
|
|
14
|
+
"return",
|
|
15
|
+
"void",
|
|
16
|
+
"if",
|
|
17
|
+
"else",
|
|
18
|
+
"projection",
|
|
19
|
+
"dec",
|
|
20
|
+
"extern",
|
|
21
|
+
"fn"
|
|
22
|
+
], namedLiterals = [
|
|
23
|
+
"true",
|
|
24
|
+
"false",
|
|
25
|
+
"null",
|
|
26
|
+
"unknown",
|
|
27
|
+
"never"
|
|
28
|
+
], nonCommentWs = "[ \\t\\r\\n]", numericLiteral = "[0-9]+", conf = {
|
|
29
|
+
comments: {
|
|
30
|
+
lineComment: "//",
|
|
31
|
+
blockComment: ["/*", "*/"]
|
|
32
|
+
},
|
|
33
|
+
brackets: [
|
|
34
|
+
["{", "}"],
|
|
35
|
+
["[", "]"],
|
|
36
|
+
["(", ")"]
|
|
37
|
+
],
|
|
38
|
+
autoClosingPairs: [
|
|
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
|
+
open: "/**",
|
|
57
|
+
close: " */",
|
|
58
|
+
notIn: ["string"]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
surroundingPairs: [
|
|
62
|
+
{
|
|
63
|
+
open: "{",
|
|
64
|
+
close: "}"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
open: "[",
|
|
68
|
+
close: "]"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
open: "(",
|
|
72
|
+
close: ")"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
open: "\"",
|
|
76
|
+
close: "\""
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
indentationRules: {
|
|
80
|
+
decreaseIndentPattern: /* @__PURE__ */ RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),
|
|
81
|
+
increaseIndentPattern: /* @__PURE__ */ RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),
|
|
82
|
+
unIndentedLinePattern: /* @__PURE__ */ RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")
|
|
83
|
+
}
|
|
84
|
+
}, language = {
|
|
85
|
+
defaultToken: "",
|
|
86
|
+
tokenPostfix: ".tsp",
|
|
87
|
+
brackets: [
|
|
88
|
+
{
|
|
89
|
+
open: "{",
|
|
90
|
+
close: "}",
|
|
91
|
+
token: "delimiter.curly"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
open: "[",
|
|
95
|
+
close: "]",
|
|
96
|
+
token: "delimiter.square"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
open: "(",
|
|
100
|
+
close: ")",
|
|
101
|
+
token: "delimiter.parenthesis"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
symbols: /[=:;<>]+/,
|
|
105
|
+
keywords,
|
|
106
|
+
namedLiterals,
|
|
107
|
+
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|\"|\\${)",
|
|
108
|
+
tokenizer: {
|
|
109
|
+
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
110
|
+
stringVerbatim: [{
|
|
111
|
+
regex: "(|\"|\"\")[^\"]",
|
|
112
|
+
action: { token: "string" }
|
|
113
|
+
}, {
|
|
114
|
+
regex: `"""${notBefore("\"")}`,
|
|
115
|
+
action: {
|
|
116
|
+
token: "string",
|
|
117
|
+
next: "@pop"
|
|
118
|
+
}
|
|
119
|
+
}],
|
|
120
|
+
stringLiteral: [
|
|
121
|
+
{
|
|
122
|
+
regex: "\\${",
|
|
123
|
+
action: {
|
|
124
|
+
token: "delimiter.bracket",
|
|
125
|
+
next: "@bracketCounting"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
regex: "[^\\\\\"$]+",
|
|
130
|
+
action: { token: "string" }
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
regex: "@escapes",
|
|
134
|
+
action: { token: "string.escape" }
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
regex: "\\\\.",
|
|
138
|
+
action: { token: "string.escape.invalid" }
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
regex: "\"",
|
|
142
|
+
action: {
|
|
143
|
+
token: "string",
|
|
144
|
+
next: "@pop"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
bracketCounting: [
|
|
149
|
+
{
|
|
150
|
+
regex: "{",
|
|
151
|
+
action: {
|
|
152
|
+
token: "delimiter.bracket",
|
|
153
|
+
next: "@bracketCounting"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
regex: "}",
|
|
158
|
+
action: {
|
|
159
|
+
token: "delimiter.bracket",
|
|
160
|
+
next: "@pop"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{ include: "@expression" }
|
|
164
|
+
],
|
|
165
|
+
comment: [
|
|
166
|
+
{
|
|
167
|
+
regex: "[^\\*]+",
|
|
168
|
+
action: { token: "comment" }
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
regex: "\\*\\/",
|
|
172
|
+
action: {
|
|
173
|
+
token: "comment",
|
|
174
|
+
next: "@pop"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
regex: "[\\/*]",
|
|
179
|
+
action: { token: "comment" }
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
whitespace: [
|
|
183
|
+
{ regex: nonCommentWs },
|
|
184
|
+
{
|
|
185
|
+
regex: "\\/\\*",
|
|
186
|
+
action: {
|
|
187
|
+
token: "comment",
|
|
188
|
+
next: "@comment"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
regex: "\\/\\/.*$",
|
|
193
|
+
action: { token: "comment" }
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
expression: [
|
|
197
|
+
{
|
|
198
|
+
regex: "\"\"\"",
|
|
199
|
+
action: {
|
|
200
|
+
token: "string",
|
|
201
|
+
next: "@stringVerbatim"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
regex: `"${notBefore("\"\"")}`,
|
|
206
|
+
action: {
|
|
207
|
+
token: "string",
|
|
208
|
+
next: "@stringLiteral"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
regex: numericLiteral,
|
|
213
|
+
action: { token: "number" }
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
regex: identifier,
|
|
217
|
+
action: { cases: {
|
|
218
|
+
"@keywords": { token: "keyword" },
|
|
219
|
+
"@namedLiterals": { token: "keyword" },
|
|
220
|
+
"@default": { token: "identifier" }
|
|
221
|
+
} }
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
regex: `@${identifier}`,
|
|
225
|
+
action: { token: "tag" }
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
regex: `#${directive}`,
|
|
229
|
+
action: { token: "directive" }
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
export { conf, language };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "'",
|
|
4
|
+
blockComment: ["/*", "*/"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"],
|
|
10
|
+
["<", ">"],
|
|
11
|
+
["addhandler", "end addhandler"],
|
|
12
|
+
["class", "end class"],
|
|
13
|
+
["enum", "end enum"],
|
|
14
|
+
["event", "end event"],
|
|
15
|
+
["function", "end function"],
|
|
16
|
+
["get", "end get"],
|
|
17
|
+
["if", "end if"],
|
|
18
|
+
["interface", "end interface"],
|
|
19
|
+
["module", "end module"],
|
|
20
|
+
["namespace", "end namespace"],
|
|
21
|
+
["operator", "end operator"],
|
|
22
|
+
["property", "end property"],
|
|
23
|
+
["raiseevent", "end raiseevent"],
|
|
24
|
+
["removehandler", "end removehandler"],
|
|
25
|
+
["select", "end select"],
|
|
26
|
+
["set", "end set"],
|
|
27
|
+
["structure", "end structure"],
|
|
28
|
+
["sub", "end sub"],
|
|
29
|
+
["synclock", "end synclock"],
|
|
30
|
+
["try", "end try"],
|
|
31
|
+
["while", "end while"],
|
|
32
|
+
["with", "end with"],
|
|
33
|
+
["using", "end using"],
|
|
34
|
+
["do", "loop"],
|
|
35
|
+
["for", "next"]
|
|
36
|
+
],
|
|
37
|
+
autoClosingPairs: [
|
|
38
|
+
{
|
|
39
|
+
open: "{",
|
|
40
|
+
close: "}",
|
|
41
|
+
notIn: ["string", "comment"]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
open: "[",
|
|
45
|
+
close: "]",
|
|
46
|
+
notIn: ["string", "comment"]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
open: "(",
|
|
50
|
+
close: ")",
|
|
51
|
+
notIn: ["string", "comment"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
open: "\"",
|
|
55
|
+
close: "\"",
|
|
56
|
+
notIn: ["string", "comment"]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
open: "<",
|
|
60
|
+
close: ">",
|
|
61
|
+
notIn: ["string", "comment"]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
folding: { markers: {
|
|
65
|
+
start: /* @__PURE__ */ RegExp("^\\s*#Region\\b"),
|
|
66
|
+
end: /* @__PURE__ */ RegExp("^\\s*#End Region\\b")
|
|
67
|
+
} }
|
|
68
|
+
}, language = {
|
|
69
|
+
defaultToken: "",
|
|
70
|
+
tokenPostfix: ".vb",
|
|
71
|
+
ignoreCase: !0,
|
|
72
|
+
brackets: [
|
|
73
|
+
{
|
|
74
|
+
token: "delimiter.bracket",
|
|
75
|
+
open: "{",
|
|
76
|
+
close: "}"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
token: "delimiter.array",
|
|
80
|
+
open: "[",
|
|
81
|
+
close: "]"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
token: "delimiter.parenthesis",
|
|
85
|
+
open: "(",
|
|
86
|
+
close: ")"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
token: "delimiter.angle",
|
|
90
|
+
open: "<",
|
|
91
|
+
close: ">"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
token: "keyword.tag-addhandler",
|
|
95
|
+
open: "addhandler",
|
|
96
|
+
close: "end addhandler"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
token: "keyword.tag-class",
|
|
100
|
+
open: "class",
|
|
101
|
+
close: "end class"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
token: "keyword.tag-enum",
|
|
105
|
+
open: "enum",
|
|
106
|
+
close: "end enum"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
token: "keyword.tag-event",
|
|
110
|
+
open: "event",
|
|
111
|
+
close: "end event"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
token: "keyword.tag-function",
|
|
115
|
+
open: "function",
|
|
116
|
+
close: "end function"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
token: "keyword.tag-get",
|
|
120
|
+
open: "get",
|
|
121
|
+
close: "end get"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
token: "keyword.tag-if",
|
|
125
|
+
open: "if",
|
|
126
|
+
close: "end if"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
token: "keyword.tag-interface",
|
|
130
|
+
open: "interface",
|
|
131
|
+
close: "end interface"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
token: "keyword.tag-module",
|
|
135
|
+
open: "module",
|
|
136
|
+
close: "end module"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
token: "keyword.tag-namespace",
|
|
140
|
+
open: "namespace",
|
|
141
|
+
close: "end namespace"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
token: "keyword.tag-operator",
|
|
145
|
+
open: "operator",
|
|
146
|
+
close: "end operator"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
token: "keyword.tag-property",
|
|
150
|
+
open: "property",
|
|
151
|
+
close: "end property"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
token: "keyword.tag-raiseevent",
|
|
155
|
+
open: "raiseevent",
|
|
156
|
+
close: "end raiseevent"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
token: "keyword.tag-removehandler",
|
|
160
|
+
open: "removehandler",
|
|
161
|
+
close: "end removehandler"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
token: "keyword.tag-select",
|
|
165
|
+
open: "select",
|
|
166
|
+
close: "end select"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
token: "keyword.tag-set",
|
|
170
|
+
open: "set",
|
|
171
|
+
close: "end set"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
token: "keyword.tag-structure",
|
|
175
|
+
open: "structure",
|
|
176
|
+
close: "end structure"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
token: "keyword.tag-sub",
|
|
180
|
+
open: "sub",
|
|
181
|
+
close: "end sub"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
token: "keyword.tag-synclock",
|
|
185
|
+
open: "synclock",
|
|
186
|
+
close: "end synclock"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
token: "keyword.tag-try",
|
|
190
|
+
open: "try",
|
|
191
|
+
close: "end try"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
token: "keyword.tag-while",
|
|
195
|
+
open: "while",
|
|
196
|
+
close: "end while"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
token: "keyword.tag-with",
|
|
200
|
+
open: "with",
|
|
201
|
+
close: "end with"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
token: "keyword.tag-using",
|
|
205
|
+
open: "using",
|
|
206
|
+
close: "end using"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
token: "keyword.tag-do",
|
|
210
|
+
open: "do",
|
|
211
|
+
close: "loop"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
token: "keyword.tag-for",
|
|
215
|
+
open: "for",
|
|
216
|
+
close: "next"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
keywords: /* @__PURE__ */ "AddHandler.AddressOf.Alias.And.AndAlso.As.Async.Boolean.ByRef.Byte.ByVal.Call.Case.Catch.CBool.CByte.CChar.CDate.CDbl.CDec.Char.CInt.Class.CLng.CObj.Const.Continue.CSByte.CShort.CSng.CStr.CType.CUInt.CULng.CUShort.Date.Decimal.Declare.Default.Delegate.Dim.DirectCast.Do.Double.Each.Else.ElseIf.End.EndIf.Enum.Erase.Error.Event.Exit.False.Finally.For.Friend.Function.Get.GetType.GetXMLNamespace.Global.GoSub.GoTo.Handles.If.Implements.Imports.In.Inherits.Integer.Interface.Is.IsNot.Let.Lib.Like.Long.Loop.Me.Mod.Module.MustInherit.MustOverride.MyBase.MyClass.NameOf.Namespace.Narrowing.New.Next.Not.Nothing.NotInheritable.NotOverridable.Object.Of.On.Operator.Option.Optional.Or.OrElse.Out.Overloads.Overridable.Overrides.ParamArray.Partial.Private.Property.Protected.Public.RaiseEvent.ReadOnly.ReDim.RemoveHandler.Resume.Return.SByte.Select.Set.Shadows.Shared.Short.Single.Static.Step.Stop.String.Structure.Sub.SyncLock.Then.Throw.To.True.Try.TryCast.TypeOf.UInteger.ULong.UShort.Using.Variant.Wend.When.While.Widening.With.WithEvents.WriteOnly.Xor".split("."),
|
|
220
|
+
tagwords: /* @__PURE__ */ "If.Sub.Select.Try.Class.Enum.Function.Get.Interface.Module.Namespace.Operator.Set.Structure.Using.While.With.Do.Loop.For.Next.Property.Continue.AddHandler.RemoveHandler.Event.RaiseEvent.SyncLock".split("."),
|
|
221
|
+
symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/,
|
|
222
|
+
integersuffix: /U?[DI%L&S@]?/,
|
|
223
|
+
floatsuffix: /[R#F!]?/,
|
|
224
|
+
tokenizer: {
|
|
225
|
+
root: [
|
|
226
|
+
{ include: "@whitespace" },
|
|
227
|
+
[/next(?!\w)/, { token: "keyword.tag-for" }],
|
|
228
|
+
[/loop(?!\w)/, { token: "keyword.tag-do" }],
|
|
229
|
+
[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/, { token: "keyword.tag-$1" }],
|
|
230
|
+
[/[a-zA-Z_]\w*/, { cases: {
|
|
231
|
+
"@tagwords": { token: "keyword.tag-$0" },
|
|
232
|
+
"@keywords": { token: "keyword.$0" },
|
|
233
|
+
"@default": "identifier"
|
|
234
|
+
} }],
|
|
235
|
+
[/^\s*#\w+/, "keyword"],
|
|
236
|
+
[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
237
|
+
[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
238
|
+
[/&H[0-9a-f]+(@integersuffix)/, "number.hex"],
|
|
239
|
+
[/&0[0-7]+(@integersuffix)/, "number.octal"],
|
|
240
|
+
[/\d+(@integersuffix)/, "number"],
|
|
241
|
+
[/#.*#/, "number"],
|
|
242
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
243
|
+
[/@symbols/, "delimiter"],
|
|
244
|
+
[/["\u201c\u201d]/, {
|
|
245
|
+
token: "string.quote",
|
|
246
|
+
next: "@string"
|
|
247
|
+
}]
|
|
248
|
+
],
|
|
249
|
+
whitespace: [[/[ \t\r\n]+/, ""], [/(\'|REM(?!\w)).*$/, "comment"]],
|
|
250
|
+
string: [
|
|
251
|
+
[/[^"\u201c\u201d]+/, "string"],
|
|
252
|
+
[/["\u201c\u201d]{2}/, "string.escape"],
|
|
253
|
+
[/["\u201c\u201d]C?/, {
|
|
254
|
+
token: "string.quote",
|
|
255
|
+
next: "@pop"
|
|
256
|
+
}]
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
export { conf, language };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={comments:{lineComment:`'`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`],[`addhandler`,`end addhandler`],[`class`,`end class`],[`enum`,`end enum`],[`event`,`end event`],[`function`,`end function`],[`get`,`end get`],[`if`,`end if`],[`interface`,`end interface`],[`module`,`end module`],[`namespace`,`end namespace`],[`operator`,`end operator`],[`property`,`end property`],[`raiseevent`,`end raiseevent`],[`removehandler`,`end removehandler`],[`select`,`end select`],[`set`,`end set`],[`structure`,`end structure`],[`sub`,`end sub`],[`synclock`,`end synclock`],[`try`,`end try`],[`while`,`end while`],[`with`,`end with`],[`using`,`end using`],[`do`,`loop`],[`for`,`next`]],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`]}],folding:{markers:{start:RegExp(`^\\s*#Region\\b`),end:RegExp(`^\\s*#End Region\\b`)}}},n={defaultToken:``,tokenPostfix:`.vb`,ignoreCase:!0,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.array`,open:`[`,close:`]`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.angle`,open:`<`,close:`>`},{token:`keyword.tag-addhandler`,open:`addhandler`,close:`end addhandler`},{token:`keyword.tag-class`,open:`class`,close:`end class`},{token:`keyword.tag-enum`,open:`enum`,close:`end enum`},{token:`keyword.tag-event`,open:`event`,close:`end event`},{token:`keyword.tag-function`,open:`function`,close:`end function`},{token:`keyword.tag-get`,open:`get`,close:`end get`},{token:`keyword.tag-if`,open:`if`,close:`end if`},{token:`keyword.tag-interface`,open:`interface`,close:`end interface`},{token:`keyword.tag-module`,open:`module`,close:`end module`},{token:`keyword.tag-namespace`,open:`namespace`,close:`end namespace`},{token:`keyword.tag-operator`,open:`operator`,close:`end operator`},{token:`keyword.tag-property`,open:`property`,close:`end property`},{token:`keyword.tag-raiseevent`,open:`raiseevent`,close:`end raiseevent`},{token:`keyword.tag-removehandler`,open:`removehandler`,close:`end removehandler`},{token:`keyword.tag-select`,open:`select`,close:`end select`},{token:`keyword.tag-set`,open:`set`,close:`end set`},{token:`keyword.tag-structure`,open:`structure`,close:`end structure`},{token:`keyword.tag-sub`,open:`sub`,close:`end sub`},{token:`keyword.tag-synclock`,open:`synclock`,close:`end synclock`},{token:`keyword.tag-try`,open:`try`,close:`end try`},{token:`keyword.tag-while`,open:`while`,close:`end while`},{token:`keyword.tag-with`,open:`with`,close:`end with`},{token:`keyword.tag-using`,open:`using`,close:`end using`},{token:`keyword.tag-do`,open:`do`,close:`loop`},{token:`keyword.tag-for`,open:`for`,close:`next`}],keywords:`AddHandler.AddressOf.Alias.And.AndAlso.As.Async.Boolean.ByRef.Byte.ByVal.Call.Case.Catch.CBool.CByte.CChar.CDate.CDbl.CDec.Char.CInt.Class.CLng.CObj.Const.Continue.CSByte.CShort.CSng.CStr.CType.CUInt.CULng.CUShort.Date.Decimal.Declare.Default.Delegate.Dim.DirectCast.Do.Double.Each.Else.ElseIf.End.EndIf.Enum.Erase.Error.Event.Exit.False.Finally.For.Friend.Function.Get.GetType.GetXMLNamespace.Global.GoSub.GoTo.Handles.If.Implements.Imports.In.Inherits.Integer.Interface.Is.IsNot.Let.Lib.Like.Long.Loop.Me.Mod.Module.MustInherit.MustOverride.MyBase.MyClass.NameOf.Namespace.Narrowing.New.Next.Not.Nothing.NotInheritable.NotOverridable.Object.Of.On.Operator.Option.Optional.Or.OrElse.Out.Overloads.Overridable.Overrides.ParamArray.Partial.Private.Property.Protected.Public.RaiseEvent.ReadOnly.ReDim.RemoveHandler.Resume.Return.SByte.Select.Set.Shadows.Shared.Short.Single.Static.Step.Stop.String.Structure.Sub.SyncLock.Then.Throw.To.True.Try.TryCast.TypeOf.UInteger.ULong.UShort.Using.Variant.Wend.When.While.Widening.With.WithEvents.WriteOnly.Xor`.split(`.`),tagwords:`If.Sub.Select.Try.Class.Enum.Function.Get.Interface.Module.Namespace.Operator.Set.Structure.Using.While.With.Do.Loop.For.Next.Property.Continue.AddHandler.RemoveHandler.Event.RaiseEvent.SyncLock`.split(`.`),symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:`@whitespace`},[/next(?!\w)/,{token:`keyword.tag-for`}],[/loop(?!\w)/,{token:`keyword.tag-do`}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:`keyword.tag-$1`}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:`keyword.tag-$0`},"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/^\s*#\w+/,`keyword`],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,`number.float`],[/&H[0-9a-f]+(@integersuffix)/,`number.hex`],[/&0[0-7]+(@integersuffix)/,`number.octal`],[/\d+(@integersuffix)/,`number`],[/#.*#/,`number`],[/[{}()\[\]]/,`@brackets`],[/@symbols/,`delimiter`],[/["\u201c\u201d]/,{token:`string.quote`,next:`@string`}]],whitespace:[[/[ \t\r\n]+/,``],[/(\'|REM(?!\w)).*$/,`comment`]],string:[[/[^"\u201c\u201d]+/,`string`],[/["\u201c\u201d]{2}/,`string.escape`],[/["\u201c\u201d]C?/,{token:`string.quote`,next:`@pop`}]]}};exports.conf=t,exports.language=n;
|
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
surroundingPairs: [
|
|
26
|
+
{
|
|
27
|
+
open: "{",
|
|
28
|
+
close: "}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "[",
|
|
32
|
+
close: "]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
open: "(",
|
|
36
|
+
close: ")"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
function qw(e) {
|
|
41
|
+
let p = [], m = e.split(/\t+|\r+|\n+| +/);
|
|
42
|
+
for (let e = 0; e < m.length; ++e) m[e].length > 0 && p.push(m[e]);
|
|
43
|
+
return p;
|
|
44
|
+
}
|
|
45
|
+
var atoms = qw("true false"), keywords = qw("\n alias\n break\n case\n const\n const_assert\n continue\n continuing\n default\n diagnostic\n discard\n else\n enable\n fn\n for\n if\n let\n loop\n override\n requires\n return\n struct\n switch\n var\n while\n "), reserved = qw("\n NULL\n Self\n abstract\n active\n alignas\n alignof\n as\n asm\n asm_fragment\n async\n attribute\n auto\n await\n become\n binding_array\n cast\n catch\n class\n co_await\n co_return\n co_yield\n coherent\n column_major\n common\n compile\n compile_fragment\n concept\n const_cast\n consteval\n constexpr\n constinit\n crate\n debugger\n decltype\n delete\n demote\n demote_to_helper\n do\n dynamic_cast\n enum\n explicit\n export\n extends\n extern\n external\n fallthrough\n filter\n final\n finally\n friend\n from\n fxgroup\n get\n goto\n groupshared\n highp\n impl\n implements\n import\n inline\n instanceof\n interface\n layout\n lowp\n macro\n macro_rules\n match\n mediump\n meta\n mod\n module\n move\n mut\n mutable\n namespace\n new\n nil\n noexcept\n noinline\n nointerpolation\n noperspective\n null\n nullptr\n of\n operator\n package\n packoffset\n partition\n pass\n patch\n pixelfragment\n precise\n precision\n premerge\n priv\n protected\n pub\n public\n readonly\n ref\n regardless\n register\n reinterpret_cast\n require\n resource\n restrict\n self\n set\n shared\n sizeof\n smooth\n snorm\n static\n static_assert\n static_cast\n std\n subroutine\n super\n target\n template\n this\n thread_local\n throw\n trait\n try\n type\n typedef\n typeid\n typename\n typeof\n union\n unless\n unorm\n unsafe\n unsized\n use\n using\n varying\n virtual\n volatile\n wgsl\n where\n with\n writeonly\n yield\n "), predeclared_enums = qw("\n read write read_write\n function private workgroup uniform storage\n perspective linear flat\n center centroid sample\n vertex_index instance_index position front_facing frag_depth\n local_invocation_id local_invocation_index\n global_invocation_id workgroup_id num_workgroups\n sample_index sample_mask\n rgba8unorm\n rgba8snorm\n rgba8uint\n rgba8sint\n rgba16uint\n rgba16sint\n rgba16float\n r32uint\n r32sint\n r32float\n rg32uint\n rg32sint\n rg32float\n rgba32uint\n rgba32sint\n rgba32float\n bgra8unorm\n"), predeclared_types = qw("\n bool\n f16\n f32\n i32\n sampler sampler_comparison\n texture_depth_2d\n texture_depth_2d_array\n texture_depth_cube\n texture_depth_cube_array\n texture_depth_multisampled_2d\n texture_external\n texture_external\n u32\n "), predeclared_type_generators = qw("\n array\n atomic\n mat2x2\n mat2x3\n mat2x4\n mat3x2\n mat3x3\n mat3x4\n mat4x2\n mat4x3\n mat4x4\n ptr\n texture_1d\n texture_2d\n texture_2d_array\n texture_3d\n texture_cube\n texture_cube_array\n texture_multisampled_2d\n texture_storage_1d\n texture_storage_2d\n texture_storage_2d_array\n texture_storage_3d\n vec2\n vec3\n vec4\n "), predeclared_type_aliases = qw("\n vec2i vec3i vec4i\n vec2u vec3u vec4u\n vec2f vec3f vec4f\n vec2h vec3h vec4h\n mat2x2f mat2x3f mat2x4f\n mat3x2f mat3x3f mat3x4f\n mat4x2f mat4x3f mat4x4f\n mat2x2h mat2x3h mat2x4h\n mat3x2h mat3x3h mat3x4h\n mat4x2h mat4x3h mat4x4h\n "), predeclared_intrinsics = qw("\n bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2\n ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross\n degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit\n firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length\n log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract\n reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose\n trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine\n textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers\n textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare\n textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge\n textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin\n atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm\n pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm\n unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier\n workgroupUniformLoad\n"), operators = qw("\n &\n &&\n ->\n /\n =\n ==\n !=\n >\n >=\n <\n <=\n %\n -\n --\n +\n ++\n |\n ||\n *\n <<\n >>\n +=\n -=\n *=\n /=\n %=\n &=\n |=\n ^=\n >>=\n <<=\n "), directive_re = /enable|requires|diagnostic/, ident_re = /[_\p{XID_Start}]\p{XID_Continue}*/u, predefined_token = "variable.predefined", language = {
|
|
46
|
+
tokenPostfix: ".wgsl",
|
|
47
|
+
defaultToken: "invalid",
|
|
48
|
+
unicode: !0,
|
|
49
|
+
atoms,
|
|
50
|
+
keywords,
|
|
51
|
+
reserved,
|
|
52
|
+
predeclared_enums,
|
|
53
|
+
predeclared_types,
|
|
54
|
+
predeclared_type_generators,
|
|
55
|
+
predeclared_type_aliases,
|
|
56
|
+
predeclared_intrinsics,
|
|
57
|
+
operators,
|
|
58
|
+
symbols: /[!%&*+\-\.\/:;<=>^|_~,]+/,
|
|
59
|
+
tokenizer: {
|
|
60
|
+
root: [
|
|
61
|
+
[
|
|
62
|
+
directive_re,
|
|
63
|
+
"keyword",
|
|
64
|
+
"@directive"
|
|
65
|
+
],
|
|
66
|
+
[ident_re, { cases: {
|
|
67
|
+
"@atoms": predefined_token,
|
|
68
|
+
"@keywords": "keyword",
|
|
69
|
+
"@reserved": "invalid",
|
|
70
|
+
"@predeclared_enums": predefined_token,
|
|
71
|
+
"@predeclared_types": predefined_token,
|
|
72
|
+
"@predeclared_type_generators": predefined_token,
|
|
73
|
+
"@predeclared_type_aliases": predefined_token,
|
|
74
|
+
"@predeclared_intrinsics": predefined_token,
|
|
75
|
+
"@default": "identifier"
|
|
76
|
+
} }],
|
|
77
|
+
{ include: "@commentOrSpace" },
|
|
78
|
+
{ include: "@numbers" },
|
|
79
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
80
|
+
[
|
|
81
|
+
"@",
|
|
82
|
+
"annotation",
|
|
83
|
+
"@attribute"
|
|
84
|
+
],
|
|
85
|
+
[/@symbols/, { cases: {
|
|
86
|
+
"@operators": "operator",
|
|
87
|
+
"@default": "delimiter"
|
|
88
|
+
} }],
|
|
89
|
+
[/./, "invalid"]
|
|
90
|
+
],
|
|
91
|
+
commentOrSpace: [
|
|
92
|
+
[/\s+/, "white"],
|
|
93
|
+
[
|
|
94
|
+
/\/\*/,
|
|
95
|
+
"comment",
|
|
96
|
+
"@blockComment"
|
|
97
|
+
],
|
|
98
|
+
[/\/\/.*$/, "comment"]
|
|
99
|
+
],
|
|
100
|
+
blockComment: [
|
|
101
|
+
[/[^\/*]+/, "comment"],
|
|
102
|
+
[
|
|
103
|
+
/\/\*/,
|
|
104
|
+
"comment",
|
|
105
|
+
"@push"
|
|
106
|
+
],
|
|
107
|
+
[
|
|
108
|
+
/\*\//,
|
|
109
|
+
"comment",
|
|
110
|
+
"@pop"
|
|
111
|
+
],
|
|
112
|
+
[/[\/*]/, "comment"]
|
|
113
|
+
],
|
|
114
|
+
attribute: [{ include: "@commentOrSpace" }, [
|
|
115
|
+
/\w+/,
|
|
116
|
+
"annotation",
|
|
117
|
+
"@pop"
|
|
118
|
+
]],
|
|
119
|
+
directive: [
|
|
120
|
+
{ include: "@commentOrSpace" },
|
|
121
|
+
[/[()]/, "@brackets"],
|
|
122
|
+
[/,/, "delimiter"],
|
|
123
|
+
[ident_re, "meta.content"],
|
|
124
|
+
[
|
|
125
|
+
/;/,
|
|
126
|
+
"delimiter",
|
|
127
|
+
"@pop"
|
|
128
|
+
]
|
|
129
|
+
],
|
|
130
|
+
numbers: [
|
|
131
|
+
[/0[fh]/, "number.float"],
|
|
132
|
+
[/[1-9][0-9]*[fh]/, "number.float"],
|
|
133
|
+
[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
|
|
134
|
+
[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
|
|
135
|
+
[/[0-9]+[eE][+-]?[0-9]+[fh]?/, "number.float"],
|
|
136
|
+
[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
|
|
137
|
+
[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
|
|
138
|
+
[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/, "number.hex"],
|
|
139
|
+
[/0[xX][0-9a-fA-F]+[iu]?/, "number.hex"],
|
|
140
|
+
[/[1-9][0-9]*[iu]?/, "number"],
|
|
141
|
+
[/0[iu]?/, "number"]
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
export { conf, language };
|