@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,476 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "//",
|
|
4
|
+
blockComment: ["(*", "*)"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"],
|
|
10
|
+
["var", "end_var"],
|
|
11
|
+
["var_input", "end_var"],
|
|
12
|
+
["var_output", "end_var"],
|
|
13
|
+
["var_in_out", "end_var"],
|
|
14
|
+
["var_temp", "end_var"],
|
|
15
|
+
["var_global", "end_var"],
|
|
16
|
+
["var_access", "end_var"],
|
|
17
|
+
["var_external", "end_var"],
|
|
18
|
+
["type", "end_type"],
|
|
19
|
+
["struct", "end_struct"],
|
|
20
|
+
["program", "end_program"],
|
|
21
|
+
["function", "end_function"],
|
|
22
|
+
["function_block", "end_function_block"],
|
|
23
|
+
["action", "end_action"],
|
|
24
|
+
["step", "end_step"],
|
|
25
|
+
["initial_step", "end_step"],
|
|
26
|
+
["transaction", "end_transaction"],
|
|
27
|
+
["configuration", "end_configuration"],
|
|
28
|
+
["tcp", "end_tcp"],
|
|
29
|
+
["recource", "end_recource"],
|
|
30
|
+
["channel", "end_channel"],
|
|
31
|
+
["library", "end_library"],
|
|
32
|
+
["folder", "end_folder"],
|
|
33
|
+
["binaries", "end_binaries"],
|
|
34
|
+
["includes", "end_includes"],
|
|
35
|
+
["sources", "end_sources"]
|
|
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
|
+
notIn: ["string_sq"]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
open: "\"",
|
|
61
|
+
close: "\"",
|
|
62
|
+
notIn: ["string_dq"]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
open: "var_input",
|
|
66
|
+
close: "end_var"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
open: "var_output",
|
|
70
|
+
close: "end_var"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
open: "var_in_out",
|
|
74
|
+
close: "end_var"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
open: "var_temp",
|
|
78
|
+
close: "end_var"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
open: "var_global",
|
|
82
|
+
close: "end_var"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
open: "var_access",
|
|
86
|
+
close: "end_var"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
open: "var_external",
|
|
90
|
+
close: "end_var"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
open: "type",
|
|
94
|
+
close: "end_type"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
open: "struct",
|
|
98
|
+
close: "end_struct"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
open: "program",
|
|
102
|
+
close: "end_program"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
open: "function",
|
|
106
|
+
close: "end_function"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
open: "function_block",
|
|
110
|
+
close: "end_function_block"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
open: "action",
|
|
114
|
+
close: "end_action"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
open: "step",
|
|
118
|
+
close: "end_step"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
open: "initial_step",
|
|
122
|
+
close: "end_step"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
open: "transaction",
|
|
126
|
+
close: "end_transaction"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
open: "configuration",
|
|
130
|
+
close: "end_configuration"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
open: "tcp",
|
|
134
|
+
close: "end_tcp"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
open: "recource",
|
|
138
|
+
close: "end_recource"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
open: "channel",
|
|
142
|
+
close: "end_channel"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
open: "library",
|
|
146
|
+
close: "end_library"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
open: "folder",
|
|
150
|
+
close: "end_folder"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
open: "binaries",
|
|
154
|
+
close: "end_binaries"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
open: "includes",
|
|
158
|
+
close: "end_includes"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
open: "sources",
|
|
162
|
+
close: "end_sources"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
surroundingPairs: [
|
|
166
|
+
{
|
|
167
|
+
open: "{",
|
|
168
|
+
close: "}"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
open: "[",
|
|
172
|
+
close: "]"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
open: "(",
|
|
176
|
+
close: ")"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
open: "\"",
|
|
180
|
+
close: "\""
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
open: "'",
|
|
184
|
+
close: "'"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
open: "var",
|
|
188
|
+
close: "end_var"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
open: "var_input",
|
|
192
|
+
close: "end_var"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
open: "var_output",
|
|
196
|
+
close: "end_var"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
open: "var_in_out",
|
|
200
|
+
close: "end_var"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
open: "var_temp",
|
|
204
|
+
close: "end_var"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
open: "var_global",
|
|
208
|
+
close: "end_var"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
open: "var_access",
|
|
212
|
+
close: "end_var"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
open: "var_external",
|
|
216
|
+
close: "end_var"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
open: "type",
|
|
220
|
+
close: "end_type"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
open: "struct",
|
|
224
|
+
close: "end_struct"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
open: "program",
|
|
228
|
+
close: "end_program"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
open: "function",
|
|
232
|
+
close: "end_function"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
open: "function_block",
|
|
236
|
+
close: "end_function_block"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
open: "action",
|
|
240
|
+
close: "end_action"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
open: "step",
|
|
244
|
+
close: "end_step"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
open: "initial_step",
|
|
248
|
+
close: "end_step"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
open: "transaction",
|
|
252
|
+
close: "end_transaction"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
open: "configuration",
|
|
256
|
+
close: "end_configuration"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
open: "tcp",
|
|
260
|
+
close: "end_tcp"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
open: "recource",
|
|
264
|
+
close: "end_recource"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
open: "channel",
|
|
268
|
+
close: "end_channel"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
open: "library",
|
|
272
|
+
close: "end_library"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
open: "folder",
|
|
276
|
+
close: "end_folder"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
open: "binaries",
|
|
280
|
+
close: "end_binaries"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
open: "includes",
|
|
284
|
+
close: "end_includes"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
open: "sources",
|
|
288
|
+
close: "end_sources"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
folding: { markers: {
|
|
292
|
+
start: /* @__PURE__ */ RegExp("^\\s*#pragma\\s+region\\b"),
|
|
293
|
+
end: /* @__PURE__ */ RegExp("^\\s*#pragma\\s+endregion\\b")
|
|
294
|
+
} }
|
|
295
|
+
}, language = {
|
|
296
|
+
defaultToken: "",
|
|
297
|
+
tokenPostfix: ".st",
|
|
298
|
+
ignoreCase: !0,
|
|
299
|
+
brackets: [
|
|
300
|
+
{
|
|
301
|
+
token: "delimiter.curly",
|
|
302
|
+
open: "{",
|
|
303
|
+
close: "}"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
token: "delimiter.parenthesis",
|
|
307
|
+
open: "(",
|
|
308
|
+
close: ")"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
token: "delimiter.square",
|
|
312
|
+
open: "[",
|
|
313
|
+
close: "]"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
keywords: /* @__PURE__ */ "if.end_if.elsif.else.case.of.to.__try.__catch.__finally.do.with.by.while.repeat.end_while.end_repeat.end_case.for.end_for.task.retain.non_retain.constant.with.at.exit.return.interval.priority.address.port.on_channel.then.iec.file.uses.version.packagetype.displayname.copyright.summary.vendor.common_source.from.extends.implements".split("."),
|
|
317
|
+
constant: [
|
|
318
|
+
"false",
|
|
319
|
+
"true",
|
|
320
|
+
"null"
|
|
321
|
+
],
|
|
322
|
+
defineKeywords: /* @__PURE__ */ "var.var_input.var_output.var_in_out.var_temp.var_global.var_access.var_external.end_var.type.end_type.struct.end_struct.program.end_program.function.end_function.function_block.end_function_block.interface.end_interface.method.end_method.property.end_property.namespace.end_namespace.configuration.end_configuration.tcp.end_tcp.resource.end_resource.channel.end_channel.library.end_library.folder.end_folder.binaries.end_binaries.includes.end_includes.sources.end_sources.action.end_action.step.initial_step.end_step.transaction.end_transaction".split("."),
|
|
323
|
+
typeKeywords: [
|
|
324
|
+
"int",
|
|
325
|
+
"sint",
|
|
326
|
+
"dint",
|
|
327
|
+
"lint",
|
|
328
|
+
"usint",
|
|
329
|
+
"uint",
|
|
330
|
+
"udint",
|
|
331
|
+
"ulint",
|
|
332
|
+
"real",
|
|
333
|
+
"lreal",
|
|
334
|
+
"time",
|
|
335
|
+
"date",
|
|
336
|
+
"time_of_day",
|
|
337
|
+
"date_and_time",
|
|
338
|
+
"string",
|
|
339
|
+
"bool",
|
|
340
|
+
"byte",
|
|
341
|
+
"word",
|
|
342
|
+
"dword",
|
|
343
|
+
"array",
|
|
344
|
+
"pointer",
|
|
345
|
+
"lword"
|
|
346
|
+
],
|
|
347
|
+
operators: /* @__PURE__ */ "=.>.<.:.:=.<=.>=.<>.&.+.-.*.**.MOD.^.or.and.not.xor.abs.acos.asin.atan.cos.exp.expt.ln.log.sin.sqrt.tan.sel.max.min.limit.mux.shl.shr.rol.ror.indexof.sizeof.adr.adrinst.bitadr.is_valid.ref.ref_to".split("."),
|
|
348
|
+
builtinVariables: [],
|
|
349
|
+
builtinFunctions: /* @__PURE__ */ "sr.rs.tp.ton.tof.eq.ge.le.lt.ne.round.trunc.ctd.сtu.ctud.r_trig.f_trig.move.concat.delete.find.insert.left.len.replace.right.rtc".split("."),
|
|
350
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
351
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
352
|
+
tokenizer: {
|
|
353
|
+
root: [
|
|
354
|
+
[/(\.\.)/, "delimiter"],
|
|
355
|
+
[/\b(16#[0-9A-Fa-f\_]*)+\b/, "number.hex"],
|
|
356
|
+
[/\b(2#[01\_]+)+\b/, "number.binary"],
|
|
357
|
+
[/\b(8#[0-9\_]*)+\b/, "number.octal"],
|
|
358
|
+
[/\b\d*\.\d+([eE][\-+]?\d+)?\b/, "number.float"],
|
|
359
|
+
[/\b(L?REAL)#[0-9\_\.e]+\b/, "number.float"],
|
|
360
|
+
[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/, "number"],
|
|
361
|
+
[/\d+/, "number"],
|
|
362
|
+
[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, "tag"],
|
|
363
|
+
[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, "tag"],
|
|
364
|
+
[/\%(I|Q|M)[0-9\.]*/, "tag"],
|
|
365
|
+
[/\b[A-Za-z]{1,6}#[0-9]+\b/, "tag"],
|
|
366
|
+
[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, "predefined"],
|
|
367
|
+
[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/, "predefined"],
|
|
368
|
+
[/[;]/, "delimiter"],
|
|
369
|
+
[/[.]/, {
|
|
370
|
+
token: "delimiter",
|
|
371
|
+
next: "@params"
|
|
372
|
+
}],
|
|
373
|
+
[/[a-zA-Z_]\w*/, { cases: {
|
|
374
|
+
"@operators": "operators",
|
|
375
|
+
"@keywords": "keyword",
|
|
376
|
+
"@typeKeywords": "type",
|
|
377
|
+
"@defineKeywords": "variable",
|
|
378
|
+
"@constant": "constant",
|
|
379
|
+
"@builtinVariables": "predefined",
|
|
380
|
+
"@builtinFunctions": "predefined",
|
|
381
|
+
"@default": "identifier"
|
|
382
|
+
} }],
|
|
383
|
+
{ include: "@whitespace" },
|
|
384
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
385
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
386
|
+
[/"/, {
|
|
387
|
+
token: "string.quote",
|
|
388
|
+
bracket: "@open",
|
|
389
|
+
next: "@string_dq"
|
|
390
|
+
}],
|
|
391
|
+
[/'/, {
|
|
392
|
+
token: "string.quote",
|
|
393
|
+
bracket: "@open",
|
|
394
|
+
next: "@string_sq"
|
|
395
|
+
}],
|
|
396
|
+
[/'[^\\']'/, "string"],
|
|
397
|
+
[/(')(@escapes)(')/, [
|
|
398
|
+
"string",
|
|
399
|
+
"string.escape",
|
|
400
|
+
"string"
|
|
401
|
+
]],
|
|
402
|
+
[/'/, "string.invalid"]
|
|
403
|
+
],
|
|
404
|
+
params: [[/\b[A-Za-z0-9_]+\b(?=\()/, {
|
|
405
|
+
token: "identifier",
|
|
406
|
+
next: "@pop"
|
|
407
|
+
}], [
|
|
408
|
+
/\b[A-Za-z0-9_]+\b/,
|
|
409
|
+
"variable.name",
|
|
410
|
+
"@pop"
|
|
411
|
+
]],
|
|
412
|
+
comment: [
|
|
413
|
+
[/[^\/*]+/, "comment"],
|
|
414
|
+
[
|
|
415
|
+
/\/\*/,
|
|
416
|
+
"comment",
|
|
417
|
+
"@push"
|
|
418
|
+
],
|
|
419
|
+
[
|
|
420
|
+
"\\*/",
|
|
421
|
+
"comment",
|
|
422
|
+
"@pop"
|
|
423
|
+
],
|
|
424
|
+
[/[\/*]/, "comment"]
|
|
425
|
+
],
|
|
426
|
+
comment2: [
|
|
427
|
+
[/[^\(*]+/, "comment"],
|
|
428
|
+
[
|
|
429
|
+
/\(\*/,
|
|
430
|
+
"comment",
|
|
431
|
+
"@push"
|
|
432
|
+
],
|
|
433
|
+
[
|
|
434
|
+
"\\*\\)",
|
|
435
|
+
"comment",
|
|
436
|
+
"@pop"
|
|
437
|
+
],
|
|
438
|
+
[/[\(*]/, "comment"]
|
|
439
|
+
],
|
|
440
|
+
whitespace: [
|
|
441
|
+
[/[ \t\r\n]+/, "white"],
|
|
442
|
+
[/\/\/.*$/, "comment"],
|
|
443
|
+
[
|
|
444
|
+
/\/\*/,
|
|
445
|
+
"comment",
|
|
446
|
+
"@comment"
|
|
447
|
+
],
|
|
448
|
+
[
|
|
449
|
+
/\(\*/,
|
|
450
|
+
"comment",
|
|
451
|
+
"@comment2"
|
|
452
|
+
]
|
|
453
|
+
],
|
|
454
|
+
string_dq: [
|
|
455
|
+
[/[^\\"]+/, "string"],
|
|
456
|
+
[/@escapes/, "string.escape"],
|
|
457
|
+
[/\\./, "string.escape.invalid"],
|
|
458
|
+
[/"/, {
|
|
459
|
+
token: "string.quote",
|
|
460
|
+
bracket: "@close",
|
|
461
|
+
next: "@pop"
|
|
462
|
+
}]
|
|
463
|
+
],
|
|
464
|
+
string_sq: [
|
|
465
|
+
[/[^\\']+/, "string"],
|
|
466
|
+
[/@escapes/, "string.escape"],
|
|
467
|
+
[/\\./, "string.escape.invalid"],
|
|
468
|
+
[/'/, {
|
|
469
|
+
token: "string.quote",
|
|
470
|
+
bracket: "@close",
|
|
471
|
+
next: "@pop"
|
|
472
|
+
}]
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
export { conf, language };
|