@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.
Files changed (233) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +8 -0
  3. package/dist/abap-B988NUrV.js +122 -0
  4. package/dist/abap-obercqiY.cjs +1 -0
  5. package/dist/apex-B0_UGK1B.cjs +1 -0
  6. package/dist/apex-BlHPPQK-.js +168 -0
  7. package/dist/azcli-C7iyZFGk.js +53 -0
  8. package/dist/azcli-CEoytwx_.cjs +1 -0
  9. package/dist/bat-Buc0l0C3.js +123 -0
  10. package/dist/bat-D65OC-jj.cjs +1 -0
  11. package/dist/bicep-DvD_e5vW.cjs +2 -0
  12. package/dist/bicep-U66iJ-pV.js +219 -0
  13. package/dist/cameligo-C9Dwkdmm.js +189 -0
  14. package/dist/cameligo-DzMHfeEs.cjs +1 -0
  15. package/dist/chunk-BjqF3vbe.cjs +1 -0
  16. package/dist/chunk-CIp4IH9D.js +21 -0
  17. package/dist/classnames-BXjDNQ6Q.cjs +1 -0
  18. package/dist/classnames-eUba3oot.js +29 -0
  19. package/dist/clojure-BC7BzAFK.cjs +1 -0
  20. package/dist/clojure-DDWmWbSx.js +146 -0
  21. package/dist/coffee-7Sx2S8NH.js +260 -0
  22. package/dist/coffee-Ca9F0OWZ.cjs +1 -0
  23. package/dist/common-BeXEy5sz.cjs +18 -0
  24. package/dist/common-BlOHZJzI.js +64 -0
  25. package/dist/common-DuYIpe6b.cjs +1 -0
  26. package/dist/common-Tr1I-HCs.js +6725 -0
  27. package/dist/cpp-CHjqaSPQ.js +230 -0
  28. package/dist/cpp-DKy9h6xR.cjs +1 -0
  29. package/dist/createLucideIcon-239Z-2by.cjs +1 -0
  30. package/dist/createLucideIcon-BO6TDGE7.js +43 -0
  31. package/dist/csharp-CkbgT9vH.cjs +1 -0
  32. package/dist/csharp-jwStnVeK.js +260 -0
  33. package/dist/csp-C2qFd6iv.cjs +1 -0
  34. package/dist/csp-DkO8Np0h.js +46 -0
  35. package/dist/css-BFvwcljm.js +284 -0
  36. package/dist/css-DCKUCzD6.cjs +3 -0
  37. package/dist/cssMode-CU2AJQMM.js +1509 -0
  38. package/dist/cssMode-l7eR8WSG.cjs +4 -0
  39. package/dist/cypher-122TYSjJ.cjs +1 -0
  40. package/dist/cypher-DaQ7hFRL.js +212 -0
  41. package/dist/dart-D8p_2HKP.js +236 -0
  42. package/dist/dart-DshcPGU8.cjs +1 -0
  43. package/dist/dist-DCz_Qv0B.js +884 -0
  44. package/dist/dist-D_2dZQH5.cjs +11 -0
  45. package/dist/dockerfile-CL8dwZCe.cjs +1 -0
  46. package/dist/dockerfile-DKWOQrwp.js +191 -0
  47. package/dist/ecl-DP3PNWGB.js +226 -0
  48. package/dist/ecl-DVx2J_EE.cjs +1 -0
  49. package/dist/editor.api-CbUDOph7.js +70302 -0
  50. package/dist/editor.api-lY2thcaq.cjs +644 -0
  51. package/dist/elixir-Xgx_1krO.cjs +1 -0
  52. package/dist/elixir-e9tDp1p1.js +523 -0
  53. package/dist/filter_label-DRJC3vpe.js +58 -0
  54. package/dist/filter_label-DssaWGpx.cjs +1 -0
  55. package/dist/filter_operators-C-TaTcNc.js +70 -0
  56. package/dist/filter_operators-D0kyB-XI.cjs +1 -0
  57. package/dist/flow9-C9BjpX8h.js +176 -0
  58. package/dist/flow9-DR-EyjYV.cjs +1 -0
  59. package/dist/freemarker2-BTGUjvgA.cjs +3 -0
  60. package/dist/freemarker2-C6Iq5MB-.js +724 -0
  61. package/dist/fsharp-BWm_FISn.js +147 -0
  62. package/dist/fsharp-DaBEigN7.cjs +1 -0
  63. package/dist/go-Xyq33f0v.cjs +1 -0
  64. package/dist/go-cmqV0Vy_.js +165 -0
  65. package/dist/graphql-BkFHHVmI.js +174 -0
  66. package/dist/graphql-Cj7XAy25.cjs +1 -0
  67. package/dist/handlebars-B2b1q7PA.cjs +1 -0
  68. package/dist/handlebars-DGGN9u4Y.js +418 -0
  69. package/dist/hcl-5I-P7bYX.js +219 -0
  70. package/dist/hcl-C3dpBsgU.cjs +1 -0
  71. package/dist/html-RJa-j-qT.js +339 -0
  72. package/dist/html-qfcUzk8e.cjs +1 -0
  73. package/dist/htmlMode-CYIxo4hc.cjs +4 -0
  74. package/dist/htmlMode-DDZ48mdp.js +1520 -0
  75. package/dist/index.cjs +303 -0
  76. package/dist/index.d.ts +4 -0
  77. package/dist/index.js +72895 -0
  78. package/dist/index_pattern_select--iGeA3sP.js +93 -0
  79. package/dist/index_pattern_select-BeN5049F.cjs +1 -0
  80. package/dist/ini-ChENqKh8.cjs +1 -0
  81. package/dist/ini-DSIAxBZt.js +94 -0
  82. package/dist/java-DGeAxsRb.js +173 -0
  83. package/dist/java-LZ6g7weJ.cjs +1 -0
  84. package/dist/javascript-CN5gTHH2.js +19 -0
  85. package/dist/javascript-CZ97a-BN.cjs +1 -0
  86. package/dist/jsonMode-BZDeJMLL.cjs +10 -0
  87. package/dist/jsonMode-DraOl-ka.js +1885 -0
  88. package/dist/julia-BeebccKw.cjs +1 -0
  89. package/dist/julia-CU4CtsP4.js +414 -0
  90. package/dist/kotlin-B8NxXJ89.js +183 -0
  91. package/dist/kotlin-M82nl514.cjs +1 -0
  92. package/dist/less-B4Q3fV9Y.cjs +2 -0
  93. package/dist/less-DbeQQzer.js +242 -0
  94. package/dist/lexon-CXQaaecE.cjs +1 -0
  95. package/dist/lexon-Cw9JuAKc.js +185 -0
  96. package/dist/lib-C9j_E-l0.js +47 -0
  97. package/dist/lib-Chy_6VKj.cjs +1 -0
  98. package/dist/liquid-BYNEOJvX.cjs +1 -0
  99. package/dist/liquid-DvB-d2w7.js +205 -0
  100. package/dist/lodash-C_2NO1eK.cjs +35 -0
  101. package/dist/lodash-D-qGlPRW.js +3769 -0
  102. package/dist/lua-CnG8Tpu2.cjs +1 -0
  103. package/dist/lua-yl5NzA_S.js +200 -0
  104. package/dist/m3-CVcm-OIn.cjs +1 -0
  105. package/dist/m3-CdNAqvIX.js +193 -0
  106. package/dist/markdown-C1h-EuiT.js +262 -0
  107. package/dist/markdown-DrRHDVSU.cjs +1 -0
  108. package/dist/mdx-BbiOYPr2.cjs +1 -0
  109. package/dist/mdx-Fk8VTCUK.js +335 -0
  110. package/dist/mips-DIWpzGF0.js +128 -0
  111. package/dist/mips-D_p8UYQb.cjs +1 -0
  112. package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
  113. package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
  114. package/dist/msdax-BiazpDQ1.js +156 -0
  115. package/dist/msdax-xM1_j20x.cjs +1 -0
  116. package/dist/mysql-DMsJkSnA.cjs +1 -0
  117. package/dist/mysql-DphBFJlP.js +168 -0
  118. package/dist/objective-c-BG02Lrht.cjs +1 -0
  119. package/dist/objective-c-DWZ8Qpyc.js +144 -0
  120. package/dist/pascal-BcvlMOdu.js +176 -0
  121. package/dist/pascal-CnP2Fqes.cjs +1 -0
  122. package/dist/pascaligo-BzDEm-l_.cjs +1 -0
  123. package/dist/pascaligo-DHEp4kzh.js +201 -0
  124. package/dist/perl-USYKPHpO.js +316 -0
  125. package/dist/perl-nIxw-e4R.cjs +1 -0
  126. package/dist/pgsql-Buk6XzVf.cjs +1 -0
  127. package/dist/pgsql-DzPhAh9W.js +158 -0
  128. package/dist/php-B3sFYUqV.cjs +1 -0
  129. package/dist/php-PfpSTefE.js +471 -0
  130. package/dist/pla-CZtnfWl6.cjs +1 -0
  131. package/dist/pla-DrFOZwDB.js +146 -0
  132. package/dist/postiats-4OGxVVUT.js +504 -0
  133. package/dist/postiats-CgJZf83Q.cjs +1 -0
  134. package/dist/powerquery-D9gzk2Dq.cjs +1 -0
  135. package/dist/powerquery-_h9-HEnY.js +190 -0
  136. package/dist/powershell-CZHaQY6z.cjs +1 -0
  137. package/dist/powershell-nOzcY8gy.js +211 -0
  138. package/dist/protobuf-DAgxhnea.js +659 -0
  139. package/dist/protobuf-D_C8Guej.cjs +2 -0
  140. package/dist/public-1PveQco4.js +1756 -0
  141. package/dist/public-D1K7oN7t.cjs +3 -0
  142. package/dist/pug-quEtG4rz.cjs +1 -0
  143. package/dist/pug-raGZNmZ1.js +300 -0
  144. package/dist/python-C45c7K7W.js +260 -0
  145. package/dist/python-CQX8JcT4.cjs +1 -0
  146. package/dist/qsharp-C2jz5tuo.js +143 -0
  147. package/dist/qsharp-CX1SSV_j.cjs +1 -0
  148. package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
  149. package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
  150. package/dist/query_bar_top_row-D6a48VTk.js +11 -0
  151. package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
  152. package/dist/query_string_input-75waAcWy.js +9 -0
  153. package/dist/query_string_input-CHG9w1ze.cjs +1 -0
  154. package/dist/query_string_input-CyPZVKif.js +366 -0
  155. package/dist/query_string_input-SOULY6dl.cjs +1 -0
  156. package/dist/r-CXkPcYYf.js +189 -0
  157. package/dist/r-DpVDQTST.cjs +1 -0
  158. package/dist/razor-BnoJmj1k.js +525 -0
  159. package/dist/razor-DYx4yJJn.cjs +1 -0
  160. package/dist/redis-DsCuCZIT.cjs +1 -0
  161. package/dist/redis-giKZvbbg.js +123 -0
  162. package/dist/redshift-qKVxBsP_.js +158 -0
  163. package/dist/redshift-z5_aUfdC.cjs +1 -0
  164. package/dist/restructuredtext-D0n4pabr.js +287 -0
  165. package/dist/restructuredtext-DdXoKocW.cjs +1 -0
  166. package/dist/ruby-BNrBlpcw.js +527 -0
  167. package/dist/ruby-Dj0sNBey.cjs +1 -0
  168. package/dist/rust-D6mpPoli.js +178 -0
  169. package/dist/rust-DjkW1U4M.cjs +1 -0
  170. package/dist/sb-BCN0JcpS.cjs +1 -0
  171. package/dist/sb-DhS9GhXl.js +143 -0
  172. package/dist/scala-BqxBEpi8.js +551 -0
  173. package/dist/scala-CyXWhZaJ.cjs +1 -0
  174. package/dist/scheme-Bh4oGAk3.js +170 -0
  175. package/dist/scheme-Cs9G6QEE.cjs +1 -0
  176. package/dist/scss-Byf08jwC.js +417 -0
  177. package/dist/scss-Fl7taPuq.cjs +3 -0
  178. package/dist/search_bar-Caqi1NVo.js +1815 -0
  179. package/dist/search_bar-DyO_WsC5.cjs +1 -0
  180. package/dist/services-9wPHk1eh.js +2350 -0
  181. package/dist/services-BPC3fXx4.cjs +7 -0
  182. package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
  183. package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
  184. package/dist/shell-Cw5yNfC4.cjs +1 -0
  185. package/dist/shell-UoRv_tpG.js +223 -0
  186. package/dist/solidity-B5t7Lkol.js +147 -0
  187. package/dist/solidity-BoAzg9X_.cjs +1 -0
  188. package/dist/sophia-BrXXWhvp.js +147 -0
  189. package/dist/sophia-L84Jz6Ow.cjs +1 -0
  190. package/dist/sparql-B8ZTY48u.js +124 -0
  191. package/dist/sparql-D6lnG7vO.cjs +1 -0
  192. package/dist/sql-D_74hUL-.js +171 -0
  193. package/dist/sql-VXdYzIyz.cjs +1 -0
  194. package/dist/src/App.d.ts +2 -0
  195. package/dist/src/components/ResultHeader/Info.d.ts +30 -0
  196. package/dist/src/components/ResultHeader/index.d.ts +13 -0
  197. package/dist/src/components/context.d.ts +82 -0
  198. package/dist/src/components/euiicons.d.ts +1 -0
  199. package/dist/src/components/index.d.ts +8 -0
  200. package/dist/src/main.d.ts +1 -0
  201. package/dist/src/utils/request.d.ts +1 -0
  202. package/dist/src/utils/utils.d.ts +1 -0
  203. package/dist/st-CxJLwAAK.cjs +1 -0
  204. package/dist/st-D8Rdx9Bz.js +476 -0
  205. package/dist/suggestions_component-BBHwbjYT.js +1243 -0
  206. package/dist/suggestions_component-CF4sehth.cjs +77 -0
  207. package/dist/swift-ZBC6wQdc.cjs +1 -0
  208. package/dist/swift-s19Ivx3X.js +213 -0
  209. package/dist/systemverilog-DoSgAb1I.cjs +1 -0
  210. package/dist/systemverilog-fA72PnKj.js +298 -0
  211. package/dist/tcl-B8QLbcxi.js +223 -0
  212. package/dist/tcl-IXmy-lJ0.cjs +1 -0
  213. package/dist/tsMode-BrPRpJvb.js +597 -0
  214. package/dist/tsMode-CNvH6xuC.cjs +11 -0
  215. package/dist/tsup.config.d.ts +2 -0
  216. package/dist/twig-CT2RXmm0.cjs +1 -0
  217. package/dist/twig-Dy7NkzKI.js +388 -0
  218. package/dist/typescript-BRKHcp4S.js +263 -0
  219. package/dist/typescript-Bbw9fxuo.cjs +1 -0
  220. package/dist/typescript-CQjO9XnF.js +3 -0
  221. package/dist/typescript-D6q4AO2z.cjs +1 -0
  222. package/dist/typespec-CkKpvaMv.cjs +1 -0
  223. package/dist/typespec-ndyv0mQx.js +234 -0
  224. package/dist/vb-DET0NIW-.js +260 -0
  225. package/dist/vb-R3Kcrzvd.cjs +1 -0
  226. package/dist/vite.config.d.ts +2 -0
  227. package/dist/wgsl-D5TeQchR.js +145 -0
  228. package/dist/wgsl-FTDBzylH.cjs +298 -0
  229. package/dist/xml-BZjE3dtf.js +136 -0
  230. package/dist/xml-CxbMIueA.cjs +1 -0
  231. package/dist/yaml-Di_6aXC4.js +229 -0
  232. package/dist/yaml-DvaGkWBl.cjs +1 -0
  233. package/package.json +98 -0
@@ -0,0 +1,659 @@
1
+ var namedLiterals = ["true", "false"], conf = {
2
+ comments: {
3
+ lineComment: "//",
4
+ blockComment: ["/*", "*/"]
5
+ },
6
+ brackets: [
7
+ ["{", "}"],
8
+ ["[", "]"],
9
+ ["(", ")"],
10
+ ["<", ">"]
11
+ ],
12
+ surroundingPairs: [
13
+ {
14
+ open: "{",
15
+ close: "}"
16
+ },
17
+ {
18
+ open: "[",
19
+ close: "]"
20
+ },
21
+ {
22
+ open: "(",
23
+ close: ")"
24
+ },
25
+ {
26
+ open: "<",
27
+ close: ">"
28
+ },
29
+ {
30
+ open: "\"",
31
+ close: "\""
32
+ },
33
+ {
34
+ open: "'",
35
+ close: "'"
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
+ open: "'",
62
+ close: "'",
63
+ notIn: ["string"]
64
+ }
65
+ ],
66
+ autoCloseBefore: ".,=}])>' \n ",
67
+ indentationRules: {
68
+ increaseIndentPattern: /* @__PURE__ */ RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
69
+ decreaseIndentPattern: /* @__PURE__ */ RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
70
+ }
71
+ }, language = {
72
+ defaultToken: "",
73
+ tokenPostfix: ".proto",
74
+ brackets: [
75
+ {
76
+ open: "{",
77
+ close: "}",
78
+ token: "delimiter.curly"
79
+ },
80
+ {
81
+ open: "[",
82
+ close: "]",
83
+ token: "delimiter.square"
84
+ },
85
+ {
86
+ open: "(",
87
+ close: ")",
88
+ token: "delimiter.parenthesis"
89
+ },
90
+ {
91
+ open: "<",
92
+ close: ">",
93
+ token: "delimiter.angle"
94
+ }
95
+ ],
96
+ symbols: /[=><!~?:&|+\-*/^%]+/,
97
+ keywords: [
98
+ "syntax",
99
+ "import",
100
+ "weak",
101
+ "public",
102
+ "package",
103
+ "option",
104
+ "repeated",
105
+ "oneof",
106
+ "map",
107
+ "reserved",
108
+ "to",
109
+ "max",
110
+ "enum",
111
+ "message",
112
+ "service",
113
+ "rpc",
114
+ "stream",
115
+ "returns",
116
+ "package",
117
+ "optional",
118
+ "true",
119
+ "false"
120
+ ],
121
+ builtinTypes: [
122
+ "double",
123
+ "float",
124
+ "int32",
125
+ "int64",
126
+ "uint32",
127
+ "uint64",
128
+ "sint32",
129
+ "sint64",
130
+ "fixed32",
131
+ "fixed64",
132
+ "sfixed32",
133
+ "sfixed64",
134
+ "bool",
135
+ "string",
136
+ "bytes"
137
+ ],
138
+ operators: [
139
+ "=",
140
+ "+",
141
+ "-"
142
+ ],
143
+ namedLiterals,
144
+ escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
145
+ identifier: /[a-zA-Z]\w*/,
146
+ fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
147
+ optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
148
+ messageName: /@identifier/,
149
+ enumName: /@identifier/,
150
+ messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
151
+ enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
152
+ floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
153
+ exponent: /[eE]\s*[+-]?\s*[0-9]+/,
154
+ boolLit: /true\b|false\b/,
155
+ decimalLit: /[1-9][0-9]*/,
156
+ octalLit: /0[0-7]*/,
157
+ hexLit: /0[xX][0-9a-fA-F]+/,
158
+ type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
159
+ keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
160
+ tokenizer: {
161
+ root: [
162
+ { include: "@whitespace" },
163
+ [/syntax/, "keyword"],
164
+ [/=/, "operators"],
165
+ [/;/, "delimiter"],
166
+ [/(")(proto3)(")/, [
167
+ "string.quote",
168
+ "string",
169
+ {
170
+ token: "string.quote",
171
+ switchTo: "@topLevel.proto3"
172
+ }
173
+ ]],
174
+ [/(")(proto2)(")/, [
175
+ "string.quote",
176
+ "string",
177
+ {
178
+ token: "string.quote",
179
+ switchTo: "@topLevel.proto2"
180
+ }
181
+ ]],
182
+ [/.*?/, {
183
+ token: "",
184
+ switchTo: "@topLevel.proto2"
185
+ }]
186
+ ],
187
+ topLevel: [
188
+ { include: "@whitespace" },
189
+ { include: "@constant" },
190
+ [/=/, "operators"],
191
+ [/[;.]/, "delimiter"],
192
+ [/@fullIdentifier/, { cases: {
193
+ option: {
194
+ token: "keyword",
195
+ next: "@option.$S2"
196
+ },
197
+ enum: {
198
+ token: "keyword",
199
+ next: "@enumDecl.$S2"
200
+ },
201
+ message: {
202
+ token: "keyword",
203
+ next: "@messageDecl.$S2"
204
+ },
205
+ service: {
206
+ token: "keyword",
207
+ next: "@serviceDecl.$S2"
208
+ },
209
+ extend: { cases: { "$S2==proto2": {
210
+ token: "keyword",
211
+ next: "@extendDecl.$S2"
212
+ } } },
213
+ "@keywords": "keyword",
214
+ "@default": "identifier"
215
+ } }]
216
+ ],
217
+ enumDecl: [
218
+ { include: "@whitespace" },
219
+ [/@identifier/, "type.identifier"],
220
+ [/{/, {
221
+ token: "@brackets",
222
+ bracket: "@open",
223
+ switchTo: "@enumBody.$S2"
224
+ }]
225
+ ],
226
+ enumBody: [
227
+ { include: "@whitespace" },
228
+ { include: "@constant" },
229
+ [/=/, "operators"],
230
+ [/;/, "delimiter"],
231
+ [
232
+ /option\b/,
233
+ "keyword",
234
+ "@option.$S2"
235
+ ],
236
+ [/@identifier/, "identifier"],
237
+ [/\[/, {
238
+ token: "@brackets",
239
+ bracket: "@open",
240
+ next: "@options.$S2"
241
+ }],
242
+ [/}/, {
243
+ token: "@brackets",
244
+ bracket: "@close",
245
+ next: "@pop"
246
+ }]
247
+ ],
248
+ messageDecl: [
249
+ { include: "@whitespace" },
250
+ [/@identifier/, "type.identifier"],
251
+ [/{/, {
252
+ token: "@brackets",
253
+ bracket: "@open",
254
+ switchTo: "@messageBody.$S2"
255
+ }]
256
+ ],
257
+ messageBody: [
258
+ { include: "@whitespace" },
259
+ { include: "@constant" },
260
+ [/=/, "operators"],
261
+ [/;/, "delimiter"],
262
+ ["(map)(s*)(<)", [
263
+ "keyword",
264
+ "white",
265
+ {
266
+ token: "@brackets",
267
+ bracket: "@open",
268
+ next: "@map.$S2"
269
+ }
270
+ ]],
271
+ [/@identifier/, { cases: {
272
+ option: {
273
+ token: "keyword",
274
+ next: "@option.$S2"
275
+ },
276
+ enum: {
277
+ token: "keyword",
278
+ next: "@enumDecl.$S2"
279
+ },
280
+ message: {
281
+ token: "keyword",
282
+ next: "@messageDecl.$S2"
283
+ },
284
+ oneof: {
285
+ token: "keyword",
286
+ next: "@oneofDecl.$S2"
287
+ },
288
+ extensions: { cases: { "$S2==proto2": {
289
+ token: "keyword",
290
+ next: "@reserved.$S2"
291
+ } } },
292
+ reserved: {
293
+ token: "keyword",
294
+ next: "@reserved.$S2"
295
+ },
296
+ "(?:repeated|optional)": {
297
+ token: "keyword",
298
+ next: "@field.$S2"
299
+ },
300
+ required: { cases: { "$S2==proto2": {
301
+ token: "keyword",
302
+ next: "@field.$S2"
303
+ } } },
304
+ "$S2==proto3": {
305
+ token: "@rematch",
306
+ next: "@field.$S2"
307
+ }
308
+ } }],
309
+ [/\[/, {
310
+ token: "@brackets",
311
+ bracket: "@open",
312
+ next: "@options.$S2"
313
+ }],
314
+ [/}/, {
315
+ token: "@brackets",
316
+ bracket: "@close",
317
+ next: "@pop"
318
+ }]
319
+ ],
320
+ extendDecl: [
321
+ { include: "@whitespace" },
322
+ [/@identifier/, "type.identifier"],
323
+ [/{/, {
324
+ token: "@brackets",
325
+ bracket: "@open",
326
+ switchTo: "@extendBody.$S2"
327
+ }]
328
+ ],
329
+ extendBody: [
330
+ { include: "@whitespace" },
331
+ { include: "@constant" },
332
+ [/;/, "delimiter"],
333
+ [
334
+ /(?:repeated|optional|required)/,
335
+ "keyword",
336
+ "@field.$S2"
337
+ ],
338
+ [/\[/, {
339
+ token: "@brackets",
340
+ bracket: "@open",
341
+ next: "@options.$S2"
342
+ }],
343
+ [/}/, {
344
+ token: "@brackets",
345
+ bracket: "@close",
346
+ next: "@pop"
347
+ }]
348
+ ],
349
+ options: [
350
+ { include: "@whitespace" },
351
+ { include: "@constant" },
352
+ [/;/, "delimiter"],
353
+ [/@optionName/, "annotation"],
354
+ [/[()]/, "annotation.brackets"],
355
+ [/=/, "operator"],
356
+ [/\]/, {
357
+ token: "@brackets",
358
+ bracket: "@close",
359
+ next: "@pop"
360
+ }]
361
+ ],
362
+ option: [
363
+ { include: "@whitespace" },
364
+ [/@optionName/, "annotation"],
365
+ [/[()]/, "annotation.brackets"],
366
+ [
367
+ /=/,
368
+ "operator",
369
+ "@pop"
370
+ ]
371
+ ],
372
+ oneofDecl: [
373
+ { include: "@whitespace" },
374
+ [/@identifier/, "identifier"],
375
+ [/{/, {
376
+ token: "@brackets",
377
+ bracket: "@open",
378
+ switchTo: "@oneofBody.$S2"
379
+ }]
380
+ ],
381
+ oneofBody: [
382
+ { include: "@whitespace" },
383
+ { include: "@constant" },
384
+ [/;/, "delimiter"],
385
+ [/(@identifier)(\s*)(=)/, [
386
+ "identifier",
387
+ "white",
388
+ "delimiter"
389
+ ]],
390
+ [/@fullIdentifier|\./, { cases: {
391
+ "@builtinTypes": "keyword",
392
+ "@default": "type.identifier"
393
+ } }],
394
+ [/\[/, {
395
+ token: "@brackets",
396
+ bracket: "@open",
397
+ next: "@options.$S2"
398
+ }],
399
+ [/}/, {
400
+ token: "@brackets",
401
+ bracket: "@close",
402
+ next: "@pop"
403
+ }]
404
+ ],
405
+ reserved: [
406
+ { include: "@whitespace" },
407
+ [/,/, "delimiter"],
408
+ [
409
+ /;/,
410
+ "delimiter",
411
+ "@pop"
412
+ ],
413
+ { include: "@constant" },
414
+ [/to\b|max\b/, "keyword"]
415
+ ],
416
+ map: [
417
+ { include: "@whitespace" },
418
+ [/@fullIdentifier|\./, { cases: {
419
+ "@builtinTypes": "keyword",
420
+ "@default": "type.identifier"
421
+ } }],
422
+ [/,/, "delimiter"],
423
+ [/>/, {
424
+ token: "@brackets",
425
+ bracket: "@close",
426
+ switchTo: "identifier"
427
+ }]
428
+ ],
429
+ field: [
430
+ { include: "@whitespace" },
431
+ ["group", { cases: { "$S2==proto2": {
432
+ token: "keyword",
433
+ switchTo: "@groupDecl.$S2"
434
+ } } }],
435
+ [/(@identifier)(\s*)(=)/, [
436
+ "identifier",
437
+ "white",
438
+ {
439
+ token: "delimiter",
440
+ next: "@pop"
441
+ }
442
+ ]],
443
+ [/@fullIdentifier|\./, { cases: {
444
+ "@builtinTypes": "keyword",
445
+ "@default": "type.identifier"
446
+ } }]
447
+ ],
448
+ groupDecl: [
449
+ { include: "@whitespace" },
450
+ [/@identifier/, "identifier"],
451
+ ["=", "operator"],
452
+ [/{/, {
453
+ token: "@brackets",
454
+ bracket: "@open",
455
+ switchTo: "@messageBody.$S2"
456
+ }],
457
+ { include: "@constant" }
458
+ ],
459
+ type: [
460
+ { include: "@whitespace" },
461
+ [
462
+ /@identifier/,
463
+ "type.identifier",
464
+ "@pop"
465
+ ],
466
+ [/./, "delimiter"]
467
+ ],
468
+ identifier: [{ include: "@whitespace" }, [
469
+ /@identifier/,
470
+ "identifier",
471
+ "@pop"
472
+ ]],
473
+ serviceDecl: [
474
+ { include: "@whitespace" },
475
+ [/@identifier/, "identifier"],
476
+ [/{/, {
477
+ token: "@brackets",
478
+ bracket: "@open",
479
+ switchTo: "@serviceBody.$S2"
480
+ }]
481
+ ],
482
+ serviceBody: [
483
+ { include: "@whitespace" },
484
+ { include: "@constant" },
485
+ [/;/, "delimiter"],
486
+ [
487
+ /option\b/,
488
+ "keyword",
489
+ "@option.$S2"
490
+ ],
491
+ [
492
+ /rpc\b/,
493
+ "keyword",
494
+ "@rpc.$S2"
495
+ ],
496
+ [/\[/, {
497
+ token: "@brackets",
498
+ bracket: "@open",
499
+ next: "@options.$S2"
500
+ }],
501
+ [/}/, {
502
+ token: "@brackets",
503
+ bracket: "@close",
504
+ next: "@pop"
505
+ }]
506
+ ],
507
+ rpc: [
508
+ { include: "@whitespace" },
509
+ [/@identifier/, "identifier"],
510
+ [/\(/, {
511
+ token: "@brackets",
512
+ bracket: "@open",
513
+ switchTo: "@request.$S2"
514
+ }],
515
+ [/{/, {
516
+ token: "@brackets",
517
+ bracket: "@open",
518
+ next: "@methodOptions.$S2"
519
+ }],
520
+ [
521
+ /;/,
522
+ "delimiter",
523
+ "@pop"
524
+ ]
525
+ ],
526
+ request: [
527
+ { include: "@whitespace" },
528
+ [/@messageType/, { cases: {
529
+ stream: {
530
+ token: "keyword",
531
+ next: "@type.$S2"
532
+ },
533
+ "@default": "type.identifier"
534
+ } }],
535
+ [/\)/, {
536
+ token: "@brackets",
537
+ bracket: "@close",
538
+ switchTo: "@returns.$S2"
539
+ }]
540
+ ],
541
+ returns: [
542
+ { include: "@whitespace" },
543
+ [/returns\b/, "keyword"],
544
+ [/\(/, {
545
+ token: "@brackets",
546
+ bracket: "@open",
547
+ switchTo: "@response.$S2"
548
+ }]
549
+ ],
550
+ response: [
551
+ { include: "@whitespace" },
552
+ [/@messageType/, { cases: {
553
+ stream: {
554
+ token: "keyword",
555
+ next: "@type.$S2"
556
+ },
557
+ "@default": "type.identifier"
558
+ } }],
559
+ [/\)/, {
560
+ token: "@brackets",
561
+ bracket: "@close",
562
+ switchTo: "@rpc.$S2"
563
+ }]
564
+ ],
565
+ methodOptions: [
566
+ { include: "@whitespace" },
567
+ { include: "@constant" },
568
+ [/;/, "delimiter"],
569
+ ["option", "keyword"],
570
+ [/@optionName/, "annotation"],
571
+ [/[()]/, "annotation.brackets"],
572
+ [/=/, "operator"],
573
+ [/}/, {
574
+ token: "@brackets",
575
+ bracket: "@close",
576
+ next: "@pop"
577
+ }]
578
+ ],
579
+ comment: [
580
+ [/[^\/*]+/, "comment"],
581
+ [
582
+ /\/\*/,
583
+ "comment",
584
+ "@push"
585
+ ],
586
+ [
587
+ "\\*/",
588
+ "comment",
589
+ "@pop"
590
+ ],
591
+ [/[\/*]/, "comment"]
592
+ ],
593
+ string: [
594
+ [/[^\\"]+/, "string"],
595
+ [/@escapes/, "string.escape"],
596
+ [/\\./, "string.escape.invalid"],
597
+ [/"/, {
598
+ token: "string.quote",
599
+ bracket: "@close",
600
+ next: "@pop"
601
+ }]
602
+ ],
603
+ stringSingle: [
604
+ [/[^\\']+/, "string"],
605
+ [/@escapes/, "string.escape"],
606
+ [/\\./, "string.escape.invalid"],
607
+ [/'/, {
608
+ token: "string.quote",
609
+ bracket: "@close",
610
+ next: "@pop"
611
+ }]
612
+ ],
613
+ constant: [
614
+ ["@boolLit", "keyword.constant"],
615
+ ["@hexLit", "number.hex"],
616
+ ["@octalLit", "number.octal"],
617
+ ["@decimalLit", "number"],
618
+ ["@floatLit", "number.float"],
619
+ [/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
620
+ [/"/, {
621
+ token: "string.quote",
622
+ bracket: "@open",
623
+ next: "@string"
624
+ }],
625
+ [/'/, {
626
+ token: "string.quote",
627
+ bracket: "@open",
628
+ next: "@stringSingle"
629
+ }],
630
+ [/{/, {
631
+ token: "@brackets",
632
+ bracket: "@open",
633
+ next: "@prototext"
634
+ }],
635
+ [/identifier/, "identifier"]
636
+ ],
637
+ whitespace: [
638
+ [/[ \t\r\n]+/, "white"],
639
+ [
640
+ /\/\*/,
641
+ "comment",
642
+ "@comment"
643
+ ],
644
+ [/\/\/.*$/, "comment"]
645
+ ],
646
+ prototext: [
647
+ { include: "@whitespace" },
648
+ { include: "@constant" },
649
+ [/@identifier/, "identifier"],
650
+ [/[:;]/, "delimiter"],
651
+ [/}/, {
652
+ token: "@brackets",
653
+ bracket: "@close",
654
+ next: "@pop"
655
+ }]
656
+ ]
657
+ }
658
+ };
659
+ export { conf, language };
@@ -0,0 +1,2 @@
1
+ const e=require(`./chunk-BjqF3vbe.cjs`);var t=[`true`,`false`],n={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`"`,close:`"`},{open:`'`,close:`'`}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`]}],autoCloseBefore:`.,=}])>'
2
+ `,indentationRules:{increaseIndentPattern:RegExp(`^((?!\\/\\/).)*(\\{[^}"'\`]*|\\([^)"'\`]*|\\[[^\\]"'\`]*)$`),decreaseIndentPattern:RegExp(`^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$`)}},r={defaultToken:``,tokenPostfix:`.proto`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:[`syntax`,`import`,`weak`,`public`,`package`,`option`,`repeated`,`oneof`,`map`,`reserved`,`to`,`max`,`enum`,`message`,`service`,`rpc`,`stream`,`returns`,`package`,`optional`,`true`,`false`],builtinTypes:[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],operators:[`=`,`+`,`-`],namedLiterals:t,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:`@whitespace`},[/syntax/,`keyword`],[/=/,`operators`],[/;/,`delimiter`],[/(")(proto3)(")/,[`string.quote`,`string`,{token:`string.quote`,switchTo:`@topLevel.proto3`}]],[/(")(proto2)(")/,[`string.quote`,`string`,{token:`string.quote`,switchTo:`@topLevel.proto2`}]],[/.*?/,{token:``,switchTo:`@topLevel.proto2`}]],topLevel:[{include:`@whitespace`},{include:`@constant`},[/=/,`operators`],[/[;.]/,`delimiter`],[/@fullIdentifier/,{cases:{option:{token:`keyword`,next:`@option.$S2`},enum:{token:`keyword`,next:`@enumDecl.$S2`},message:{token:`keyword`,next:`@messageDecl.$S2`},service:{token:`keyword`,next:`@serviceDecl.$S2`},extend:{cases:{"$S2==proto2":{token:`keyword`,next:`@extendDecl.$S2`}}},"@keywords":`keyword`,"@default":`identifier`}}]],enumDecl:[{include:`@whitespace`},[/@identifier/,`type.identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@enumBody.$S2`}]],enumBody:[{include:`@whitespace`},{include:`@constant`},[/=/,`operators`],[/;/,`delimiter`],[/option\b/,`keyword`,`@option.$S2`],[/@identifier/,`identifier`],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],messageDecl:[{include:`@whitespace`},[/@identifier/,`type.identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@messageBody.$S2`}]],messageBody:[{include:`@whitespace`},{include:`@constant`},[/=/,`operators`],[/;/,`delimiter`],[`(map)(s*)(<)`,[`keyword`,`white`,{token:`@brackets`,bracket:`@open`,next:`@map.$S2`}]],[/@identifier/,{cases:{option:{token:`keyword`,next:`@option.$S2`},enum:{token:`keyword`,next:`@enumDecl.$S2`},message:{token:`keyword`,next:`@messageDecl.$S2`},oneof:{token:`keyword`,next:`@oneofDecl.$S2`},extensions:{cases:{"$S2==proto2":{token:`keyword`,next:`@reserved.$S2`}}},reserved:{token:`keyword`,next:`@reserved.$S2`},"(?:repeated|optional)":{token:`keyword`,next:`@field.$S2`},required:{cases:{"$S2==proto2":{token:`keyword`,next:`@field.$S2`}}},"$S2==proto3":{token:`@rematch`,next:`@field.$S2`}}}],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],extendDecl:[{include:`@whitespace`},[/@identifier/,`type.identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@extendBody.$S2`}]],extendBody:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/(?:repeated|optional|required)/,`keyword`,`@field.$S2`],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],options:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/@optionName/,`annotation`],[/[()]/,`annotation.brackets`],[/=/,`operator`],[/\]/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],option:[{include:`@whitespace`},[/@optionName/,`annotation`],[/[()]/,`annotation.brackets`],[/=/,`operator`,`@pop`]],oneofDecl:[{include:`@whitespace`},[/@identifier/,`identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@oneofBody.$S2`}]],oneofBody:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/(@identifier)(\s*)(=)/,[`identifier`,`white`,`delimiter`]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":`keyword`,"@default":`type.identifier`}}],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],reserved:[{include:`@whitespace`},[/,/,`delimiter`],[/;/,`delimiter`,`@pop`],{include:`@constant`},[/to\b|max\b/,`keyword`]],map:[{include:`@whitespace`},[/@fullIdentifier|\./,{cases:{"@builtinTypes":`keyword`,"@default":`type.identifier`}}],[/,/,`delimiter`],[/>/,{token:`@brackets`,bracket:`@close`,switchTo:`identifier`}]],field:[{include:`@whitespace`},[`group`,{cases:{"$S2==proto2":{token:`keyword`,switchTo:`@groupDecl.$S2`}}}],[/(@identifier)(\s*)(=)/,[`identifier`,`white`,{token:`delimiter`,next:`@pop`}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":`keyword`,"@default":`type.identifier`}}]],groupDecl:[{include:`@whitespace`},[/@identifier/,`identifier`],[`=`,`operator`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@messageBody.$S2`}],{include:`@constant`}],type:[{include:`@whitespace`},[/@identifier/,`type.identifier`,`@pop`],[/./,`delimiter`]],identifier:[{include:`@whitespace`},[/@identifier/,`identifier`,`@pop`]],serviceDecl:[{include:`@whitespace`},[/@identifier/,`identifier`],[/{/,{token:`@brackets`,bracket:`@open`,switchTo:`@serviceBody.$S2`}]],serviceBody:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[/option\b/,`keyword`,`@option.$S2`],[/rpc\b/,`keyword`,`@rpc.$S2`],[/\[/,{token:`@brackets`,bracket:`@open`,next:`@options.$S2`}],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],rpc:[{include:`@whitespace`},[/@identifier/,`identifier`],[/\(/,{token:`@brackets`,bracket:`@open`,switchTo:`@request.$S2`}],[/{/,{token:`@brackets`,bracket:`@open`,next:`@methodOptions.$S2`}],[/;/,`delimiter`,`@pop`]],request:[{include:`@whitespace`},[/@messageType/,{cases:{stream:{token:`keyword`,next:`@type.$S2`},"@default":`type.identifier`}}],[/\)/,{token:`@brackets`,bracket:`@close`,switchTo:`@returns.$S2`}]],returns:[{include:`@whitespace`},[/returns\b/,`keyword`],[/\(/,{token:`@brackets`,bracket:`@open`,switchTo:`@response.$S2`}]],response:[{include:`@whitespace`},[/@messageType/,{cases:{stream:{token:`keyword`,next:`@type.$S2`},"@default":`type.identifier`}}],[/\)/,{token:`@brackets`,bracket:`@close`,switchTo:`@rpc.$S2`}]],methodOptions:[{include:`@whitespace`},{include:`@constant`},[/;/,`delimiter`],[`option`,`keyword`],[/@optionName/,`annotation`],[/[()]/,`annotation.brackets`],[/=/,`operator`],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]],comment:[[/[^\/*]+/,`comment`],[/\/\*/,`comment`,`@push`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],stringSingle:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],constant:[[`@boolLit`,`keyword.constant`],[`@hexLit`,`number.hex`],[`@octalLit`,`number.octal`],[`@decimalLit`,`number`],[`@floatLit`,`number.float`],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,`string.invalid`],[/"/,{token:`string.quote`,bracket:`@open`,next:`@string`}],[/'/,{token:`string.quote`,bracket:`@open`,next:`@stringSingle`}],[/{/,{token:`@brackets`,bracket:`@open`,next:`@prototext`}],[/identifier/,`identifier`]],whitespace:[[/[ \t\r\n]+/,`white`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],prototext:[{include:`@whitespace`},{include:`@constant`},[/@identifier/,`identifier`],[/[:;]/,`delimiter`],[/}/,{token:`@brackets`,bracket:`@close`,next:`@pop`}]]}};exports.conf=n,exports.language=r;