@covalent/components 8.14.1 → 8.15.0-beta.2

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 (313) hide show
  1. package/abap-1354785f.mjs +1314 -0
  2. package/abap-c7187853.js +6 -0
  3. package/action-ribbon.js +1 -1
  4. package/action-ribbon.mjs +4 -3
  5. package/alert.js +1 -1
  6. package/alert.mjs +4 -3
  7. package/apex-279d4f27.mjs +315 -0
  8. package/apex-fc5f2b3e.js +6 -0
  9. package/app-shell.js +1 -1
  10. package/app-shell.mjs +8 -7
  11. package/assets/css.worker-1af1972f.js +84 -0
  12. package/assets/editor.worker-df55e1ff.js +8 -0
  13. package/assets/html.worker-38c267f1.js +456 -0
  14. package/assets/json.worker-bf861c27.js +39 -0
  15. package/assets/ts.worker-e151483b.js +33972 -0
  16. package/async-directive-4a34f75e.js +5 -0
  17. package/async-directive-99a01ec7.mjs +78 -0
  18. package/azcli-ba812c55.mjs +74 -0
  19. package/azcli-eb191d91.js +6 -0
  20. package/badge.js +1 -1
  21. package/badge.mjs +4 -3
  22. package/bat-34d38df4.js +6 -0
  23. package/bat-4d77495d.mjs +95 -0
  24. package/bicep-7b240724.mjs +108 -0
  25. package/bicep-a8264e77.js +7 -0
  26. package/button.js +1 -1
  27. package/button.mjs +10 -9
  28. package/cameligo-5d2daeb8.mjs +168 -0
  29. package/cameligo-6e71c8f3.js +6 -0
  30. package/card.js +1 -1
  31. package/card.mjs +4 -3
  32. package/cell/cell.d.ts +63 -0
  33. package/cell/cell.d.ts.map +1 -0
  34. package/cell.js +25 -0
  35. package/cell.mjs +134 -0
  36. package/check-list-item.js +1 -1
  37. package/check-list-item.mjs +8 -7
  38. package/checkbox.js +1 -1
  39. package/checkbox.mjs +16 -15
  40. package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
  41. package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
  42. package/chip-set.js +2 -2
  43. package/chip-set.mjs +46 -45
  44. package/chip.js +1 -1
  45. package/chip.mjs +5 -4
  46. package/circular-progress.js +1 -1
  47. package/circular-progress.mjs +5 -4
  48. package/class-map-0a4c6ca9.js +5 -0
  49. package/class-map-6e504a9a.mjs +38 -0
  50. package/clojure-355adae1.js +6 -0
  51. package/clojure-b7ea12a3.mjs +754 -0
  52. package/code-editor/code-editor.d.ts +51 -0
  53. package/code-editor/code-editor.d.ts.map +1 -0
  54. package/code-editor-7a36c890.js +1200 -0
  55. package/code-editor-b9acd487.mjs +94274 -0
  56. package/code-editor.js +1 -0
  57. package/code-editor.mjs +10 -0
  58. package/code-snippet.js +1 -1
  59. package/code-snippet.mjs +4 -3
  60. package/coffee-1a8cfbf4.mjs +228 -0
  61. package/coffee-fd8a7421.js +6 -0
  62. package/cpp-642b10c4.mjs +387 -0
  63. package/cpp-7eec3311.js +6 -0
  64. package/csharp-32862cd2.js +6 -0
  65. package/csharp-d987ddad.mjs +320 -0
  66. package/csp-54919de0.js +6 -0
  67. package/csp-96407af0.mjs +57 -0
  68. package/css-5dd354ac.mjs +186 -0
  69. package/css-9be95551.js +8 -0
  70. package/cssMode-2cffe81f.js +9 -0
  71. package/cssMode-6f4ea93a.mjs +1450 -0
  72. package/cypher-11e5a4b6.mjs +262 -0
  73. package/cypher-cc849b67.js +6 -0
  74. package/dart-031264ea.js +6 -0
  75. package/dart-5d209f63.mjs +270 -0
  76. package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
  77. package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
  78. package/dialog.js +1 -1
  79. package/dialog.mjs +5 -4
  80. package/directive-1186bc23.js +5 -0
  81. package/directive-daf4e9b6.mjs +27 -0
  82. package/dockerfile-2f8684f7.js +6 -0
  83. package/dockerfile-8739cff7.mjs +132 -0
  84. package/drawer.js +1 -1
  85. package/drawer.mjs +5 -4
  86. package/ecl-68a6f20f.js +6 -0
  87. package/ecl-a20c5155.mjs +454 -0
  88. package/elixir-32cc668e.js +6 -0
  89. package/elixir-8b028584.mjs +467 -0
  90. package/flow9-0dea2e73.mjs +141 -0
  91. package/flow9-1d2ab5f6.js +6 -0
  92. package/formfield.js +3 -3
  93. package/formfield.mjs +4 -3
  94. package/freemarker2-89c6e6f3.js +8 -0
  95. package/freemarker2-906bf3f7.mjs +648 -0
  96. package/fsharp-49a70fad.mjs +210 -0
  97. package/fsharp-a22f5013.js +6 -0
  98. package/go-46e3b371.mjs +208 -0
  99. package/go-cdd943fd.js +6 -0
  100. package/graphql-1a14eb34.js +6 -0
  101. package/graphql-51a577e5.mjs +141 -0
  102. package/handlebars-dbc16556.mjs +396 -0
  103. package/handlebars-e0f7efbe.js +6 -0
  104. package/hcl-0833427e.js +6 -0
  105. package/hcl-56b85754.mjs +177 -0
  106. package/html-d8278158.js +6 -0
  107. package/html-feca0a24.mjs +286 -0
  108. package/htmlMode-45e8cd50.mjs +1460 -0
  109. package/htmlMode-989d6a85.js +9 -0
  110. package/icon-button-toggle.js +1 -1
  111. package/icon-button-toggle.mjs +6 -5
  112. package/icon-button.js +1 -1
  113. package/icon-button.mjs +6 -5
  114. package/icon-check-toggle.js +1 -1
  115. package/icon-check-toggle.mjs +7 -6
  116. package/icon-radio-toggle.js +3 -3
  117. package/icon-radio-toggle.mjs +7 -6
  118. package/index.d.ts +3 -0
  119. package/index.d.ts.map +1 -1
  120. package/index.js +1 -1
  121. package/index.mjs +125 -117
  122. package/ini-1d58d82f.mjs +68 -0
  123. package/ini-34a929df.js +6 -0
  124. package/java-32d7b433.js +6 -0
  125. package/java-cd017f60.mjs +221 -0
  126. package/javascript-3fd1e5a8.mjs +80 -0
  127. package/javascript-5d8f5f2a.js +6 -0
  128. package/jsonMode-33e7baa8.js +11 -0
  129. package/jsonMode-b4ecafe2.mjs +1871 -0
  130. package/julia-7db1fb9a.js +6 -0
  131. package/julia-a0caf483.mjs +496 -0
  132. package/kotlin-4b9019e1.js +6 -0
  133. package/kotlin-c6e52a56.mjs +245 -0
  134. package/less-5219eae1.js +7 -0
  135. package/less-718543b4.mjs +168 -0
  136. package/lexon-5e6e7a44.mjs +151 -0
  137. package/lexon-dfd683ab.js +6 -0
  138. package/linear-progress.js +1 -1
  139. package/linear-progress.mjs +5 -4
  140. package/liquid-97280cdd.js +6 -0
  141. package/liquid-9be0367d.mjs +243 -0
  142. package/list-item.js +2 -2
  143. package/list-item.mjs +7 -6
  144. package/list.js +1 -1
  145. package/list.mjs +8 -7
  146. package/lua-b46719a9.js +6 -0
  147. package/lua-f159160b.mjs +157 -0
  148. package/m3-87473279.js +6 -0
  149. package/m3-aadaf771.mjs +210 -0
  150. package/markdown-9b448c46.mjs +202 -0
  151. package/markdown-eae8e3ba.js +6 -0
  152. package/menu.js +5 -5
  153. package/menu.mjs +9 -8
  154. package/mips-161e49ce.mjs +194 -0
  155. package/mips-82a1ce59.js +6 -0
  156. package/msdax-b3b5017e.js +6 -0
  157. package/msdax-f65cb1e6.mjs +377 -0
  158. package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
  159. package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
  160. package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
  161. package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
  162. package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
  163. package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
  164. package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
  165. package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
  166. package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
  167. package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
  168. package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
  169. package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
  170. package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
  171. package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
  172. package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
  173. package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
  174. package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
  175. package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
  176. package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
  177. package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
  178. package/mysql-24549dd1.mjs +875 -0
  179. package/mysql-69f1c589.js +6 -0
  180. package/nav-list-item.js +1 -1
  181. package/nav-list-item.mjs +7 -6
  182. package/notebook/notebook.d.ts +50 -0
  183. package/notebook/notebook.d.ts.map +1 -0
  184. package/notebook.js +99 -0
  185. package/notebook.mjs +3326 -0
  186. package/objective-c-c8319b65.js +6 -0
  187. package/objective-c-e129a5ca.mjs +188 -0
  188. package/package.json +16 -1
  189. package/pascal-4ccdf5ce.mjs +245 -0
  190. package/pascal-e5207a08.js +6 -0
  191. package/pascaligo-8eb79945.js +6 -0
  192. package/pascaligo-a9603dcd.mjs +158 -0
  193. package/perl-ba1fb97a.mjs +599 -0
  194. package/perl-e8264c91.js +6 -0
  195. package/pgsql-89978310.mjs +843 -0
  196. package/pgsql-c8ba6faf.js +6 -0
  197. package/php-987b9d87.mjs +471 -0
  198. package/php-a6dcde52.js +6 -0
  199. package/pla-96c2695d.mjs +131 -0
  200. package/pla-c85b0e59.js +6 -0
  201. package/postiats-3c2c478e.js +6 -0
  202. package/postiats-7b52ebac.mjs +544 -0
  203. package/powerquery-8954ec26.mjs +890 -0
  204. package/powerquery-b0d5f9e4.js +6 -0
  205. package/powershell-cdb88123.js +6 -0
  206. package/powershell-f00d0274.mjs +233 -0
  207. package/protobuf-3eb85f80.mjs +422 -0
  208. package/protobuf-a3b2ca94.js +7 -0
  209. package/pug-6fab415a.mjs +393 -0
  210. package/pug-c5df821d.js +6 -0
  211. package/python-3deb7582.mjs +264 -0
  212. package/python-e4403078.js +6 -0
  213. package/qsharp-4792f872.mjs +282 -0
  214. package/qsharp-7eddb7b9.js +6 -0
  215. package/r-42c6f0aa.js +6 -0
  216. package/r-630f5d6b.mjs +245 -0
  217. package/radio-list-item.js +1 -1
  218. package/radio-list-item.mjs +8 -7
  219. package/radio.js +2 -2
  220. package/radio.mjs +7 -6
  221. package/razor-9fd114ce.js +6 -0
  222. package/razor-d49ab0c5.mjs +517 -0
  223. package/redis-0d0a89dd.js +6 -0
  224. package/redis-276b8288.mjs +298 -0
  225. package/redshift-520a7359.mjs +806 -0
  226. package/redshift-b6bdaeca.js +6 -0
  227. package/restructuredtext-4676a3fc.mjs +162 -0
  228. package/restructuredtext-c83d56ed.js +6 -0
  229. package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
  230. package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
  231. package/ruby-764137cd.mjs +444 -0
  232. package/ruby-96103dcf.js +6 -0
  233. package/rust-87887495.js +6 -0
  234. package/rust-97f8f6e1.mjs +337 -0
  235. package/sb-8c22f14c.mjs +110 -0
  236. package/sb-e2701210.js +6 -0
  237. package/scala-c68c650c.mjs +353 -0
  238. package/scala-e8b7bd42.js +6 -0
  239. package/scheme-b9cbf7cb.js +6 -0
  240. package/scheme-e6a52cb0.mjs +114 -0
  241. package/scss-45104c77.mjs +244 -0
  242. package/scss-d0f4f80e.js +8 -0
  243. package/select.js +1 -1
  244. package/select.mjs +10 -9
  245. package/shell-09452d42.mjs +224 -0
  246. package/shell-43cfbe7d.js +6 -0
  247. package/side-sheet.js +1 -1
  248. package/side-sheet.mjs +3 -2
  249. package/slider-range.js +1 -1
  250. package/slider-range.mjs +7 -6
  251. package/slider.js +1 -1
  252. package/slider.mjs +12 -11
  253. package/snackbar.js +14 -18
  254. package/snackbar.mjs +88 -159
  255. package/solidity-d4979008.mjs +1351 -0
  256. package/solidity-f1319e8a.js +6 -0
  257. package/sophia-21995caf.mjs +190 -0
  258. package/sophia-a1ce907f.js +6 -0
  259. package/sparql-5088743c.mjs +193 -0
  260. package/sparql-98d9e092.js +6 -0
  261. package/sql-63ec8e76.mjs +818 -0
  262. package/sql-faf05577.js +6 -0
  263. package/st-122893c4.js +6 -0
  264. package/st-fa9ab362.mjs +414 -0
  265. package/status-dialog.js +1 -1
  266. package/status-dialog.mjs +7 -6
  267. package/status-header.js +1 -1
  268. package/status-header.mjs +4 -3
  269. package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
  270. package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
  271. package/style.css +1 -0
  272. package/swift-724ff2a3.js +8 -0
  273. package/swift-abdf1835.mjs +315 -0
  274. package/switch.js +1 -1
  275. package/switch.mjs +6 -5
  276. package/systemverilog-8139818b.js +6 -0
  277. package/systemverilog-a4f858ed.mjs +556 -0
  278. package/tab-bar.js +2 -2
  279. package/tab-bar.mjs +7 -6
  280. package/tab.js +1 -1
  281. package/tab.mjs +9 -8
  282. package/tcl-8adf937f.mjs +232 -0
  283. package/tcl-e49fed0b.js +6 -0
  284. package/text-lockup.js +1 -1
  285. package/text-lockup.mjs +4 -3
  286. package/textarea.js +1 -1
  287. package/textarea.mjs +6 -5
  288. package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
  289. package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
  290. package/textfield.js +1 -1
  291. package/textfield.mjs +6 -5
  292. package/toolbar.js +1 -1
  293. package/toolbar.mjs +5 -4
  294. package/top-app-bar-fixed.js +1 -1
  295. package/top-app-bar-fixed.mjs +5 -4
  296. package/top-app-bar.js +1 -1
  297. package/top-app-bar.mjs +8 -7
  298. package/tree-list-item.js +1 -1
  299. package/tree-list-item.mjs +4 -3
  300. package/tsMode-4448deef.mjs +794 -0
  301. package/tsMode-c5cc89bc.js +16 -0
  302. package/twig-404eb73e.mjs +323 -0
  303. package/twig-4bfb5b04.js +6 -0
  304. package/typescript-1b8311ff.js +6 -0
  305. package/typescript-8fb83e8f.mjs +332 -0
  306. package/vb-8dfd000c.js +6 -0
  307. package/vb-e21e8153.mjs +364 -0
  308. package/xml-c437fe38.js +6 -0
  309. package/xml-eee8295b.mjs +100 -0
  310. package/yaml-083914d5.mjs +189 -0
  311. package/yaml-8c10a8e6.js +6 -0
  312. package/class-map-4b94b017.mjs +0 -62
  313. package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,422 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var e = ["true", "false"], t = {
8
+ comments: {
9
+ lineComment: "//",
10
+ blockComment: ["/*", "*/"]
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"],
16
+ ["<", ">"]
17
+ ],
18
+ surroundingPairs: [
19
+ { open: "{", close: "}" },
20
+ { open: "[", close: "]" },
21
+ { open: "(", close: ")" },
22
+ { open: "<", close: ">" },
23
+ { open: '"', close: '"' },
24
+ { open: "'", close: "'" }
25
+ ],
26
+ autoClosingPairs: [
27
+ { open: "{", close: "}" },
28
+ { open: "[", close: "]" },
29
+ { open: "(", close: ")" },
30
+ { open: "<", close: ">" },
31
+ { open: '"', close: '"', notIn: ["string"] },
32
+ { open: "'", close: "'", notIn: ["string"] }
33
+ ],
34
+ autoCloseBefore: `.,=}])>'
35
+ `,
36
+ indentationRules: {
37
+ increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
38
+ decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
39
+ }
40
+ }, n = {
41
+ defaultToken: "",
42
+ tokenPostfix: ".proto",
43
+ brackets: [
44
+ { open: "{", close: "}", token: "delimiter.curly" },
45
+ { open: "[", close: "]", token: "delimiter.square" },
46
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
47
+ { open: "<", close: ">", token: "delimiter.angle" }
48
+ ],
49
+ symbols: /[=><!~?:&|+\-*/^%]+/,
50
+ keywords: [
51
+ "syntax",
52
+ "import",
53
+ "weak",
54
+ "public",
55
+ "package",
56
+ "option",
57
+ "repeated",
58
+ "oneof",
59
+ "map",
60
+ "reserved",
61
+ "to",
62
+ "max",
63
+ "enum",
64
+ "message",
65
+ "service",
66
+ "rpc",
67
+ "stream",
68
+ "returns",
69
+ "package",
70
+ "optional",
71
+ "true",
72
+ "false"
73
+ ],
74
+ builtinTypes: [
75
+ "double",
76
+ "float",
77
+ "int32",
78
+ "int64",
79
+ "uint32",
80
+ "uint64",
81
+ "sint32",
82
+ "sint64",
83
+ "fixed32",
84
+ "fixed64",
85
+ "sfixed32",
86
+ "sfixed64",
87
+ "bool",
88
+ "string",
89
+ "bytes"
90
+ ],
91
+ operators: ["=", "+", "-"],
92
+ namedLiterals: e,
93
+ escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
94
+ identifier: /[a-zA-Z]\w*/,
95
+ fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
96
+ optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
97
+ messageName: /@identifier/,
98
+ enumName: /@identifier/,
99
+ messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
100
+ enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
101
+ floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
102
+ exponent: /[eE]\s*[+-]?\s*[0-9]+/,
103
+ boolLit: /true\b|false\b/,
104
+ decimalLit: /[1-9][0-9]*/,
105
+ octalLit: /0[0-7]*/,
106
+ hexLit: /0[xX][0-9a-fA-F]+/,
107
+ type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
108
+ keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
109
+ tokenizer: {
110
+ root: [
111
+ { include: "@whitespace" },
112
+ [/syntax/, "keyword"],
113
+ [/=/, "operators"],
114
+ [/;/, "delimiter"],
115
+ [
116
+ /(")(proto3)(")/,
117
+ ["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
118
+ ],
119
+ [
120
+ /(")(proto2)(")/,
121
+ ["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
122
+ ],
123
+ [
124
+ /.*?/,
125
+ { token: "", switchTo: "@topLevel.proto2" }
126
+ ]
127
+ ],
128
+ topLevel: [
129
+ { include: "@whitespace" },
130
+ { include: "@constant" },
131
+ [/=/, "operators"],
132
+ [/[;.]/, "delimiter"],
133
+ [
134
+ /@fullIdentifier/,
135
+ {
136
+ cases: {
137
+ option: { token: "keyword", next: "@option.$S2" },
138
+ enum: { token: "keyword", next: "@enumDecl.$S2" },
139
+ message: { token: "keyword", next: "@messageDecl.$S2" },
140
+ service: { token: "keyword", next: "@serviceDecl.$S2" },
141
+ extend: {
142
+ cases: {
143
+ "$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
144
+ }
145
+ },
146
+ "@keywords": "keyword",
147
+ "@default": "identifier"
148
+ }
149
+ }
150
+ ]
151
+ ],
152
+ enumDecl: [
153
+ { include: "@whitespace" },
154
+ [/@identifier/, "type.identifier"],
155
+ [/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
156
+ ],
157
+ enumBody: [
158
+ { include: "@whitespace" },
159
+ { include: "@constant" },
160
+ [/=/, "operators"],
161
+ [/;/, "delimiter"],
162
+ [/option\b/, "keyword", "@option.$S2"],
163
+ [/@identifier/, "identifier"],
164
+ [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
165
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
166
+ ],
167
+ messageDecl: [
168
+ { include: "@whitespace" },
169
+ [/@identifier/, "type.identifier"],
170
+ [/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
171
+ ],
172
+ messageBody: [
173
+ { include: "@whitespace" },
174
+ { include: "@constant" },
175
+ [/=/, "operators"],
176
+ [/;/, "delimiter"],
177
+ [
178
+ "(map)(s*)(<)",
179
+ ["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
180
+ ],
181
+ [
182
+ /@identifier/,
183
+ {
184
+ cases: {
185
+ option: { token: "keyword", next: "@option.$S2" },
186
+ enum: { token: "keyword", next: "@enumDecl.$S2" },
187
+ message: { token: "keyword", next: "@messageDecl.$S2" },
188
+ oneof: { token: "keyword", next: "@oneofDecl.$S2" },
189
+ extensions: {
190
+ cases: {
191
+ "$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
192
+ }
193
+ },
194
+ reserved: { token: "keyword", next: "@reserved.$S2" },
195
+ "(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
196
+ required: {
197
+ cases: {
198
+ "$S2==proto2": { token: "keyword", next: "@field.$S2" }
199
+ }
200
+ },
201
+ "$S2==proto3": { token: "@rematch", next: "@field.$S2" }
202
+ }
203
+ }
204
+ ],
205
+ [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
206
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
207
+ ],
208
+ extendDecl: [
209
+ { include: "@whitespace" },
210
+ [/@identifier/, "type.identifier"],
211
+ [/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
212
+ ],
213
+ extendBody: [
214
+ { include: "@whitespace" },
215
+ { include: "@constant" },
216
+ [/;/, "delimiter"],
217
+ [/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
218
+ [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
219
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
220
+ ],
221
+ options: [
222
+ { include: "@whitespace" },
223
+ { include: "@constant" },
224
+ [/;/, "delimiter"],
225
+ [/@optionName/, "annotation"],
226
+ [/[()]/, "annotation.brackets"],
227
+ [/=/, "operator"],
228
+ [/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
229
+ ],
230
+ option: [
231
+ { include: "@whitespace" },
232
+ [/@optionName/, "annotation"],
233
+ [/[()]/, "annotation.brackets"],
234
+ [/=/, "operator", "@pop"]
235
+ ],
236
+ oneofDecl: [
237
+ { include: "@whitespace" },
238
+ [/@identifier/, "identifier"],
239
+ [/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
240
+ ],
241
+ oneofBody: [
242
+ { include: "@whitespace" },
243
+ { include: "@constant" },
244
+ [/;/, "delimiter"],
245
+ [/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
246
+ [
247
+ /@fullIdentifier|\./,
248
+ {
249
+ cases: {
250
+ "@builtinTypes": "keyword",
251
+ "@default": "type.identifier"
252
+ }
253
+ }
254
+ ],
255
+ [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
256
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
257
+ ],
258
+ reserved: [
259
+ { include: "@whitespace" },
260
+ [/,/, "delimiter"],
261
+ [/;/, "delimiter", "@pop"],
262
+ { include: "@constant" },
263
+ [/to\b|max\b/, "keyword"]
264
+ ],
265
+ map: [
266
+ { include: "@whitespace" },
267
+ [
268
+ /@fullIdentifier|\./,
269
+ {
270
+ cases: {
271
+ "@builtinTypes": "keyword",
272
+ "@default": "type.identifier"
273
+ }
274
+ }
275
+ ],
276
+ [/,/, "delimiter"],
277
+ [/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
278
+ ],
279
+ field: [
280
+ { include: "@whitespace" },
281
+ [
282
+ "group",
283
+ {
284
+ cases: {
285
+ "$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
286
+ }
287
+ }
288
+ ],
289
+ [/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
290
+ [
291
+ /@fullIdentifier|\./,
292
+ {
293
+ cases: {
294
+ "@builtinTypes": "keyword",
295
+ "@default": "type.identifier"
296
+ }
297
+ }
298
+ ]
299
+ ],
300
+ groupDecl: [
301
+ { include: "@whitespace" },
302
+ [/@identifier/, "identifier"],
303
+ ["=", "operator"],
304
+ [/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
305
+ { include: "@constant" }
306
+ ],
307
+ type: [
308
+ { include: "@whitespace" },
309
+ [/@identifier/, "type.identifier", "@pop"],
310
+ [/./, "delimiter"]
311
+ ],
312
+ identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
313
+ serviceDecl: [
314
+ { include: "@whitespace" },
315
+ [/@identifier/, "identifier"],
316
+ [/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
317
+ ],
318
+ serviceBody: [
319
+ { include: "@whitespace" },
320
+ { include: "@constant" },
321
+ [/;/, "delimiter"],
322
+ [/option\b/, "keyword", "@option.$S2"],
323
+ [/rpc\b/, "keyword", "@rpc.$S2"],
324
+ [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
325
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
326
+ ],
327
+ rpc: [
328
+ { include: "@whitespace" },
329
+ [/@identifier/, "identifier"],
330
+ [/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
331
+ [/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
332
+ [/;/, "delimiter", "@pop"]
333
+ ],
334
+ request: [
335
+ { include: "@whitespace" },
336
+ [
337
+ /@messageType/,
338
+ {
339
+ cases: {
340
+ stream: { token: "keyword", next: "@type.$S2" },
341
+ "@default": "type.identifier"
342
+ }
343
+ }
344
+ ],
345
+ [/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
346
+ ],
347
+ returns: [
348
+ { include: "@whitespace" },
349
+ [/returns\b/, "keyword"],
350
+ [/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
351
+ ],
352
+ response: [
353
+ { include: "@whitespace" },
354
+ [
355
+ /@messageType/,
356
+ {
357
+ cases: {
358
+ stream: { token: "keyword", next: "@type.$S2" },
359
+ "@default": "type.identifier"
360
+ }
361
+ }
362
+ ],
363
+ [/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
364
+ ],
365
+ methodOptions: [
366
+ { include: "@whitespace" },
367
+ { include: "@constant" },
368
+ [/;/, "delimiter"],
369
+ ["option", "keyword"],
370
+ [/@optionName/, "annotation"],
371
+ [/[()]/, "annotation.brackets"],
372
+ [/=/, "operator"],
373
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
374
+ ],
375
+ comment: [
376
+ [/[^\/*]+/, "comment"],
377
+ [/\/\*/, "comment", "@push"],
378
+ ["\\*/", "comment", "@pop"],
379
+ [/[\/*]/, "comment"]
380
+ ],
381
+ string: [
382
+ [/[^\\"]+/, "string"],
383
+ [/@escapes/, "string.escape"],
384
+ [/\\./, "string.escape.invalid"],
385
+ [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
386
+ ],
387
+ stringSingle: [
388
+ [/[^\\']+/, "string"],
389
+ [/@escapes/, "string.escape"],
390
+ [/\\./, "string.escape.invalid"],
391
+ [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
392
+ ],
393
+ constant: [
394
+ ["@boolLit", "keyword.constant"],
395
+ ["@hexLit", "number.hex"],
396
+ ["@octalLit", "number.octal"],
397
+ ["@decimalLit", "number"],
398
+ ["@floatLit", "number.float"],
399
+ [/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
400
+ [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
401
+ [/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
402
+ [/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
403
+ [/identifier/, "identifier"]
404
+ ],
405
+ whitespace: [
406
+ [/[ \t\r\n]+/, "white"],
407
+ [/\/\*/, "comment", "@comment"],
408
+ [/\/\/.*$/, "comment"]
409
+ ],
410
+ prototext: [
411
+ { include: "@whitespace" },
412
+ { include: "@constant" },
413
+ [/@identifier/, "identifier"],
414
+ [/[:;]/, "delimiter"],
415
+ [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
416
+ ]
417
+ }
418
+ };
419
+ export {
420
+ t as conf,
421
+ n as language
422
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var e=["true","false"],t={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:`.,=}])>'
7
+ `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},n={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:e,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=t;exports.language=n;