@covalent/components 8.15.0-beta.9 → 8.15.0

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 (193) hide show
  1. package/action-ribbon.js +1 -1
  2. package/action-ribbon.mjs +3 -4
  3. package/alert.js +1 -1
  4. package/alert.mjs +3 -4
  5. package/app-shell/app-shell.d.ts +3 -0
  6. package/app-shell/app-shell.d.ts.map +1 -1
  7. package/app-shell.js +6 -6
  8. package/app-shell.mjs +26 -25
  9. package/badge.js +1 -1
  10. package/badge.mjs +3 -4
  11. package/button.js +1 -1
  12. package/button.mjs +9 -10
  13. package/card/card-base.d.ts.map +1 -1
  14. package/card.js +7 -5
  15. package/card.mjs +9 -8
  16. package/check-list-item.js +1 -1
  17. package/check-list-item.mjs +8 -9
  18. package/checkbox.js +1 -1
  19. package/checkbox.mjs +15 -16
  20. package/{chip-fb0ea5c5.mjs → chip-2d0fd3f0.mjs} +1 -1
  21. package/{chip-c65a4549.js → chip-ebd0a88e.js} +1 -1
  22. package/chip-set.js +2 -2
  23. package/chip-set.mjs +45 -46
  24. package/chip.js +1 -1
  25. package/chip.mjs +4 -5
  26. package/circular-progress.js +1 -1
  27. package/circular-progress.mjs +4 -5
  28. package/class-map-4b94b017.mjs +62 -0
  29. package/class-map-b5efe8da.js +9 -0
  30. package/code-snippet.js +2 -2
  31. package/code-snippet.mjs +4 -5
  32. package/{dialog-86192b9a.js → dialog-82b03745.js} +1 -1
  33. package/{dialog-16aad066.mjs → dialog-c9dbe94d.mjs} +1 -1
  34. package/dialog.js +1 -1
  35. package/dialog.mjs +4 -5
  36. package/drawer.js +1 -1
  37. package/drawer.mjs +4 -5
  38. package/formfield.js +3 -3
  39. package/formfield.mjs +3 -4
  40. package/icon-button-toggle.js +1 -1
  41. package/icon-button-toggle.mjs +5 -6
  42. package/icon-button.js +1 -1
  43. package/icon-button.mjs +5 -6
  44. package/icon-check-toggle.js +1 -1
  45. package/icon-check-toggle.mjs +6 -7
  46. package/icon-radio-toggle.js +3 -3
  47. package/icon-radio-toggle.mjs +6 -7
  48. package/index.d.ts +0 -3
  49. package/index.d.ts.map +1 -1
  50. package/index.js +1 -1
  51. package/index.mjs +118 -126
  52. package/linear-progress.js +1 -1
  53. package/linear-progress.mjs +4 -5
  54. package/{list-item-e628f363.mjs → list-item-24236190.mjs} +1 -1
  55. package/{list-item-e336fb0e.js → list-item-d72b2fff.js} +1 -1
  56. package/list-item.js +2 -2
  57. package/list-item.mjs +7 -8
  58. package/list.js +1 -1
  59. package/list.mjs +7 -8
  60. package/menu.js +5 -5
  61. package/menu.mjs +8 -9
  62. package/{mwc-checkbox-base-935d9566.js → mwc-checkbox-base-3d8c9549.js} +1 -1
  63. package/{mwc-checkbox-base-02b4eb91.mjs → mwc-checkbox-base-c40d16d2.mjs} +2 -2
  64. package/{mwc-drawer-base-bbae43c3.js → mwc-drawer-base-798b11f8.js} +1 -1
  65. package/{mwc-drawer-base-ca75f41f.mjs → mwc-drawer-base-9c77129c.mjs} +1 -1
  66. package/{mwc-line-ripple-directive-40145003.js → mwc-line-ripple-directive-a6b39a3c.js} +14 -14
  67. package/{mwc-line-ripple-directive-aabd8778.mjs → mwc-line-ripple-directive-f9dd7fe3.mjs} +5 -6
  68. package/{mwc-list-base-22616d0a.js → mwc-list-base-400b00e2.js} +1 -1
  69. package/{mwc-list-base-402e1d8e.mjs → mwc-list-base-495cbb3b.mjs} +1 -1
  70. package/{mwc-list-item-base-06d93e6e.js → mwc-list-item-base-297d86b0.js} +1 -1
  71. package/{mwc-list-item-base-3c6a3bfb.mjs → mwc-list-item-base-6449e812.mjs} +2 -2
  72. package/{mwc-menu-base-04586160.mjs → mwc-menu-base-9704207e.mjs} +3 -3
  73. package/{mwc-menu-base-08f54c38.js → mwc-menu-base-c75ca473.js} +1 -1
  74. package/{mwc-radio-base-768b4221.mjs → mwc-radio-base-4dbe9e38.mjs} +2 -2
  75. package/{mwc-radio-base-147cf999.js → mwc-radio-base-913e02e2.js} +1 -1
  76. package/{mwc-slider.css-cda43bd0.mjs → mwc-slider.css-30c91236.mjs} +3 -3
  77. package/{mwc-slider.css-c5f99704.js → mwc-slider.css-c7107d94.js} +1 -1
  78. package/{mwc-tab-base-0814a3ef.mjs → mwc-tab-base-effde6e4.mjs} +2 -2
  79. package/{mwc-tab-base-f2269fd1.js → mwc-tab-base-f28722aa.js} +1 -1
  80. package/{mwc-top-app-bar-base-8a7f7312.mjs → mwc-top-app-bar-base-28c4192d.mjs} +1 -1
  81. package/{mwc-top-app-bar-base-8c8cde51.js → mwc-top-app-bar-base-aec60f27.js} +1 -1
  82. package/nav-list-item.js +1 -1
  83. package/nav-list-item.mjs +7 -8
  84. package/package.json +1 -16
  85. package/radio-list-item.js +1 -1
  86. package/radio-list-item.mjs +8 -9
  87. package/radio.js +2 -2
  88. package/radio.mjs +6 -7
  89. package/{ripple-handlers-8883e893.mjs → ripple-handlers-0d9ad7c2.mjs} +2 -2
  90. package/{ripple-handlers-9fb4a31a.js → ripple-handlers-5d5b21db.js} +1 -1
  91. package/select.js +2 -2
  92. package/select.mjs +10 -11
  93. package/side-sheet.js +1 -1
  94. package/side-sheet.mjs +2 -3
  95. package/slider-range.js +1 -1
  96. package/slider-range.mjs +6 -7
  97. package/slider.js +1 -1
  98. package/slider.mjs +11 -12
  99. package/snackbar.js +18 -14
  100. package/snackbar.mjs +159 -88
  101. package/status-dialog.js +1 -1
  102. package/status-dialog.mjs +6 -7
  103. package/status-header.js +1 -1
  104. package/status-header.mjs +3 -4
  105. package/{style-map-a135c6ab.js → style-map-88d2563f.js} +2 -2
  106. package/{style-map-e7ec6d41.mjs → style-map-bc3ed3e0.mjs} +1 -1
  107. package/switch.js +1 -1
  108. package/switch.mjs +5 -6
  109. package/tab-bar.js +2 -2
  110. package/tab-bar.mjs +6 -7
  111. package/tab.js +1 -1
  112. package/tab.mjs +8 -9
  113. package/text-lockup.js +1 -1
  114. package/text-lockup.mjs +3 -4
  115. package/textarea.js +1 -1
  116. package/textarea.mjs +5 -6
  117. package/{textfield-93cfcf3c.mjs → textfield-69844234.mjs} +8 -9
  118. package/{textfield-0645375b.js → textfield-a064a2b4.js} +16 -16
  119. package/textfield.js +1 -1
  120. package/textfield.mjs +5 -6
  121. package/toolbar.js +1 -1
  122. package/toolbar.mjs +4 -5
  123. package/top-app-bar-fixed.js +1 -1
  124. package/top-app-bar-fixed.mjs +4 -5
  125. package/top-app-bar.js +1 -1
  126. package/top-app-bar.mjs +7 -8
  127. package/tree-list-item.js +1 -1
  128. package/tree-list-item.mjs +3 -4
  129. package/async-directive-4a34f75e.js +0 -5
  130. package/async-directive-99a01ec7.mjs +0 -78
  131. package/cell/cell.d.ts +0 -65
  132. package/cell/cell.d.ts.map +0 -1
  133. package/cell.js +0 -29
  134. package/cell.mjs +0 -147
  135. package/class-map-0a4c6ca9.js +0 -5
  136. package/class-map-6e504a9a.mjs +0 -38
  137. package/code-editor/code-editor.d.ts +0 -73
  138. package/code-editor/code-editor.d.ts.map +0 -1
  139. package/code-editor-3a09cbf1.js +0 -732
  140. package/code-editor-ce557bd5.mjs +0 -61376
  141. package/code-editor.js +0 -1
  142. package/code-editor.mjs +0 -10
  143. package/cpp-642b10c4.mjs +0 -387
  144. package/cpp-7eec3311.js +0 -6
  145. package/csharp-32862cd2.js +0 -6
  146. package/csharp-d987ddad.mjs +0 -320
  147. package/css-5dd354ac.mjs +0 -186
  148. package/css-9be95551.js +0 -8
  149. package/dart-031264ea.js +0 -6
  150. package/dart-5d209f63.mjs +0 -270
  151. package/directive-1186bc23.js +0 -5
  152. package/directive-daf4e9b6.mjs +0 -27
  153. package/go-46e3b371.mjs +0 -208
  154. package/go-cdd943fd.js +0 -6
  155. package/html-4fffc46e.js +0 -6
  156. package/html-783f1e7c.mjs +0 -286
  157. package/java-32d7b433.js +0 -6
  158. package/java-cd017f60.mjs +0 -221
  159. package/javascript-4d09cd3c.mjs +0 -80
  160. package/javascript-90bb18e6.js +0 -6
  161. package/kotlin-4b9019e1.js +0 -6
  162. package/kotlin-c6e52a56.mjs +0 -245
  163. package/lua-b46719a9.js +0 -6
  164. package/lua-f159160b.mjs +0 -157
  165. package/markdown-9b448c46.mjs +0 -202
  166. package/markdown-eae8e3ba.js +0 -6
  167. package/notebook/notebook.d.ts +0 -87
  168. package/notebook/notebook.d.ts.map +0 -1
  169. package/notebook.js +0 -121
  170. package/notebook.mjs +0 -3447
  171. package/php-987b9d87.mjs +0 -471
  172. package/php-a6dcde52.js +0 -6
  173. package/python-562f8e9b.mjs +0 -264
  174. package/python-af3aad7d.js +0 -6
  175. package/r-42c6f0aa.js +0 -6
  176. package/r-630f5d6b.mjs +0 -245
  177. package/rust-87887495.js +0 -6
  178. package/rust-97f8f6e1.mjs +0 -337
  179. package/scala-c68c650c.mjs +0 -353
  180. package/scala-e8b7bd42.js +0 -6
  181. package/shell-09452d42.mjs +0 -224
  182. package/shell-43cfbe7d.js +0 -6
  183. package/sql-63ec8e76.mjs +0 -818
  184. package/sql-faf05577.js +0 -6
  185. package/style.css +0 -1
  186. package/swift-724ff2a3.js +0 -8
  187. package/swift-abdf1835.mjs +0 -315
  188. package/typescript-76d039b3.js +0 -6
  189. package/typescript-a2a5d6b2.mjs +0 -332
  190. package/xml-89571455.mjs +0 -100
  191. package/xml-e66929d0.js +0 -6
  192. package/yaml-11a91e71.js +0 -6
  193. package/yaml-4eccd122.mjs +0 -189
package/rust-97f8f6e1.mjs DELETED
@@ -1,337 +0,0 @@
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 = {
8
- comments: {
9
- lineComment: "//",
10
- blockComment: ["/*", "*/"]
11
- },
12
- brackets: [
13
- ["{", "}"],
14
- ["[", "]"],
15
- ["(", ")"]
16
- ],
17
- autoClosingPairs: [
18
- { open: "[", close: "]" },
19
- { open: "{", close: "}" },
20
- { open: "(", close: ")" },
21
- { open: '"', close: '"', notIn: ["string"] }
22
- ],
23
- surroundingPairs: [
24
- { open: "{", close: "}" },
25
- { open: "[", close: "]" },
26
- { open: "(", close: ")" },
27
- { open: '"', close: '"' },
28
- { open: "'", close: "'" }
29
- ],
30
- folding: {
31
- markers: {
32
- start: new RegExp("^\\s*#pragma\\s+region\\b"),
33
- end: new RegExp("^\\s*#pragma\\s+endregion\\b")
34
- }
35
- }
36
- }, t = {
37
- tokenPostfix: ".rust",
38
- defaultToken: "invalid",
39
- keywords: [
40
- "as",
41
- "async",
42
- "await",
43
- "box",
44
- "break",
45
- "const",
46
- "continue",
47
- "crate",
48
- "dyn",
49
- "else",
50
- "enum",
51
- "extern",
52
- "false",
53
- "fn",
54
- "for",
55
- "if",
56
- "impl",
57
- "in",
58
- "let",
59
- "loop",
60
- "match",
61
- "mod",
62
- "move",
63
- "mut",
64
- "pub",
65
- "ref",
66
- "return",
67
- "self",
68
- "static",
69
- "struct",
70
- "super",
71
- "trait",
72
- "true",
73
- "try",
74
- "type",
75
- "unsafe",
76
- "use",
77
- "where",
78
- "while",
79
- "catch",
80
- "default",
81
- "union",
82
- "static",
83
- "abstract",
84
- "alignof",
85
- "become",
86
- "do",
87
- "final",
88
- "macro",
89
- "offsetof",
90
- "override",
91
- "priv",
92
- "proc",
93
- "pure",
94
- "sizeof",
95
- "typeof",
96
- "unsized",
97
- "virtual",
98
- "yield"
99
- ],
100
- typeKeywords: [
101
- "Self",
102
- "m32",
103
- "m64",
104
- "m128",
105
- "f80",
106
- "f16",
107
- "f128",
108
- "int",
109
- "uint",
110
- "float",
111
- "char",
112
- "bool",
113
- "u8",
114
- "u16",
115
- "u32",
116
- "u64",
117
- "f32",
118
- "f64",
119
- "i8",
120
- "i16",
121
- "i32",
122
- "i64",
123
- "str",
124
- "Option",
125
- "Either",
126
- "c_float",
127
- "c_double",
128
- "c_void",
129
- "FILE",
130
- "fpos_t",
131
- "DIR",
132
- "dirent",
133
- "c_char",
134
- "c_schar",
135
- "c_uchar",
136
- "c_short",
137
- "c_ushort",
138
- "c_int",
139
- "c_uint",
140
- "c_long",
141
- "c_ulong",
142
- "size_t",
143
- "ptrdiff_t",
144
- "clock_t",
145
- "time_t",
146
- "c_longlong",
147
- "c_ulonglong",
148
- "intptr_t",
149
- "uintptr_t",
150
- "off_t",
151
- "dev_t",
152
- "ino_t",
153
- "pid_t",
154
- "mode_t",
155
- "ssize_t"
156
- ],
157
- constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"],
158
- supportConstants: [
159
- "EXIT_FAILURE",
160
- "EXIT_SUCCESS",
161
- "RAND_MAX",
162
- "EOF",
163
- "SEEK_SET",
164
- "SEEK_CUR",
165
- "SEEK_END",
166
- "_IOFBF",
167
- "_IONBF",
168
- "_IOLBF",
169
- "BUFSIZ",
170
- "FOPEN_MAX",
171
- "FILENAME_MAX",
172
- "L_tmpnam",
173
- "TMP_MAX",
174
- "O_RDONLY",
175
- "O_WRONLY",
176
- "O_RDWR",
177
- "O_APPEND",
178
- "O_CREAT",
179
- "O_EXCL",
180
- "O_TRUNC",
181
- "S_IFIFO",
182
- "S_IFCHR",
183
- "S_IFBLK",
184
- "S_IFDIR",
185
- "S_IFREG",
186
- "S_IFMT",
187
- "S_IEXEC",
188
- "S_IWRITE",
189
- "S_IREAD",
190
- "S_IRWXU",
191
- "S_IXUSR",
192
- "S_IWUSR",
193
- "S_IRUSR",
194
- "F_OK",
195
- "R_OK",
196
- "W_OK",
197
- "X_OK",
198
- "STDIN_FILENO",
199
- "STDOUT_FILENO",
200
- "STDERR_FILENO"
201
- ],
202
- supportMacros: [
203
- "format!",
204
- "print!",
205
- "println!",
206
- "panic!",
207
- "format_args!",
208
- "unreachable!",
209
- "write!",
210
- "writeln!"
211
- ],
212
- operators: [
213
- "!",
214
- "!=",
215
- "%",
216
- "%=",
217
- "&",
218
- "&=",
219
- "&&",
220
- "*",
221
- "*=",
222
- "+",
223
- "+=",
224
- "-",
225
- "-=",
226
- "->",
227
- ".",
228
- "..",
229
- "...",
230
- "/",
231
- "/=",
232
- ":",
233
- ";",
234
- "<<",
235
- "<<=",
236
- "<",
237
- "<=",
238
- "=",
239
- "==",
240
- "=>",
241
- ">",
242
- ">=",
243
- ">>",
244
- ">>=",
245
- "@",
246
- "^",
247
- "^=",
248
- "|",
249
- "|=",
250
- "||",
251
- "_",
252
- "?",
253
- "#"
254
- ],
255
- escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
256
- delimiters: /[,]/,
257
- symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
258
- intSuffixes: /[iu](8|16|32|64|128|size)/,
259
- floatSuffixes: /f(32|64)/,
260
- tokenizer: {
261
- root: [
262
- [/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
263
- [
264
- /[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
265
- {
266
- cases: {
267
- "@typeKeywords": "keyword.type",
268
- "@keywords": "keyword",
269
- "@supportConstants": "keyword",
270
- "@supportMacros": "keyword",
271
- "@constants": "keyword",
272
- "@default": "identifier"
273
- }
274
- }
275
- ],
276
- [/\$/, "identifier"],
277
- [/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
278
- [/'(\S|@escapes)'/, "string.byteliteral"],
279
- [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
280
- { include: "@numbers" },
281
- { include: "@whitespace" },
282
- [
283
- /@delimiters/,
284
- {
285
- cases: {
286
- "@keywords": "keyword",
287
- "@default": "delimiter"
288
- }
289
- }
290
- ],
291
- [/[{}()\[\]<>]/, "@brackets"],
292
- [/@symbols/, { cases: { "@operators": "operator", "@default": "" } }]
293
- ],
294
- whitespace: [
295
- [/[ \t\r\n]+/, "white"],
296
- [/\/\*/, "comment", "@comment"],
297
- [/\/\/.*$/, "comment"]
298
- ],
299
- comment: [
300
- [/[^\/*]+/, "comment"],
301
- [/\/\*/, "comment", "@push"],
302
- ["\\*/", "comment", "@pop"],
303
- [/[\/*]/, "comment"]
304
- ],
305
- string: [
306
- [/[^\\"]+/, "string"],
307
- [/@escapes/, "string.escape"],
308
- [/\\./, "string.escape.invalid"],
309
- [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
310
- ],
311
- stringraw: [
312
- [/[^"#]+/, { token: "string" }],
313
- [
314
- /"(#*)/,
315
- {
316
- cases: {
317
- "$1==$S2": { token: "string.quote", bracket: "@close", next: "@pop" },
318
- "@default": { token: "string" }
319
- }
320
- }
321
- ],
322
- [/["#]/, { token: "string" }]
323
- ],
324
- numbers: [
325
- [/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
326
- [/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
327
- [/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
328
- [/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
329
- [/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
330
- [/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
331
- ]
332
- }
333
- };
334
- export {
335
- e as conf,
336
- t as language
337
- };
@@ -1,353 +0,0 @@
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 = {
8
- wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
9
- comments: {
10
- lineComment: "//",
11
- blockComment: ["/*", "*/"]
12
- },
13
- brackets: [
14
- ["{", "}"],
15
- ["[", "]"],
16
- ["(", ")"]
17
- ],
18
- autoClosingPairs: [
19
- { open: "{", close: "}" },
20
- { open: "[", close: "]" },
21
- { open: "(", close: ")" },
22
- { open: '"', close: '"' },
23
- { open: "'", close: "'" }
24
- ],
25
- surroundingPairs: [
26
- { open: "{", close: "}" },
27
- { open: "[", close: "]" },
28
- { open: "(", close: ")" },
29
- { open: '"', close: '"' },
30
- { open: "'", close: "'" }
31
- ],
32
- folding: {
33
- markers: {
34
- start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
35
- end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
36
- }
37
- }
38
- }, t = {
39
- tokenPostfix: ".scala",
40
- keywords: [
41
- "asInstanceOf",
42
- "catch",
43
- "class",
44
- "classOf",
45
- "def",
46
- "do",
47
- "else",
48
- "extends",
49
- "finally",
50
- "for",
51
- "foreach",
52
- "forSome",
53
- "if",
54
- "import",
55
- "isInstanceOf",
56
- "macro",
57
- "match",
58
- "new",
59
- "object",
60
- "package",
61
- "return",
62
- "throw",
63
- "trait",
64
- "try",
65
- "type",
66
- "until",
67
- "val",
68
- "var",
69
- "while",
70
- "with",
71
- "yield",
72
- "given",
73
- "enum",
74
- "then"
75
- ],
76
- softKeywords: ["as", "export", "extension", "end", "derives", "on"],
77
- constants: ["true", "false", "null", "this", "super"],
78
- modifiers: [
79
- "abstract",
80
- "final",
81
- "implicit",
82
- "lazy",
83
- "override",
84
- "private",
85
- "protected",
86
- "sealed"
87
- ],
88
- softModifiers: ["inline", "opaque", "open", "transparent", "using"],
89
- name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
90
- type: /(?:[A-Z][\w$]*)/,
91
- symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
92
- digits: /\d+(_+\d+)*/,
93
- hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
94
- escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
95
- fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
96
- tokenizer: {
97
- root: [
98
- [/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
99
- [/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
100
- [/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
101
- [/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
102
- [/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
103
- [/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
104
- [/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
105
- [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
106
- [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
107
- [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
108
- [/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
109
- [/(@digits)[fFdD]/, "number.float", "@allowMethod"],
110
- [/(@digits)[lL]?/, "number", "@allowMethod"],
111
- [/\b_\*/, "key"],
112
- [/\b(_)\b/, "keyword", "@allowMethod"],
113
- [/\bimport\b/, "keyword", "@import"],
114
- [/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
115
- [/\bcase\b/, "keyword", "@case"],
116
- [/\bva[lr]\b/, "keyword", "@vardef"],
117
- [
118
- /\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
119
- ["keyword", "white", "identifier"]
120
- ],
121
- [/@name(?=[ \t]*:(?!:))/, "variable"],
122
- [/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
123
- [/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
124
- [
125
- /@name/,
126
- {
127
- cases: {
128
- "@keywords": "keyword",
129
- "@softKeywords": "keyword",
130
- "@modifiers": "keyword.modifier",
131
- "@softModifiers": "keyword.modifier",
132
- "@constants": {
133
- token: "constant",
134
- next: "@allowMethod"
135
- },
136
- "@default": {
137
- token: "identifier",
138
- next: "@allowMethod"
139
- }
140
- }
141
- }
142
- ],
143
- [/@type/, "type", "@allowMethod"],
144
- { include: "@whitespace" },
145
- [/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
146
- [/[{(]/, "@brackets"],
147
- [/[})]/, "@brackets", "@allowMethod"],
148
- [/\[/, "operator.square"],
149
- [/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
150
- [/]/, "operator.square"],
151
- [/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
152
- [/@symbols/, "operator"],
153
- [/[;,\.]/, "delimiter"],
154
- [/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
155
- [/'[^\\']'/, "string", "@allowMethod"],
156
- [/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
157
- [/'/, "string.invalid"]
158
- ],
159
- import: [
160
- [/;/, "delimiter", "@pop"],
161
- [/^|$/, "", "@pop"],
162
- [/[ \t]+/, "white"],
163
- [/[\n\r]+/, "white", "@pop"],
164
- [/\/\*/, "comment", "@comment"],
165
- [/@name|@type/, "type"],
166
- [/[(){}]/, "@brackets"],
167
- [/[[\]]/, "operator.square"],
168
- [/[\.,]/, "delimiter"]
169
- ],
170
- allowMethod: [
171
- [/^|$/, "", "@pop"],
172
- [/[ \t]+/, "white"],
173
- [/[\n\r]+/, "white", "@pop"],
174
- [/\/\*/, "comment", "@comment"],
175
- [/(?==>[\s\w([{])/, "keyword", "@pop"],
176
- [
177
- /(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
178
- {
179
- cases: {
180
- "@keywords": { token: "keyword", next: "@pop" },
181
- "->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
182
- "@default": { token: "@rematch", next: "@pop" }
183
- }
184
- }
185
- ],
186
- ["", "", "@pop"]
187
- ],
188
- comment: [
189
- [/[^\/*]+/, "comment"],
190
- [/\/\*/, "comment", "@push"],
191
- [/\*\//, "comment", "@pop"],
192
- [/[\/*]/, "comment"]
193
- ],
194
- case: [
195
- [/\b_\*/, "key"],
196
- [/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
197
- [/\bif\b|=>/, "keyword", "@pop"],
198
- [/`[^`]+`/, "identifier", "@allowMethod"],
199
- [/@name/, "variable", "@allowMethod"],
200
- [/:::?|\||@(?![a-z_$])/, "keyword"],
201
- { include: "@root" }
202
- ],
203
- vardef: [
204
- [/\b_\*/, "key"],
205
- [/\b(_|true|false|null|this|super)\b/, "keyword"],
206
- [/@name/, "variable"],
207
- [/:::?|\||@(?![a-z_$])/, "keyword"],
208
- [/=|:(?!:)/, "operator", "@pop"],
209
- [/$/, "white", "@pop"],
210
- { include: "@root" }
211
- ],
212
- string: [
213
- [/[^\\"\n\r]+/, "string"],
214
- [/@escapes/, "string.escape"],
215
- [/\\./, "string.escape.invalid"],
216
- [
217
- /"/,
218
- {
219
- token: "string.quote",
220
- bracket: "@close",
221
- switchTo: "@allowMethod"
222
- }
223
- ]
224
- ],
225
- stringt: [
226
- [/[^\\"\n\r]+/, "string"],
227
- [/@escapes/, "string.escape"],
228
- [/\\./, "string.escape.invalid"],
229
- [/"(?=""")/, "string"],
230
- [
231
- /"""/,
232
- {
233
- token: "string.quote",
234
- bracket: "@close",
235
- switchTo: "@allowMethod"
236
- }
237
- ],
238
- [/"/, "string"]
239
- ],
240
- fstring: [
241
- [/@escapes/, "string.escape"],
242
- [
243
- /"/,
244
- {
245
- token: "string.quote",
246
- bracket: "@close",
247
- switchTo: "@allowMethod"
248
- }
249
- ],
250
- [/\$\$/, "string"],
251
- [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
252
- [/\$\{/, "operator", "@interp"],
253
- [/%%/, "string"],
254
- [
255
- /(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
256
- ["metatag", "keyword.modifier", "number", "metatag"]
257
- ],
258
- [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
259
- [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
260
- [/(%)(@fstring_conv)/, ["metatag", "metatag"]],
261
- [/./, "string"]
262
- ],
263
- fstringt: [
264
- [/@escapes/, "string.escape"],
265
- [/"(?=""")/, "string"],
266
- [
267
- /"""/,
268
- {
269
- token: "string.quote",
270
- bracket: "@close",
271
- switchTo: "@allowMethod"
272
- }
273
- ],
274
- [/\$\$/, "string"],
275
- [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
276
- [/\$\{/, "operator", "@interp"],
277
- [/%%/, "string"],
278
- [
279
- /(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
280
- ["metatag", "keyword.modifier", "number", "metatag"]
281
- ],
282
- [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
283
- [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
284
- [/(%)(@fstring_conv)/, ["metatag", "metatag"]],
285
- [/./, "string"]
286
- ],
287
- sstring: [
288
- [/@escapes/, "string.escape"],
289
- [
290
- /"/,
291
- {
292
- token: "string.quote",
293
- bracket: "@close",
294
- switchTo: "@allowMethod"
295
- }
296
- ],
297
- [/\$\$/, "string"],
298
- [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
299
- [/\$\{/, "operator", "@interp"],
300
- [/./, "string"]
301
- ],
302
- sstringt: [
303
- [/@escapes/, "string.escape"],
304
- [/"(?=""")/, "string"],
305
- [
306
- /"""/,
307
- {
308
- token: "string.quote",
309
- bracket: "@close",
310
- switchTo: "@allowMethod"
311
- }
312
- ],
313
- [/\$\$/, "string"],
314
- [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
315
- [/\$\{/, "operator", "@interp"],
316
- [/./, "string"]
317
- ],
318
- interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
319
- rawstring: [
320
- [/[^"]/, "string"],
321
- [
322
- /"/,
323
- {
324
- token: "string.quote",
325
- bracket: "@close",
326
- switchTo: "@allowMethod"
327
- }
328
- ]
329
- ],
330
- rawstringt: [
331
- [/[^"]/, "string"],
332
- [/"(?=""")/, "string"],
333
- [
334
- /"""/,
335
- {
336
- token: "string.quote",
337
- bracket: "@close",
338
- switchTo: "@allowMethod"
339
- }
340
- ],
341
- [/"/, "string"]
342
- ],
343
- whitespace: [
344
- [/[ \t\r\n]+/, "white"],
345
- [/\/\*/, "comment", "@comment"],
346
- [/\/\/.*$/, "comment"]
347
- ]
348
- }
349
- };
350
- export {
351
- e as conf,
352
- t as language
353
- };