Compare commits
955
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f027ef0b97 | ||
|
|
ccd198922c | ||
|
|
6345e5e4a5 | ||
|
|
dfdac7ce10 | ||
|
|
19e540d6f2 | ||
|
|
67bd1154e9 | ||
|
|
5fbfbf3253 | ||
|
|
f4eb82c3ec | ||
|
|
715db7e7d6 | ||
|
|
77295736ec | ||
|
|
c64618ed19 | ||
|
|
0acd6881ae | ||
|
|
ce52367b17 | ||
|
|
48fedf313f | ||
|
|
0691feb372 | ||
|
|
3e12763937 | ||
|
|
38fb071055 | ||
|
|
88164bf248 | ||
|
|
b5df150841 | ||
|
|
71607a9137 | ||
|
|
d7c6f2b6c0 | ||
|
|
59b8402117 | ||
|
|
6907be3393 | ||
|
|
c787f94850 | ||
|
|
d210c9e227 | ||
|
|
bf2c98d71c | ||
|
|
813e2d18e2 | ||
|
|
e326e7e47f | ||
|
|
71cb506986 | ||
|
|
ecbb537026 | ||
|
|
50a8e868ef | ||
|
|
8e763724dd | ||
|
|
562290a729 | ||
|
|
99f37455db | ||
|
|
539562eb1e | ||
|
|
88d520c058 | ||
|
|
b46a97c660 | ||
|
|
5266610aff | ||
|
|
b23bb5841b | ||
|
|
74379b9a7a | ||
|
|
a838af4860 | ||
|
|
9488ed31de | ||
|
|
96df80ae62 | ||
|
|
516d6575f2 | ||
|
|
59e33fc6bf | ||
|
|
cc295ffe03 | ||
|
|
d00be4f26a | ||
|
|
32d0789e38 | ||
|
|
e6d49972ae | ||
|
|
cbd5a1747d | ||
|
|
9434ccdc9f | ||
|
|
0a684dcc1d | ||
|
|
b38e6c4435 | ||
|
|
1bb312d0d8 | ||
|
|
aee4e0e4f1 | ||
|
|
b5adf8e282 | ||
|
|
8327ed004a | ||
|
|
f4c5f31269 | ||
|
|
9e3281e69e | ||
|
|
844a5e57fa | ||
|
|
5d4f6c7225 | ||
|
|
3c589a4601 | ||
|
|
8b929d1dc4 | ||
|
|
a053659aa1 | ||
|
|
593d95c50d | ||
|
|
8cdcb2f593 | ||
|
|
f302052de7 | ||
|
|
236499666a | ||
|
|
f024d844e9 | ||
|
|
0fc3984eac | ||
|
|
730bbcc504 | ||
|
|
c48d333e95 | ||
|
|
5a828f5944 | ||
|
|
2e8198a882 | ||
|
|
34a455d965 | ||
|
|
570e89ca97 | ||
|
|
ce1f5356c6 | ||
|
|
eaaf53cc56 | ||
|
|
d17c1c26e9 | ||
|
|
c2353fe5b9 | ||
|
|
dff4fb0f51 | ||
|
|
9930b62373 | ||
|
|
92a980a9ae | ||
|
|
d43d50d8a7 | ||
|
|
30d75acdf4 | ||
|
|
afe1de2e33 | ||
|
|
170cf3bad9 | ||
|
|
193c13a171 | ||
|
|
190746c581 | ||
|
|
8210a37628 | ||
|
|
929fbd4bb4 | ||
|
|
e213b98858 | ||
|
|
6a3baa9145 | ||
|
|
f73e629ad2 | ||
|
|
da1f3872f4 | ||
|
|
505ad4dd5f | ||
|
|
579b3edf33 | ||
|
|
d637c539a4 | ||
|
|
ddfd58da57 | ||
|
|
72d2221e0e | ||
|
|
950101a6f8 | ||
|
|
ba509f6464 | ||
|
|
44dea7585c | ||
|
|
533f254e81 | ||
|
|
5d961af1d0 | ||
|
|
7d8b71aa79 | ||
|
|
5751052299 | ||
|
|
46bcd5543a | ||
|
|
332b9aac1b | ||
|
|
09167dfdff | ||
|
|
5cf342f9b3 | ||
|
|
d68772bd50 | ||
|
|
dec930b301 | ||
|
|
d932ae39a2 | ||
|
|
5f210afbeb | ||
|
|
688a99204c | ||
|
|
8353ea9495 | ||
|
|
e7af839443 | ||
|
|
1f4f4a94a3 | ||
|
|
b30d2995f3 | ||
|
|
206d2982b0 | ||
|
|
0efcbfb20b | ||
|
|
9aba3693f1 | ||
|
|
5494911830 | ||
|
|
8a79c81e2b | ||
|
|
b3cc9f70ff | ||
|
|
d4b0c905ac | ||
|
|
cf195b08f1 | ||
|
|
a2483c3212 | ||
|
|
04192f4c82 | ||
|
|
43daa687c2 | ||
|
|
9caa2e8994 | ||
|
|
75de5014db | ||
|
|
1265812270 | ||
|
|
891abf7383 | ||
|
|
0e23b71d67 | ||
|
|
0a19853b46 | ||
|
|
b71d876a86 | ||
|
|
c27e4d48c3 | ||
|
|
abc951703e | ||
|
|
4626d2bb32 | ||
|
|
4b9534ed4d | ||
|
|
0860484704 | ||
|
|
b84d9c8f71 | ||
|
|
4fe68eab75 | ||
|
|
ec1a9eb7e9 | ||
|
|
ace89a4f28 | ||
|
|
aadf4ec8dc | ||
|
|
7bde0beb76 | ||
|
|
356a9b55d5 | ||
|
|
f14013a729 | ||
|
|
ffdaaa3c5d | ||
|
|
d3726de7a4 | ||
|
|
30a6de665b | ||
|
|
ff3a87098a | ||
|
|
e4d4feaf65 | ||
|
|
50d1ce03ea | ||
|
|
087421ab6b | ||
|
|
7977616e1a | ||
|
|
3811f90e37 | ||
|
|
a1687b7da4 | ||
|
|
7f936e9ab5 | ||
|
|
b28fc87b0e | ||
|
|
2be4c64eaf | ||
|
|
289ad5b969 | ||
|
|
4680245695 | ||
|
|
4026a83917 | ||
|
|
d9a904f77a | ||
|
|
26eed13844 | ||
|
|
1d5ce4b2a4 | ||
|
|
1652bcfbe4 | ||
|
|
31ab44718e | ||
|
|
506f0f4133 | ||
|
|
9ff8bb54eb | ||
|
|
7c2cb42861 | ||
|
|
c0fbd2e17b | ||
|
|
4ab170dc8b | ||
|
|
96780c6b38 | ||
|
|
acf8e48336 | ||
|
|
3bba5c0ed1 | ||
|
|
2c567ada01 | ||
|
|
47f8c6aa88 | ||
|
|
314ac81046 | ||
|
|
bb1779b41c | ||
|
|
d1f5ff384c | ||
|
|
b8806bf784 | ||
|
|
ce5927c826 | ||
|
|
05f587f4b1 | ||
|
|
f126c9905b | ||
|
|
472f2f5411 | ||
|
|
abec15bfbb | ||
|
|
871a19a8c6 | ||
|
|
464a728ce4 | ||
|
|
a2084bbf42 | ||
|
|
42805e58d5 | ||
|
|
15ad228b6e | ||
|
|
eecb7ca4aa | ||
|
|
5e7143c88d | ||
|
|
36a759887a | ||
|
|
ec203ab582 | ||
|
|
7110beaca0 | ||
|
|
2314e1a85a | ||
|
|
31803eae7e | ||
|
|
15836ace17 | ||
|
|
a7095febbf | ||
|
|
b23719fbb4 | ||
|
|
c681cf60a2 | ||
|
|
bcad69e2d0 | ||
|
|
167093d64d | ||
|
|
b9fe9f3df1 | ||
|
|
dfe32b93c0 | ||
|
|
f76c89ff1f | ||
|
|
07f28f2baf | ||
|
|
814869d4b6 | ||
|
|
9e2b03c1d8 | ||
|
|
7e1957ca13 | ||
|
|
687ac6428b | ||
|
|
45c5958b56 | ||
|
|
15a90149be | ||
|
|
649bfee23c | ||
|
|
113c50e255 | ||
|
|
4804046d9f | ||
|
|
5a8f28b229 | ||
|
|
0e38b66461 | ||
|
|
5ea4267768 | ||
|
|
30651c41de | ||
|
|
2868870065 | ||
|
|
4ed439b3ad | ||
|
|
d2673d5326 | ||
|
|
a14c9a7e9d | ||
|
|
2ecd56fe8a | ||
|
|
41c1ed8c5d | ||
|
|
efdfba2812 | ||
|
|
eb33a59ac2 | ||
|
|
89c64ae0cb | ||
|
|
e094efabf6 | ||
|
|
2b757cc433 | ||
|
|
b890622543 | ||
|
|
cf3457a983 | ||
|
|
40b21f05de | ||
|
|
91fe1911fb | ||
|
|
6fc2968901 | ||
|
|
61fa0bda71 | ||
|
|
55149fa616 | ||
|
|
0dc8582bd6 | ||
|
|
7517614429 | ||
|
|
1cc55e210a | ||
|
|
1f0e6e7a36 | ||
|
|
548f3206ad | ||
|
|
782cf66274 | ||
|
|
21049c7fff | ||
|
|
6b0183fbe9 | ||
|
|
94c4ea3322 | ||
|
|
9ba0b53a10 | ||
|
|
86be314d2c | ||
|
|
07a2bb8ca1 | ||
|
|
d683a80f40 | ||
|
|
6d47808298 | ||
|
|
f9d1c55f25 | ||
|
|
d9b475a82f | ||
|
|
0b938cefa8 | ||
|
|
2637621671 | ||
|
|
44281abb4e | ||
|
|
007e6f1896 | ||
|
|
479fe86ca5 | ||
|
|
deb449cf4f | ||
|
|
ebd7a9cdb4 | ||
|
|
5e5c869ada | ||
|
|
6532a9a947 | ||
|
|
36c16781b5 | ||
|
|
2c4b8246c8 | ||
|
|
cacf434709 | ||
|
|
fa8a261fed | ||
|
|
dab9761e6e | ||
|
|
c32d5e565d | ||
|
|
2328294f1b | ||
|
|
7abb08cdff | ||
|
|
570c2f4c8b | ||
|
|
8c9e29c3da | ||
|
|
5a806c0d56 | ||
|
|
740c9c827e | ||
|
|
2e8ac60684 | ||
|
|
339c023447 | ||
|
|
ca9d6faaed | ||
|
|
40a0c22d56 | ||
|
|
129c296121 | ||
|
|
7491d8fd99 | ||
|
|
3db6543024 | ||
|
|
26afd28a85 | ||
|
|
fbb93ab813 | ||
|
|
2a24199756 | ||
|
|
52afad3e97 | ||
|
|
1810dad5f9 | ||
|
|
b40506bd9f | ||
|
|
dc9cff4a2d | ||
|
|
b4f3e42da3 | ||
|
|
c7e8e8625f | ||
|
|
5e94ea222c | ||
|
|
8e6898b5d5 | ||
|
|
7d1c3a153f | ||
|
|
7641b2e25c | ||
|
|
f9b92d6026 | ||
|
|
952791cb5f | ||
|
|
d4110403e6 | ||
|
|
533970d83f | ||
|
|
bcd6bb5f11 | ||
|
|
d40d476ea1 | ||
|
|
90bc10577e | ||
|
|
1e5a516679 | ||
|
|
c213366181 | ||
|
|
6d0919fcda | ||
|
|
5818db68f7 | ||
|
|
8a0a2c83eb | ||
|
|
2c516f395e | ||
|
|
7738e3ee48 | ||
|
|
f4fd865c81 | ||
|
|
8bbfa59a32 | ||
|
|
70ed3a4700 | ||
|
|
0fd98ce271 | ||
|
|
4e37ea9c8f | ||
|
|
47bf6b8867 | ||
|
|
c3ed8ae636 | ||
|
|
cd42d0dee0 | ||
|
|
dc47b749f2 | ||
|
|
c0215f0e04 | ||
|
|
644faf8700 | ||
|
|
830ecaa8af | ||
|
|
17a1ce6548 | ||
|
|
a5cf1a1cd6 | ||
|
|
23ffef7843 | ||
|
|
ec23d055cc | ||
|
|
0897aca3b9 | ||
|
|
05bcfb13ca | ||
|
|
3402c86bf2 | ||
|
|
5a307c3547 | ||
|
|
8c46f9a892 | ||
|
|
48f5853d03 | ||
|
|
8b39836353 | ||
|
|
3c6b14cee3 | ||
|
|
015e112e6b | ||
|
|
cb6bf6570d | ||
|
|
8ee71a6f08 | ||
|
|
7ad1c2098c | ||
|
|
2c0d7db7cc | ||
|
|
5ce24780c0 | ||
|
|
ad1cec76c7 | ||
|
|
bdd6ca2c3d | ||
|
|
9f05ec4460 | ||
|
|
6701dd2dd7 | ||
|
|
5bcb495569 | ||
|
|
4bdb5a0750 | ||
|
|
51c9488d0e | ||
|
|
65a1fa72a0 | ||
|
|
abc63488a1 | ||
|
|
a49819e120 | ||
|
|
980706b487 | ||
|
|
7fc789ab0f | ||
|
|
f245180882 | ||
|
|
bb7b4d3f78 | ||
|
|
d617524172 | ||
|
|
834db65ecd | ||
|
|
4238f1285c | ||
|
|
bba0ae4ba1 | ||
|
|
f612a5c703 | ||
|
|
0b6dbf6857 | ||
|
|
1358185692 | ||
|
|
b8d4ada693 | ||
|
|
b34942355f | ||
|
|
c8e217d0c9 | ||
|
|
536db58698 | ||
|
|
d6d987e962 | ||
|
|
4ae314c5c0 | ||
|
|
6868b0d761 | ||
|
|
0dd010336a | ||
|
|
d7e7121666 | ||
|
|
bfa35ca86e | ||
|
|
d7a6ac2aa7 | ||
|
|
3f843f29bf | ||
|
|
bcb8031c8f | ||
|
|
b60718a18e | ||
|
|
db5ce6b74b | ||
|
|
a1a085e526 | ||
|
|
6675267d45 | ||
|
|
00bdd4500e | ||
|
|
7a04384b7d | ||
|
|
ea0e8b9883 | ||
|
|
7ef1f1325b | ||
|
|
3b5af96ab0 | ||
|
|
3a4c437536 | ||
|
|
4de2c97fbe | ||
|
|
dcaa313c0b | ||
|
|
2f7b0973fd | ||
|
|
354ae063d7 | ||
|
|
8d727e5cac | ||
|
|
8957627cfc | ||
|
|
2c31be0b02 | ||
|
|
626a600dae | ||
|
|
045ab4df22 | ||
|
|
8956201dab | ||
|
|
0f63e777ae | ||
|
|
64a2fd8843 | ||
|
|
d40c8ee085 | ||
|
|
61bafa4836 | ||
|
|
eeadbfdaa2 | ||
|
|
32f3832565 | ||
|
|
8ab28182d7 | ||
|
|
81137e058c | ||
|
|
c9fdba6cd3 | ||
|
|
9318bde5cf | ||
|
|
33fd537826 | ||
|
|
5af4466e6f | ||
|
|
4aa4641c6a | ||
|
|
b001e6d2a6 | ||
|
|
7812d9c241 | ||
|
|
e7e4d7cf88 | ||
|
|
863c3ea717 | ||
|
|
86b25a272f | ||
|
|
a7428ed0e5 | ||
|
|
27f56d309a | ||
|
|
19a6190b56 | ||
|
|
c5348e9a81 | ||
|
|
7983b5d94c | ||
|
|
ff48d906ae | ||
|
|
ae2880c8a2 | ||
|
|
ca07ed764d | ||
|
|
76a70be939 | ||
|
|
56cd1b5a78 | ||
|
|
3b63e9a9aa | ||
|
|
b73afb400b | ||
|
|
a1b01cae2c | ||
|
|
64b213aad9 | ||
|
|
ffe260893d | ||
|
|
166d08532b | ||
|
|
a67481a4e7 | ||
|
|
b7f8b8aee3 | ||
|
|
b4814d7b13 | ||
|
|
45b1c9f32c | ||
|
|
660e4c6bf1 | ||
|
|
041ec91c6b | ||
|
|
2acde71f37 | ||
|
|
73fc573a2d | ||
|
|
d5a433bcdc | ||
|
|
c5de0dca9f | ||
|
|
76aef33868 | ||
|
|
f50d202fdf | ||
|
|
9403e617c1 | ||
|
|
095767ad21 | ||
|
|
0493b744e7 | ||
|
|
0d15a2e487 | ||
|
|
01efb70cf3 | ||
|
|
57f3288de3 | ||
|
|
eaa84ee5d6 | ||
|
|
f1f028737a | ||
|
|
4428038b66 | ||
|
|
a230130db5 | ||
|
|
f3681b582d | ||
|
|
dec0c58092 | ||
|
|
0578294579 | ||
|
|
fc47fcf75b | ||
|
|
bceca50b0e | ||
|
|
d062dd7132 | ||
|
|
57bb0fa248 | ||
|
|
bcb8a948a5 | ||
|
|
81589e5d98 | ||
|
|
6becf69630 | ||
|
|
1ee1701530 | ||
|
|
0828d4393e | ||
|
|
1777df6ab4 | ||
|
|
e9a982d813 | ||
|
|
8c0aaa94a4 | ||
|
|
bf8afc0c13 | ||
|
|
9c315b2d0d | ||
|
|
d0a0c0a82d | ||
|
|
6c44a7218b | ||
|
|
01162adbd1 | ||
|
|
8e304d2568 | ||
|
|
1af139ce23 | ||
|
|
18fad37944 | ||
|
|
0dc04419c1 | ||
|
|
1dfa32c6e5 | ||
|
|
c3b055b235 | ||
|
|
63e45c9120 | ||
|
|
5d3e7fbbf0 | ||
|
|
f9e6635d53 | ||
|
|
61ce370074 | ||
|
|
a6209977b1 | ||
|
|
7c693363ae | ||
|
|
23091491ba | ||
|
|
540df1f96f | ||
|
|
0d40be232f | ||
|
|
df2e097007 | ||
|
|
be83fa2e08 | ||
|
|
19c0ddca94 | ||
|
|
3533564c00 | ||
|
|
4585fd2994 | ||
|
|
425bd40805 | ||
|
|
411f7e9d70 | ||
|
|
79850eccef | ||
|
|
7792d26d53 | ||
|
|
3a8bc1d5ea | ||
|
|
7309aa6c42 | ||
|
|
d8d994581f | ||
|
|
b3537d5dbe | ||
|
|
fdcb1b7f1b | ||
|
|
a2b212f6e4 | ||
|
|
282d039076 | ||
|
|
030df21e4d | ||
|
|
cb2806b572 | ||
|
|
f287a643ce | ||
|
|
cd8894a27b | ||
|
|
13d1a6099a | ||
|
|
0d7ea7f4f3 | ||
|
|
39cdaff57b | ||
|
|
31ae188af3 | ||
|
|
8cde5eb23e | ||
|
|
7400507689 | ||
|
|
3bd1ea8c2e | ||
|
|
ef9395fd0e | ||
|
|
f5503f88a7 | ||
|
|
74d47a38b1 | ||
|
|
f2606d7341 | ||
|
|
1cc3478512 | ||
|
|
5e6231e3f9 | ||
|
|
775c5765a3 | ||
|
|
f05ccf497d | ||
|
|
5472528ce0 | ||
|
|
2b358ccd80 | ||
|
|
39b2ebde32 | ||
|
|
e8fad2b91c | ||
|
|
f337d16caf | ||
|
|
5773558e84 | ||
|
|
8fe4b7f536 | ||
|
|
765ed2f012 | ||
|
|
63c23b9e0b | ||
|
|
0288392a61 | ||
|
|
21072d343c | ||
|
|
9801dd606d | ||
|
|
b762d1a44a | ||
|
|
1324242337 | ||
|
|
af64307067 | ||
|
|
be6931d0ca | ||
|
|
a907674539 | ||
|
|
fbe2f127b8 | ||
|
|
81a5181877 | ||
|
|
3848f9d618 | ||
|
|
4f52a37e1d | ||
|
|
6c8c0f20c8 | ||
|
|
570d5c79a8 | ||
|
|
5548625536 | ||
|
|
bb2f5b46a8 | ||
|
|
559feacae0 | ||
|
|
ecc514816c | ||
|
|
8d2d6a83ae | ||
|
|
9ca183e654 | ||
|
|
f65dba35c4 | ||
|
|
65a1e067ab | ||
|
|
14bfbb1607 | ||
|
|
49a812c43f | ||
|
|
45010e17d2 | ||
|
|
60f553f9eb | ||
|
|
cdf9ccd3c9 | ||
|
|
566c696be8 | ||
|
|
abde98bd5f | ||
|
|
5c9afbc1ed | ||
|
|
cec1dc4df9 | ||
|
|
1096d10cb4 | ||
|
|
d5ecf60c84 | ||
|
|
4d48a14100 | ||
|
|
d751945e94 | ||
|
|
aa74eaff95 | ||
|
|
35bf065120 | ||
|
|
0604c27b56 | ||
|
|
956d5d0684 | ||
|
|
4cba8bdb72 | ||
|
|
09f4b4f35e | ||
|
|
c751fc3c01 | ||
|
|
65ab28d03b | ||
|
|
f4d6ca8c92 | ||
|
|
86953aadc7 | ||
|
|
876b419c04 | ||
|
|
8bb611c50c | ||
|
|
13286ff4d1 | ||
|
|
88f9c3b6ea | ||
|
|
29ffa1a0a4 | ||
|
|
103f02bb90 | ||
|
|
a6db07a4c1 | ||
|
|
8d8ae6a366 | ||
|
|
e81e09ab23 | ||
|
|
bf8160e31e | ||
|
|
5961c7d451 | ||
|
|
cc3f4fabc2 | ||
|
|
aed37c19c7 | ||
|
|
43bac28b30 | ||
|
|
ed2057312a | ||
|
|
fdff260f7f | ||
|
|
f5878feaa5 | ||
|
|
aef1afe3f4 | ||
|
|
f2cf3e8111 | ||
|
|
32351ab24e | ||
|
|
bd3b39a2c5 | ||
|
|
e286fb2fb7 | ||
|
|
3097161aa8 | ||
|
|
b222e37457 | ||
|
|
0d5240dfef | ||
|
|
09c3fbb13c | ||
|
|
dd66ed095b | ||
|
|
d7308f019b | ||
|
|
634403dac7 | ||
|
|
3bfc932ff7 | ||
|
|
16e22b52a2 | ||
|
|
7773252302 | ||
|
|
d59859abc6 | ||
|
|
2702f7b045 | ||
|
|
d392347bc0 | ||
|
|
38aecc2a3e | ||
|
|
a549c4021d | ||
|
|
d4d7fd351b | ||
|
|
d5548805d0 | ||
|
|
708effa0b0 | ||
|
|
afeb08fa39 | ||
|
|
3df6b6d3f6 | ||
|
|
298ca8cc6a | ||
|
|
6c06c72614 | ||
|
|
b431571662 | ||
|
|
4d6a2478ab | ||
|
|
1064f3ce81 | ||
|
|
8db133e240 | ||
|
|
4cba7c86d5 | ||
|
|
6622cb3968 | ||
|
|
84b0db4dbc | ||
|
|
4c4427a4b9 | ||
|
|
c6d0e3d4b3 | ||
|
|
c4796f7dd7 | ||
|
|
1e787a5c16 | ||
|
|
0bc637f606 | ||
|
|
bb70e37492 | ||
|
|
e09d2f93f8 | ||
|
|
66061ef8e0 | ||
|
|
e13e09de25 | ||
|
|
3931ebbfc2 | ||
|
|
893144d16f | ||
|
|
e44fad0e85 | ||
|
|
7055b6e8ee | ||
|
|
44ef76f086 | ||
|
|
411bbcf5e5 | ||
|
|
025c524012 | ||
|
|
446e1c49c7 | ||
|
|
742cef3870 | ||
|
|
8b681530cd | ||
|
|
8c3951a5e1 | ||
|
|
cdbf3f150e | ||
|
|
1bd5b00a66 | ||
|
|
6fc5a8f696 | ||
|
|
2ae15aa74e | ||
|
|
998cc45b01 | ||
|
|
a9dcc95f8c | ||
|
|
0b7f1a8e4e | ||
|
|
70c8b6014b | ||
|
|
73d5f10334 | ||
|
|
d4d0d33ae9 | ||
|
|
5d17cd4b94 | ||
|
|
8ba1651135 | ||
|
|
12d997fc61 | ||
|
|
6a0d3e4b89 | ||
|
|
e2c2eb03ba | ||
|
|
c4c0d8a6eb | ||
|
|
e2807a2a43 | ||
|
|
bde497c08c | ||
|
|
559f4a8183 | ||
|
|
c6d8848cbe | ||
|
|
93e4e53f0f | ||
|
|
11425fb913 | ||
|
|
4da228cb1c | ||
|
|
94a51cb3c4 | ||
|
|
6f818c38fc | ||
|
|
ba6db70e96 | ||
|
|
1d25499b86 | ||
|
|
c0b353dbfd | ||
|
|
c7765d1b6d | ||
|
|
b4f5a9814a | ||
|
|
77cf436225 | ||
|
|
0c4a72b3ec | ||
|
|
d65d44644a | ||
|
|
c7595f06ef | ||
|
|
f32a4fdc8c | ||
|
|
14f7e3916f | ||
|
|
17698d9be0 | ||
|
|
8880c88c30 | ||
|
|
a0794f250a | ||
|
|
a979432ebd | ||
|
|
ae938963a0 | ||
|
|
a04fad9a06 | ||
|
|
d337d756c0 | ||
|
|
a360a2f65d | ||
|
|
d2bcb91a8e | ||
|
|
16e55a566c | ||
|
|
da7d0fad37 | ||
|
|
046343183e | ||
|
|
7dd7e53d77 | ||
|
|
3d842a795f | ||
|
|
41e92a105c | ||
|
|
8981030ae0 | ||
|
|
0bce3b514f | ||
|
|
f3e58f6b77 | ||
|
|
8aacde4b96 | ||
|
|
efb42aa005 | ||
|
|
e28773ba70 | ||
|
|
9c20831d61 | ||
|
|
041ed1a4a4 | ||
|
|
9785983620 | ||
|
|
df433df510 | ||
|
|
4a89a32909 | ||
|
|
f662c9cfce | ||
|
|
d92e3279bb | ||
|
|
903a4fea53 | ||
|
|
1f3d3089a4 | ||
|
|
574ec57a1b | ||
|
|
de1b8a59be | ||
|
|
a212ec163f | ||
|
|
4a092c0223 | ||
|
|
df86963a71 | ||
|
|
3d763bed43 | ||
|
|
405120369a | ||
|
|
0b070ac484 | ||
|
|
e197214067 | ||
|
|
743eb092cb | ||
|
|
69a4243991 | ||
|
|
cf7d6ce55b | ||
|
|
5061eaadb7 | ||
|
|
c5841b9361 | ||
|
|
0ed041ff08 | ||
|
|
e19e28edd8 | ||
|
|
3df600425c | ||
|
|
39d0a634bb | ||
|
|
fb990e530a | ||
|
|
00a7e24392 | ||
|
|
39b8dc237f | ||
|
|
7aaa1582ff | ||
|
|
5529188cf4 | ||
|
|
5954c8d671 | ||
|
|
03593e95cb | ||
|
|
3490a119f9 | ||
|
|
cd1576f86b | ||
|
|
deca0d3741 | ||
|
|
ef9735a125 | ||
|
|
29b555bf7c | ||
|
|
eab37842de | ||
|
|
4a480cf60f | ||
|
|
062e38dd82 | ||
|
|
9a2a443963 | ||
|
|
3712ba0ca3 | ||
|
|
8f9e00b1ad | ||
|
|
efaeb6140f | ||
|
|
9088635ac8 | ||
|
|
c7d5c7c5e2 | ||
|
|
5221e20399 | ||
|
|
8133d73d3c | ||
|
|
d64f875f8e | ||
|
|
68ab2af195 | ||
|
|
95782a344d | ||
|
|
1b10dac9c9 | ||
|
|
507c473696 | ||
|
|
5548654fd5 | ||
|
|
abe3e3bff4 | ||
|
|
85d07c5b16 | ||
|
|
60ed5bfd71 | ||
|
|
2aa279a7f1 | ||
|
|
751b43eef4 | ||
|
|
8ee3ed7d93 | ||
|
|
67a3ed950a | ||
|
|
747638f0f7 | ||
|
|
fbbde3652e | ||
|
|
564f0336c9 | ||
|
|
7fa164f807 | ||
|
|
f075bd8ef1 | ||
|
|
9aaf0b8d6f | ||
|
|
44318a444f | ||
|
|
1548c18595 | ||
|
|
40a3c4ab1b | ||
|
|
93b4fbe94e | ||
|
|
4f8c22f867 | ||
|
|
8d5d9a9434 | ||
|
|
30735b3378 | ||
|
|
21abfd1956 | ||
|
|
5a437182da | ||
|
|
6d0f950148 | ||
|
|
412b02239b | ||
|
|
7d69022aef | ||
|
|
79713e86a5 | ||
|
|
786f01b180 | ||
|
|
5db0bee759 | ||
|
|
8fc85f671a | ||
|
|
ea5c5d13cd | ||
|
|
e727dc5a2b | ||
|
|
4b9090b5d6 | ||
|
|
645650799e | ||
|
|
e89916ac0b | ||
|
|
8ee8c1523a | ||
|
|
d96aa6d1f3 | ||
|
|
e5fccc1004 | ||
|
|
40699b393a | ||
|
|
fa4f1ca20f | ||
|
|
6fac8927c3 | ||
|
|
ae4d95b00b | ||
|
|
ecd1d3483e | ||
|
|
ea69cd244c | ||
|
|
e9523a40e6 | ||
|
|
bcf0a44ae2 | ||
|
|
a94b77d99d | ||
|
|
348412adf8 | ||
|
|
1874528670 | ||
|
|
d6a123bec2 | ||
|
|
247672f7e0 | ||
|
|
a60167e2f4 | ||
|
|
e21e951f3c | ||
|
|
5190ea0201 | ||
|
|
d3a2906c1c | ||
|
|
468589c497 | ||
|
|
38eb50351e | ||
|
|
3f3c59b67f | ||
|
|
597f195208 | ||
|
|
39053130ec | ||
|
|
51929523e4 | ||
|
|
4f831176ea | ||
|
|
77ac35acaa | ||
|
|
626060cbdb | ||
|
|
46ec921090 | ||
|
|
52b313b3bd | ||
|
|
cfb21bee16 | ||
|
|
2b01ce2d74 | ||
|
|
3d777b4487 | ||
|
|
3ac0e708e3 | ||
|
|
aaaeac26e9 | ||
|
|
5399762e9f | ||
|
|
ba5f5239bd | ||
|
|
f5adcb0a5a | ||
|
|
bc392dfa6a | ||
|
|
2d95fd7ee2 | ||
|
|
1821bc7795 | ||
|
|
01ef10652e | ||
|
|
cb598c11b1 | ||
|
|
a09982e7c1 | ||
|
|
b71ef8ee8e | ||
|
|
68b668d3ff | ||
|
|
2802a1bd75 | ||
|
|
c28e6e37bc | ||
|
|
1a71445ee0 | ||
|
|
21b818fa04 | ||
|
|
1e8c44d009 | ||
|
|
37fd57d7ff | ||
|
|
3187d8a0ea | ||
|
|
8de870e62e | ||
|
|
6ba138a9a3 | ||
|
|
503c71e798 | ||
|
|
d395fc78f0 | ||
|
|
99a4dcaae7 | ||
|
|
96d93e12b3 | ||
|
|
d491327c72 | ||
|
|
89efa697ef | ||
|
|
9a469c3bc5 | ||
|
|
1f7f18cf09 | ||
|
|
6dc24ded90 | ||
|
|
a3346d6ebd | ||
|
|
bb90bb20b2 | ||
|
|
82dd3f0978 | ||
|
|
d590d27c74 | ||
|
|
52ad755b1c | ||
|
|
1ad014e991 | ||
|
|
32806021eb | ||
|
|
c77ee668d4 | ||
|
|
f254912063 | ||
|
|
42492fd26a | ||
|
|
91e6201292 | ||
|
|
da8a8a89bd | ||
|
|
086fe1587b | ||
|
|
17a0dbf7dc | ||
|
|
8654af888c | ||
|
|
2e5814d13f | ||
|
|
6b1513e724 | ||
|
|
d66be21571 | ||
|
|
0f64a84458 | ||
|
|
18dc0943b0 | ||
|
|
a0e12c708a | ||
|
|
9c113e605f | ||
|
|
9752f5941a | ||
|
|
b896eac28e | ||
|
|
2c5a1ea5a3 | ||
|
|
c2ac877cad | ||
|
|
8232dcf91c | ||
|
|
cfd85ebaa3 | ||
|
|
1451e3352f | ||
|
|
ccb354e826 | ||
|
|
ff591da9e7 | ||
|
|
ba35907877 | ||
|
|
d7aa14fae7 | ||
|
|
d437271d26 | ||
|
|
7527af522d | ||
|
|
fdb72415da | ||
|
|
d8215b3bc3 | ||
|
|
ac60f6a565 | ||
|
|
4e9390cea0 | ||
|
|
591910371d | ||
|
|
21ec09d039 | ||
|
|
eb5d17af02 | ||
|
|
627f21bd20 | ||
|
|
734d5a5e5c | ||
|
|
ebb6b44dfb | ||
|
|
1979d7e5c1 | ||
|
|
a5ce78bf73 | ||
|
|
69f3466f5a | ||
|
|
efdbf51598 | ||
|
|
4d87a5bb0f | ||
|
|
27188643e0 | ||
|
|
75fd3e4b15 | ||
|
|
7dfd0fd974 | ||
|
|
ae538127e4 | ||
|
|
f84d5ad2d9 | ||
|
|
217e84c990 | ||
|
|
c555208bf1 | ||
|
|
d61e178d4b | ||
|
|
e59e73cb9c | ||
|
|
dfab1b0977 | ||
|
|
5158bfd06a | ||
|
|
96f6c74ecb | ||
|
|
c89224aeb7 | ||
|
|
e94a64efe2 | ||
|
|
1849eb6d13 | ||
|
|
d186071a39 | ||
|
|
abdd74e885 | ||
|
|
7704e4dd1d | ||
|
|
fab404b40b | ||
|
|
3390cccbf3 | ||
|
|
8954898954 | ||
|
|
8dc340a680 | ||
|
|
19e00e65b0 | ||
|
|
43ffa36a8b | ||
|
|
ae6070d7ac | ||
|
|
035ec5ef95 | ||
|
|
c1c9944a6d | ||
|
|
04cd36aa2e | ||
|
|
1b94a2c6cf | ||
|
|
f1558d41b8 | ||
|
|
ecbad1c884 | ||
|
|
c4bc957d03 | ||
|
|
7a2d06b706 | ||
|
|
25b66d5a84 | ||
|
|
a89548dab6 | ||
|
|
be3b763838 | ||
|
|
f9fee87fca | ||
|
|
5c76852bbb | ||
|
|
73a36fe8f4 | ||
|
|
d9c58bdace | ||
|
|
9194b4edea | ||
|
|
6708615c48 | ||
|
|
28181f7872 |
@@ -0,0 +1,5 @@
|
||||
**/node_modules
|
||||
**/.git
|
||||
**/.svelte-kit
|
||||
**/dist
|
||||
**/docs
|
||||
@@ -0,0 +1,48 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
||||
'prettier'
|
||||
],
|
||||
plugins: ['svelte3', 'tailwindcss', '@typescript-eslint', 'es'],
|
||||
ignorePatterns: [
|
||||
'docs/*',
|
||||
'*.cjs',
|
||||
'*.md',
|
||||
'snapshots.js',
|
||||
'svelte.config.js',
|
||||
'renovate.json',
|
||||
'package.json',
|
||||
'tsconfig.json'
|
||||
],
|
||||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
||||
settings: {
|
||||
'svelte3/typescript': () => require('typescript')
|
||||
},
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 2019,
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ['./tsconfig.json'],
|
||||
extraFileExtensions: ['.svelte']
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
es2017: true,
|
||||
node: true
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/ban-ts-comment': [
|
||||
'error',
|
||||
{
|
||||
'ts-ignore': 'allow-with-description'
|
||||
}
|
||||
],
|
||||
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
'es/no-regexp-lookbehind-assertions': 'error'
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Link to Live Editor:
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,7 @@
|
||||
name: 'Mermaid CodeQL config'
|
||||
|
||||
paths:
|
||||
- src
|
||||
paths-ignore:
|
||||
- node_modules
|
||||
- '**/*.spec.js'
|
||||
+20
-5
@@ -1,8 +1,23 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: 'npm'
|
||||
directory: '/'
|
||||
target-branch: 'develop'
|
||||
- package-ecosystem: docker
|
||||
directory: /
|
||||
target-branch: develop
|
||||
schedule:
|
||||
interval: 'weekly'
|
||||
day: 'friday'
|
||||
interval: weekly
|
||||
day: friday
|
||||
time: '07:00'
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
target-branch: develop
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: friday
|
||||
time: '07:00'
|
||||
- package-ecosystem: npm
|
||||
directory: /
|
||||
target-branch: develop
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: friday
|
||||
time: '07:00'
|
||||
|
||||
@@ -12,6 +12,6 @@ Describe the way your implementation works or what design decisions you made if
|
||||
|
||||
Make sure you
|
||||
|
||||
- [ ] :book: have read the [contribution guidelines](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md)
|
||||
- [ ] :book: have read the [contribution guidelines](https://github.com/mermaid-js/mermaid/blob/master/CONTRIBUTING.md)
|
||||
- [ ] :computer: have added unit/e2e tests (if appropriate)
|
||||
- [ ] :bookmark: targeted `master` branch
|
||||
- [ ] :bookmark: targeted `develop` branch
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: "CodeQL"
|
||||
name: 'CodeQL'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
schedule:
|
||||
- cron: '36 1 * * 2'
|
||||
|
||||
@@ -28,40 +28,41 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'javascript' ]
|
||||
language: ['javascript']
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more:
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
config-file: ./.github/codeql/config.yml
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
# - name: Autobuild
|
||||
# uses: github/codeql-action/autobuild@v1
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
name: Cypress Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
cypress-run:
|
||||
runs-on: ubuntu-latest
|
||||
# Update after https://github.com/cypress-io/cypress-docker-images/issues/487
|
||||
container: cypress/browsers:node14.16.0-chrome90-ff88
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/cache@v2
|
||||
id: yarn-and-build-cache
|
||||
with:
|
||||
path: |
|
||||
~/.cache/Cypress
|
||||
build
|
||||
node_modules
|
||||
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node_modules-build-
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
yarn install
|
||||
yarn run lint
|
||||
|
||||
# Install NPM dependencies, cache them correctly
|
||||
# and run all Cypress tests
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
build: yarn build
|
||||
start: yarn preview
|
||||
wait-on: 'http://localhost:3000'
|
||||
record: true
|
||||
headless: true
|
||||
env:
|
||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
@@ -3,25 +3,51 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version: '16'
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: Build & Deploy
|
||||
run: |
|
||||
npm i -g yarn
|
||||
export DEPLOY=true
|
||||
[ "$GITHUB_EVENT_NAME" == "pull_request" ] && export BETA=true && rm -rf docs/beta/
|
||||
[ "$GITHUB_EVENT_NAME" != "pull_request" ] && rm -rf docs/_app/
|
||||
yarn install
|
||||
yarn version --patch --no-git-tag-version
|
||||
yarn release
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git add .
|
||||
git commit -m "Release $(yarn version --version)"
|
||||
git push
|
||||
yarn run lint
|
||||
version=$(yarn version --patch --no-git-tag-version | grep "New version" | cut -d':' -f 2)
|
||||
yarn build
|
||||
cd bin
|
||||
./fix-path
|
||||
cd ..
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs
|
||||
keep_files: true
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
name: Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
# Publish `master` as Docker `latest` image.
|
||||
branches:
|
||||
- master
|
||||
|
||||
# Publish `v1.2.3` tags as releases.
|
||||
tags:
|
||||
- v*
|
||||
|
||||
# Run tests for all PRs to master and develop.
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
env:
|
||||
IMAGE_NAME: mermaid-live-editor
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
docker build . --file Dockerfile
|
||||
|
||||
push:
|
||||
# Ensure test job passes before pushing image.
|
||||
needs: test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build image
|
||||
run: docker build . --file Dockerfile --tag $IMAGE_NAME
|
||||
|
||||
- name: Log into registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
|
||||
|
||||
# Change all uppercase to lowercase
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
# Strip git ref prefix from version
|
||||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
||||
|
||||
# Strip "v" prefix from tag name
|
||||
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
|
||||
|
||||
# Use Docker `latest` tag convention
|
||||
[ "$VERSION" == "master" ] && VERSION=latest
|
||||
|
||||
echo IMAGE_ID=$IMAGE_ID
|
||||
echo VERSION=$VERSION
|
||||
|
||||
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
|
||||
docker push $IMAGE_ID:$VERSION
|
||||
@@ -8,7 +8,7 @@ jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v3
|
||||
- uses: actions/stale@v4
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
exempt-issue-labels: 'retained'
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Update Browserslist
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: npx browserslist@latest --update-db
|
||||
- name: Commit changes
|
||||
uses: EndBug/add-and-commit@v7
|
||||
with:
|
||||
author_name: ${{ github.actor }}
|
||||
author_email: ${{ github.actor }}@users.noreply.github.com
|
||||
message: 'Update Browserslist'
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Update Monaco-editor
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [opened]
|
||||
branches:
|
||||
- 'dependabot/npm_and_yarn/develop/monaco-editor-**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: ./bin/update-monaco
|
||||
- name: Commit changes
|
||||
uses: EndBug/add-and-commit@v7
|
||||
with:
|
||||
author_name: ${{ github.actor }}
|
||||
author_email: ${{ github.actor }}@users.noreply.github.com
|
||||
message: 'Update Monaco-editor'
|
||||
+7
-1
@@ -4,4 +4,10 @@ coverage/
|
||||
build/
|
||||
yarn-error.log
|
||||
.npmrc
|
||||
*node_modules*
|
||||
.DS_Store
|
||||
/.svelte-kit
|
||||
/build
|
||||
/functions
|
||||
/snapshots.js
|
||||
/cypress/videos
|
||||
/cypress/screenshots
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run pre-commit
|
||||
yarn pre-commit
|
||||
|
||||
+6
-1
@@ -1 +1,6 @@
|
||||
dist/
|
||||
docs/**
|
||||
.svelte-kit/**
|
||||
static/**
|
||||
build/**
|
||||
node_modules/**
|
||||
snapshots.js
|
||||
+7
-4
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"svelteSortOrder": "scripts-styles-markup",
|
||||
"svelteBracketNewLine": false
|
||||
}
|
||||
"singleQuote": true,
|
||||
"svelteSortOrder": "options-scripts-markup-styles",
|
||||
"bracketSameLine": true,
|
||||
"useTabs": true,
|
||||
"trailingComma": "none",
|
||||
"printWidth": 100
|
||||
}
|
||||
|
||||
+1
-3
@@ -6,9 +6,7 @@
|
||||
# Stop : press ctrl + c
|
||||
# or
|
||||
# docker stop mermaid-live-editor
|
||||
|
||||
|
||||
FROM node:14.16.0-alpine3.13 as mermaid-live-editor-builder
|
||||
FROM node:17.2.0 as mermaid-live-editor-builder
|
||||
COPY --chown=node:node . /home
|
||||
WORKDIR /home
|
||||
RUN yarn install
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
FROM node:17
|
||||
WORKDIR /app
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN ls
|
||||
CMD ["yarn", "dev"]
|
||||
@@ -1,6 +1,6 @@
|
||||
[](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE)
|
||||
[](https://dashboard.cypress.io/projects/2ckppp/runs) [](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE)[](https://app.netlify.com/sites/mermaidjs/deploys)
|
||||
|
||||
# Contributors are welcome
|
||||
# Contributors are welcome!
|
||||
|
||||
If you want to speed up the progress for mermaid-live-editor, join the slack channel and contact knsv.
|
||||
|
||||
@@ -17,43 +17,50 @@ Edit, preview and share mermaid charts/diagrams.
|
||||
|
||||
## Live demo
|
||||
|
||||
You can try out a live version [here](https://mermaid-js.github.io/mermaid-live-editor/).
|
||||
You can try out a live version [here](https://mermaid.live/).
|
||||
|
||||
## Docker
|
||||
|
||||
### Run published image
|
||||
|
||||
```bash
|
||||
docker run --publish 8000:80 ghcr.io/mermaid-js/mermaid-live-editor
|
||||
```
|
||||
|
||||
### To configure renderer URL
|
||||
|
||||
When building, Set the Environment variable MERMAID_RENDERER_URL to the rendering service.
|
||||
Default is `https://mermaid.ink`
|
||||
|
||||
### Development
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
Then open http://localhost:8000
|
||||
|
||||
## Setup
|
||||
|
||||
[Volta](https://volta.sh) is used for managing node and yarn versions.
|
||||
|
||||
This project is set up using [Yarn](https://classic.yarnpkg.com/en/docs/getting-started). :
|
||||
This project is set up using [Yarn](https://classic.yarnpkg.com/en/docs/getting-started):
|
||||
|
||||
```
|
||||
yarn install
|
||||
```
|
||||
|
||||
or in develop branch to use the beta version of mermaid use
|
||||
|
||||
```
|
||||
yarn install --update-checksums
|
||||
```
|
||||
|
||||
This together with a .npmrc file:
|
||||
|
||||
```
|
||||
registry=https://registry.npmjs.com/
|
||||
@mermaid-js:registry=https://npm.pkg.github.com
|
||||
//npm.pkg.github.com/:_authToken="XXXXXXXXX"
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
```
|
||||
yarn dev
|
||||
open http://localhost:8080
|
||||
yarn dev -- --open
|
||||
```
|
||||
|
||||
This app is created with Svelte + svelte-spa-router.
|
||||
This app is created with Svelte Kit.
|
||||
|
||||
## Release
|
||||
|
||||
```
|
||||
yarn release
|
||||
```
|
||||
When a PR is created targeting master, it will be built and deployed by Netlify.
|
||||
The URL will be indicated in a Comment in the PR.
|
||||
|
||||
Once the PR is merged, it will automatically be released.
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
pushd ../docs
|
||||
# find ./ -type f -exec sed -i 's/service-worker.js/mermaid-live-editor\/service-worker.js/g' {} \;
|
||||
find ./ -type f -exec sed -i 's/manifest.json/\/mermaid-live-editor\/manifest.json/g' {} \;
|
||||
find ./ -type f -exec sed -i 's/favicon.png/\/mermaid-live-editor\/favicon.png/g' {} \;
|
||||
popd
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
monacoVersion="$(jq -r '.dependencies."monaco-editor"' package.json)"
|
||||
monacoVersion="${monacoVersion:1}"
|
||||
|
||||
if [[ $(uname) == "Darwin" ]];
|
||||
then
|
||||
sed -i '' -E "s/monaco-editor\/[^/]*/monaco-editor\/$monacoVersion/g" ./src/app.html
|
||||
else
|
||||
sed -i'' -E "s/monaco-editor\/[^/]*/monaco-editor\/$monacoVersion/g" ./src/app.html
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"projectId": "2ckppp",
|
||||
"$schema": "https://on.cypress.io/cypress.schema.json",
|
||||
"baseUrl": "http://localhost:3000",
|
||||
"pluginsFile": "./cypress/plugins/index.cjs",
|
||||
"viewportWidth": 1440,
|
||||
"viewportHeight": 768,
|
||||
"snapshotFileName": "./cypress/snapshots.js",
|
||||
"defaultCommandTimeout": 16000,
|
||||
"requestTimeout": 16000
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"plugins": ["cypress", "mocha"],
|
||||
"extends": ["plugin:cypress/recommended", "plugin:mocha/recommended"],
|
||||
"rules": {
|
||||
"jest/expect-expect": "off",
|
||||
"mocha/no-mocha-arrows": "off"
|
||||
},
|
||||
"env": {
|
||||
"cypress/globals": true,
|
||||
"mocha": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Using fixtures to represent data",
|
||||
"email": "hello@cypress.io",
|
||||
"body": "Fixtures are a great way to mock data for responses to routes"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
describe('Check actions', () => {
|
||||
beforeEach(() => {
|
||||
cy.clearLocalStorage();
|
||||
cy.visit('/edit');
|
||||
});
|
||||
it('should update markdown code', () => {
|
||||
cy.get('#markdown')
|
||||
.invoke('val')
|
||||
.then((oldText) => {
|
||||
cy.get('#editor').click('bottom').type('{enter}C --> HistoryTest');
|
||||
cy.get('#markdown')
|
||||
.invoke('val')
|
||||
.then((newText) => {
|
||||
expect(oldText).to.not.eq(newText);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('should load gists from URL', () => {
|
||||
cy.get('#gist').type('https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a');
|
||||
cy.contains('Load Gist').click();
|
||||
cy.contains('Go shopping!!');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,33 @@
|
||||
describe('Auto sync tests', () => {
|
||||
beforeEach(() => {
|
||||
cy.clearLocalStorage();
|
||||
cy.visit('/');
|
||||
});
|
||||
it('should dim diagram when code is edited', () => {
|
||||
cy.contains('Auto sync').click();
|
||||
cy.get('#view').should('not.have.class', 'outOfSync');
|
||||
cy.get('#editor').type(' C --> Test');
|
||||
cy.get('#view').should('have.class', 'outOfSync');
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
|
||||
it('should show/hide sync button with auto sync', () => {
|
||||
cy.get('[data-cy=sync]').should('not.exist');
|
||||
cy.contains('Auto sync').click();
|
||||
cy.get('[data-cy=sync]').should('exist');
|
||||
cy.get('#autoSync').check();
|
||||
cy.get('[data-cy=sync]').should('not.exist');
|
||||
});
|
||||
it('should not dim diagram when code is in sync', () => {
|
||||
cy.contains('Auto sync').click();
|
||||
cy.get('#view').should('not.have.class', 'outOfSync');
|
||||
cy.get('#editor').type(' C --> Test');
|
||||
cy.get('#view').should('have.class', 'outOfSync');
|
||||
cy.get('[data-cy=sync]').click();
|
||||
cy.get('#view').should('not.have.class', 'outOfSync');
|
||||
cy.get('#autoSync').check();
|
||||
cy.get('#editor').type('ing');
|
||||
cy.get('#view').should('not.have.class', 'outOfSync');
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,63 @@
|
||||
describe('Save History', () => {
|
||||
beforeEach(() => {
|
||||
cy.clock();
|
||||
cy.clearLocalStorage();
|
||||
cy.visit('/edit');
|
||||
cy.contains('Actions').click();
|
||||
cy.contains('History').click();
|
||||
});
|
||||
|
||||
it('should save when clicked', () => {
|
||||
cy.get('#historyList').find('li').should('have.length', 0);
|
||||
cy.get('#historyList').contains('No items in History');
|
||||
cy.get('#saveHistory').click();
|
||||
cy.get('#historyList').find('No items in History').should('not.exist');
|
||||
cy.get('#historyList').find('li').should('have.length', 1);
|
||||
cy.get('#saveHistory').click();
|
||||
cy.on('window:alert', (str) => {
|
||||
expect(str).to.equal('State already saved.');
|
||||
});
|
||||
cy.on('window:confirm', () => true);
|
||||
cy.get('#editor').type(' C --> HistoryTest');
|
||||
cy.get('#saveHistory').click();
|
||||
cy.get('#historyList').find('li').should('have.length', 2);
|
||||
});
|
||||
|
||||
it('should be able to restore and delete', () => {
|
||||
cy.get('#saveHistory').click();
|
||||
cy.get('#editor').type(' C --> HistoryTest');
|
||||
cy.get('#historyList').find('No items in History').should('not.exist');
|
||||
cy.get('#historyList').find('li').should('have.length', 1);
|
||||
cy.contains('HistoryTest');
|
||||
cy.contains('Restore').click();
|
||||
cy.contains('HistoryTest').should('not.exist');
|
||||
cy.contains('Delete').click();
|
||||
cy.get('#historyList').find('li').should('have.length', 0);
|
||||
cy.get('#historyList').contains('No items in History');
|
||||
cy.get('#saveHistory').click();
|
||||
cy.get('#editor').type(' C --> HistoryTest');
|
||||
cy.get('#saveHistory').click();
|
||||
cy.get('#editor').type('ing');
|
||||
cy.get('#clearHistory').click();
|
||||
cy.on('window:alert', (str) => {
|
||||
expect(str).to.equal('Clear all saved items?');
|
||||
});
|
||||
cy.on('window:confirm', () => true);
|
||||
cy.get('#historyList').contains('No items in History');
|
||||
});
|
||||
|
||||
it('should auto save history', () => {
|
||||
cy.get('#editor').type(' C --> HistoryTest');
|
||||
cy.tick(70000);
|
||||
cy.contains('Timeline').click();
|
||||
cy.get('#historyList').find('li').should('have.length', 1);
|
||||
cy.get('#editor').type('ing');
|
||||
cy.tick(70000);
|
||||
cy.get('#historyList').find('li').should('have.length', 2);
|
||||
for (let i = 0; i < 31; i++) {
|
||||
cy.get('#editor').type('.');
|
||||
cy.tick(70000);
|
||||
}
|
||||
cy.get('#historyList').find('li').should('have.length', 30);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,95 @@
|
||||
import { toBase64 } from 'js-base64';
|
||||
|
||||
describe('Site Loads', () => {
|
||||
beforeEach(() => {
|
||||
cy.clearLocalStorage();
|
||||
});
|
||||
it('Check Home page load', () => {
|
||||
cy.visit('/');
|
||||
cy.url().should('include', '/edit');
|
||||
cy.contains('History').click();
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
|
||||
it('Check Redirect from old URL', () => {
|
||||
cy.visit(
|
||||
'/#/edit/eyJjb2RlIjoiZ3JhcGggVERcbiAgICBBW0NocmlzdG1hc10gLS0-fEdldCBtb25leXwgQihHbyBzaG9wcGluZylcbiAgICBCIC0tPiBDe0xldCBtZSB0aGlua31cbiAgICBDIC0tPnxPbmV8IERbTGFwdG9wXVxuICAgIEMgLS0-fFR3b3wgRVtpUGhvbmVdXG4gICAgQyAtLT58VGhyZWV8IEZbZmE6ZmEtY2FyIENhcl0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ'
|
||||
);
|
||||
cy.url().should(
|
||||
'include',
|
||||
'/edit#eyJjb2RlIjoiZ3JhcGggVERcbiAgICBBW0NocmlzdG1hc10gLS0-fEdldCBtb25leXwgQihHbyBzaG9wcGluZylcbiAgICBCIC0tPiBDe0xldCBtZSB0aGlua31cbiAgICBDIC0tPnxPbmV8IERbTGFwdG9wXVxuICAgIEMgLS0-fFR3b3wgRVtpUGhvbmVdXG4gICAgQyAtLT58VGhyZWV8IEZbZmE6ZmEtY2FyIENhcl0iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ'
|
||||
);
|
||||
cy.contains('History').click();
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
|
||||
it('should load sample diagrams when clicked', () => {
|
||||
cy.contains('Sample Diagrams').click();
|
||||
cy.contains('Pie Chart').click();
|
||||
cy.contains('pie title Pets adopted by volunteers');
|
||||
cy.contains('Class Diagram').click();
|
||||
cy.contains('classDiagram');
|
||||
});
|
||||
|
||||
it('should load diagram from gist', () => {
|
||||
cy.visit(`/edit?gist=https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a`);
|
||||
cy.contains('History').click();
|
||||
cy.contains('Go shopping!!');
|
||||
cy.contains('Revisions');
|
||||
cy.contains('sidharthv96 v8f8f1e2');
|
||||
cy.contains('sidharthv96 v7851e19');
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
|
||||
it('should load diagram from gist revision', () => {
|
||||
cy.visit(
|
||||
'/edit?gist=https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/ec9b4ab0e41e4ff6287326cd3cb47affd7851e19'
|
||||
);
|
||||
cy.contains('History').click();
|
||||
cy.contains('Party');
|
||||
cy.contains('Revisions');
|
||||
cy.contains('sidharthv96 v7851e19');
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
|
||||
it('should load diagram from raw files', () => {
|
||||
cy.visit(
|
||||
'/edit?code=https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/code.mmd&config=https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/config.json'
|
||||
);
|
||||
cy.contains('Party');
|
||||
cy.getLocalStorage('codeStore').snapshot();
|
||||
});
|
||||
|
||||
it('should prevent setting the "securityLevel" option via URL', () => {
|
||||
const b64State = toBase64(
|
||||
`{"code":"graph TD\\nA[\\"<img src='https://via.placeholder.com/64' width=64 />\\"]","mermaid":"{\\"securityLevel\\": \\"loose\\", \\"theme\\": \\"forest\\"}","updateEditor":true,"autoSync":true,"updateDiagram":true}`,
|
||||
true
|
||||
);
|
||||
cy.on('window:confirm', () => true);
|
||||
cy.visit(`/edit#${b64State}`);
|
||||
cy.contains('Config').click();
|
||||
cy.contains('forest');
|
||||
cy.contains('securityLevel').should('not.exist');
|
||||
cy.get('#view').find('img').should('not.exist');
|
||||
cy.get('#view').contains('<img');
|
||||
cy.get('#view').contains(`src='https://via.placeholder.com/64'`);
|
||||
});
|
||||
|
||||
it('should allow persisting "securityLevel" using confirm dialogue', () => {
|
||||
const b64State = toBase64(
|
||||
`{"code":"graph TD\\nA[\\"<img src='https://via.placeholder.com/64' width=64/>\\"]","mermaid":"{\\"securityLevel\\": \\"loose\\", \\"theme\\": \\"forest\\"}","updateEditor":true,"autoSync":true,"updateDiagram":true}`,
|
||||
true
|
||||
);
|
||||
cy.on('window:confirm', () => false);
|
||||
cy.visit(`/edit#${b64State}`);
|
||||
cy.contains('Config').click();
|
||||
cy.contains('forest');
|
||||
cy.contains('securityLevel');
|
||||
cy.get('#view').find('img').should('be.visible');
|
||||
});
|
||||
|
||||
it('should show troubleshooting steps if loading fails', () => {
|
||||
cy.visit('/#/edit/eyJjb2RlIjoiZ3JhcGggVERcbiAg');
|
||||
cy.contains('Please Click here to Raise an issue in github.');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,57 @@
|
||||
describe('Test themes', () => {
|
||||
describe('Test light themes', () => {
|
||||
beforeEach(() => {
|
||||
cy.clearLocalStorage();
|
||||
cy.visit('/edit', {
|
||||
onBeforeLoad(win) {
|
||||
cy.stub(win, 'matchMedia')
|
||||
.callThrough()
|
||||
.withArgs('(prefers-color-scheme: dark)')
|
||||
.returns({
|
||||
matches: false
|
||||
});
|
||||
}
|
||||
});
|
||||
cy.contains('Change Theme').click();
|
||||
});
|
||||
|
||||
it('should set light theme as default', () => {
|
||||
cy.contains('light').parent().should('have.class', 'bordered');
|
||||
cy.contains('dark').parent().should('not.have.class', 'bordered');
|
||||
cy.getLocalStorage('themeStore').snapshot();
|
||||
});
|
||||
|
||||
it('should change themes when clicked', () => {
|
||||
cy.contains('light').parent().should('have.class', 'bordered');
|
||||
cy.contains('cupcake').click();
|
||||
cy.contains('cupcake').parent().should('have.class', 'bordered');
|
||||
cy.contains('light').parent().should('not.have.class', 'bordered');
|
||||
cy.contains('dark').parent().should('not.have.class', 'bordered');
|
||||
cy.getLocalStorage('themeStore').snapshot();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Test dark mode', () => {
|
||||
// eslint-disable-next-line mocha/no-hooks-for-single-case
|
||||
beforeEach(() => {
|
||||
cy.clearLocalStorage();
|
||||
cy.visit('/edit', {
|
||||
onBeforeLoad(win) {
|
||||
cy.stub(win, 'matchMedia')
|
||||
.callThrough()
|
||||
.withArgs('(prefers-color-scheme: dark)')
|
||||
.returns({
|
||||
matches: true
|
||||
});
|
||||
}
|
||||
});
|
||||
cy.contains('Change Theme').click();
|
||||
});
|
||||
|
||||
it('should set dark theme as default', () => {
|
||||
cy.contains('light').parent().should('not.have.class', 'bordered');
|
||||
cy.contains('dark').parent().should('have.class', 'bordered');
|
||||
cy.getLocalStorage('themeStore').snapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,31 @@
|
||||
/// <reference types="cypress" />
|
||||
// ***********************************************************
|
||||
// This example plugins/index.js can be used to load plugins
|
||||
//
|
||||
// You can change the location of this file or turn off loading
|
||||
// the plugins file with the 'pluginsFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/plugins-guide
|
||||
// ***********************************************************
|
||||
|
||||
// This function is called when a project is opened or re-opened (e.g. due to
|
||||
// the project's config changing)
|
||||
|
||||
/**
|
||||
* @type {Cypress.PluginConfig}
|
||||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import * as fs from 'fs';
|
||||
|
||||
module.exports = (on, config) => {
|
||||
on('task', {
|
||||
readFileMaybe(filename) {
|
||||
if (fs.existsSync(filename)) {
|
||||
return fs.readFileSync(filename, 'utf8');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,52 @@
|
||||
module.exports = {
|
||||
"Site Loads": {
|
||||
"Check Home page load": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":true,\"autoSync\":true,\"updateDiagram\":true}"
|
||||
},
|
||||
"Check Redirect from old URL": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true}"
|
||||
},
|
||||
"should load diagram from gist": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping!!)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello world\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"gist\",\"config\":{\"url\":\"https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a\"}}}"
|
||||
},
|
||||
"should load diagram from gist revision": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"gist\",\"config\":{\"url\":\"https://gist.github.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/ec9b4ab0e41e4ff6287326cd3cb47affd7851e19\"}}}"
|
||||
},
|
||||
"should load diagram from raw files": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping!!)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello world\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"files\",\"config\":{\"codeURL\":\"https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/code.mmd\",\"configURL\":\"https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/config.json\"}}}"
|
||||
}
|
||||
},
|
||||
"__version": "8.5.0",
|
||||
"Auto sync tests": {
|
||||
"should dim diagram when code is edited": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n C --> Test\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":false,\"updateDiagram\":false}"
|
||||
},
|
||||
"should not dim diagram when code is in sync": {
|
||||
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n C --> Testing\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":false}"
|
||||
}
|
||||
},
|
||||
"Test themes": {
|
||||
"should set light theme as default": {
|
||||
"1": "{\"theme\":\"light\",\"isDark\":false}"
|
||||
},
|
||||
"should change themes when clicked": {
|
||||
"1": "{\"theme\":\"cupcake\",\"isDark\":false}"
|
||||
},
|
||||
"should set dark theme as default": {
|
||||
"1": "{\"theme\":\"dark\",\"isDark\":true}"
|
||||
},
|
||||
"Test light themes": {
|
||||
"should set light theme as default": {
|
||||
"1": "{\"theme\":\"light\",\"isDark\":false}"
|
||||
},
|
||||
"should change themes when clicked": {
|
||||
"1": "{\"theme\":\"cupcake\",\"isDark\":false}"
|
||||
}
|
||||
},
|
||||
"Test dark mode": {
|
||||
"should set dark theme as default": {
|
||||
"1": "{\"theme\":\"dark\",\"isDark\":true}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
// ***********************************************
|
||||
// This example commands.js shows you how to
|
||||
// create various custom commands and overwrite
|
||||
// existing commands.
|
||||
//
|
||||
// For more comprehensive examples of custom
|
||||
// commands please read more here:
|
||||
// https://on.cypress.io/custom-commands
|
||||
// ***********************************************
|
||||
//
|
||||
//
|
||||
// -- This is a parent command --
|
||||
// Cypress.Commands.add('login', (email, password) => { ... })
|
||||
//
|
||||
//
|
||||
// -- This is a child command --
|
||||
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
||||
//
|
||||
//
|
||||
// -- This is a dual command --
|
||||
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
||||
//
|
||||
//
|
||||
// -- This will overwrite an existing command --
|
||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
||||
import { register } from '@cypress/snapshot';
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
||||
register();
|
||||
declare global {
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
namespace Cypress {
|
||||
interface Chainable {
|
||||
snapshot(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import 'cypress-localstorage-commands';
|
||||
@@ -0,0 +1,27 @@
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
Cypress.on('uncaught:exception', (err) => {
|
||||
/* returning false here prevents Cypress from failing the test */
|
||||
if (err.message.includes('ResizeObserver loop limit exceeded')) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"types": ["cypress", "cypress-localstorage-commands"]
|
||||
},
|
||||
"include": ["**/*.ts"]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
mermaid:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 24678:24678
|
||||
@@ -1,217 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1065],
|
||||
{
|
||||
71065: (e, n, s) => {
|
||||
'use strict';
|
||||
s.r(n), s.d(n, { conf: () => i, language: () => t });
|
||||
var i = {
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>', notIn: ['string'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*\x3c!--\\s*#?region\\b.*--\x3e'),
|
||||
end: new RegExp('^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e'),
|
||||
},
|
||||
},
|
||||
},
|
||||
t = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.rst',
|
||||
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
||||
escapes: /\\(?:@control)/,
|
||||
empty: [
|
||||
'area',
|
||||
'base',
|
||||
'basefont',
|
||||
'br',
|
||||
'col',
|
||||
'frame',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'isindex',
|
||||
'link',
|
||||
'meta',
|
||||
'param',
|
||||
],
|
||||
alphanumerics: /[A-Za-z0-9]/,
|
||||
alphanumericsplus: /[A-Za-z0-9-_+:.]/,
|
||||
simpleRefNameWithoutBq: /(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/,
|
||||
simpleRefName: /(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/,
|
||||
phrase: /@simpleRefName(?:\s@simpleRefName)*/,
|
||||
citationName: /[A-Za-z][A-Za-z0-9-_.]*/,
|
||||
blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,
|
||||
precedingChars: /(?:[ -:/'"<([{])/,
|
||||
followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/,
|
||||
punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/^(@punctuation{3,}$){1,1}?/, 'keyword'],
|
||||
[
|
||||
/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,
|
||||
'keyword',
|
||||
],
|
||||
[/([ ]::)\s*$/, 'keyword', '@blankLineOfLiteralBlocks'],
|
||||
[/(::)\s*$/, 'keyword', '@blankLineOfLiteralBlocks'],
|
||||
{ include: '@tables' },
|
||||
{ include: '@explicitMarkupBlocks' },
|
||||
{ include: '@inlineMarkup' },
|
||||
],
|
||||
explicitMarkupBlocks: [
|
||||
{ include: '@citations' },
|
||||
{ include: '@footnotes' },
|
||||
[
|
||||
/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,
|
||||
[{ token: '', next: 'subsequentLines' }, 'keyword', '', ''],
|
||||
],
|
||||
[
|
||||
/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,
|
||||
[
|
||||
{ token: '', next: 'hyperlinks' },
|
||||
'',
|
||||
'',
|
||||
'string.link',
|
||||
'',
|
||||
'',
|
||||
'string.link',
|
||||
],
|
||||
],
|
||||
[
|
||||
/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,
|
||||
[
|
||||
{ token: '', next: 'subsequentLines' },
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'string.link',
|
||||
],
|
||||
],
|
||||
[/^(__\s+)(.+)/, ['', 'string.link']],
|
||||
[
|
||||
/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,
|
||||
[
|
||||
{ token: '', next: 'subsequentLines' },
|
||||
'',
|
||||
'string.link',
|
||||
'',
|
||||
'keyword',
|
||||
'',
|
||||
],
|
||||
'@rawBlocks',
|
||||
],
|
||||
[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ['', 'string.link', '']],
|
||||
[
|
||||
/^(\.\.)([ ].*)$/,
|
||||
[{ token: '', next: '@comments' }, 'comment'],
|
||||
],
|
||||
],
|
||||
inlineMarkup: [
|
||||
{ include: '@citationsReference' },
|
||||
{ include: '@footnotesReference' },
|
||||
[/(@simpleRefName)(_{1,2})/, ['string.link', '']],
|
||||
[
|
||||
/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,
|
||||
['', 'string.link', '', 'string.link', '', '', ''],
|
||||
],
|
||||
[/\*\*([^\\*]|\*(?!\*))+\*\*/, 'strong'],
|
||||
[/\*[^*]+\*/, 'emphasis'],
|
||||
[/(``)((?:[^`]|\`(?!`))+)(``)/, ['', 'keyword', '']],
|
||||
[/(__\s+)(.+)/, ['', 'keyword']],
|
||||
[
|
||||
/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,
|
||||
['', 'keyword', '', '', ''],
|
||||
],
|
||||
[
|
||||
/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,
|
||||
['', '', '', 'keyword', ''],
|
||||
],
|
||||
[/(`)([^`]+)(`)/, ''],
|
||||
[/(_`)(@phrase)(`)/, ['', 'string.link', '']],
|
||||
],
|
||||
citations: [
|
||||
[
|
||||
/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,
|
||||
[
|
||||
{ token: '', next: '@subsequentLines' },
|
||||
'string.link',
|
||||
'',
|
||||
'',
|
||||
],
|
||||
],
|
||||
],
|
||||
citationsReference: [
|
||||
[/(\[)(@citationName)(\]_)/, ['', 'string.link', '']],
|
||||
],
|
||||
footnotes: [
|
||||
[
|
||||
/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,
|
||||
[{ token: '', next: '@subsequentLines' }, 'string.link', ''],
|
||||
],
|
||||
[
|
||||
/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,
|
||||
[
|
||||
{ token: '', next: '@subsequentLines' },
|
||||
'string.link',
|
||||
'',
|
||||
'',
|
||||
],
|
||||
],
|
||||
[
|
||||
/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,
|
||||
[
|
||||
{ token: '', next: '@subsequentLines' },
|
||||
'string.link',
|
||||
'',
|
||||
'',
|
||||
],
|
||||
],
|
||||
],
|
||||
footnotesReference: [
|
||||
[/(\[)([0-9]+)(\])(_)/, ['', 'string.link', '', '']],
|
||||
[/(\[)(#@simpleRefName?)(\])(_)/, ['', 'string.link', '', '']],
|
||||
[/(\[)(\*)(\])(_)/, ['', 'string.link', '', '']],
|
||||
],
|
||||
blankLineOfLiteralBlocks: [
|
||||
[/^$/, '', '@subsequentLinesOfLiteralBlocks'],
|
||||
[/^.*$/, '', '@pop'],
|
||||
],
|
||||
subsequentLinesOfLiteralBlocks: [
|
||||
[/(@blockLiteralStart+)(.*)/, ['keyword', '']],
|
||||
[/^(?!blockLiteralStart)/, '', '@popall'],
|
||||
],
|
||||
subsequentLines: [
|
||||
[/^[\s]+.*/, ''],
|
||||
[/^(?!\s)/, '', '@pop'],
|
||||
],
|
||||
hyperlinks: [
|
||||
[/^[\s]+.*/, 'string.link'],
|
||||
[/^(?!\s)/, '', '@pop'],
|
||||
],
|
||||
comments: [
|
||||
[/^[\s]+.*/, 'comment'],
|
||||
[/^(?!\s)/, '', '@pop'],
|
||||
],
|
||||
tables: [
|
||||
[/\+-[+-]+/, 'keyword'],
|
||||
[/\+=[+=]+/, 'keyword'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,391 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1134, 6717],
|
||||
{
|
||||
41134: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => r });
|
||||
var i = n(96717),
|
||||
o = i.conf,
|
||||
r = {
|
||||
defaultToken: 'invalid',
|
||||
tokenPostfix: '.js',
|
||||
keywords: [
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'class',
|
||||
'continue',
|
||||
'const',
|
||||
'constructor',
|
||||
'debugger',
|
||||
'default',
|
||||
'delete',
|
||||
'do',
|
||||
'else',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'finally',
|
||||
'for',
|
||||
'from',
|
||||
'function',
|
||||
'get',
|
||||
'if',
|
||||
'import',
|
||||
'in',
|
||||
'instanceof',
|
||||
'let',
|
||||
'new',
|
||||
'null',
|
||||
'return',
|
||||
'set',
|
||||
'super',
|
||||
'switch',
|
||||
'symbol',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'typeof',
|
||||
'undefined',
|
||||
'var',
|
||||
'void',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
'async',
|
||||
'await',
|
||||
'of',
|
||||
],
|
||||
typeKeywords: [],
|
||||
operators: i.language.operators,
|
||||
symbols: i.language.symbols,
|
||||
escapes: i.language.escapes,
|
||||
digits: i.language.digits,
|
||||
octaldigits: i.language.octaldigits,
|
||||
binarydigits: i.language.binarydigits,
|
||||
hexdigits: i.language.hexdigits,
|
||||
regexpctl: i.language.regexpctl,
|
||||
regexpesc: i.language.regexpesc,
|
||||
tokenizer: i.language.tokenizer,
|
||||
};
|
||||
},
|
||||
96717: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => r });
|
||||
var i = n(89587),
|
||||
o = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
||||
afterText: /^\s*\*\/$/,
|
||||
action: {
|
||||
indentAction: i.Mj.IndentAction.IndentOutdent,
|
||||
appendText: ' * ',
|
||||
},
|
||||
},
|
||||
{
|
||||
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
||||
action: {
|
||||
indentAction: i.Mj.IndentAction.None,
|
||||
appendText: ' * ',
|
||||
},
|
||||
},
|
||||
{
|
||||
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
||||
action: {
|
||||
indentAction: i.Mj.IndentAction.None,
|
||||
appendText: '* ',
|
||||
},
|
||||
},
|
||||
{
|
||||
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
||||
action: { indentAction: i.Mj.IndentAction.None, removeText: 1 },
|
||||
},
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
||||
{ open: '/**', close: ' */', notIn: ['string'] },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*//\\s*#?region\\b'),
|
||||
end: new RegExp('^\\s*//\\s*#?endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: 'invalid',
|
||||
tokenPostfix: '.ts',
|
||||
keywords: [
|
||||
'abstract',
|
||||
'any',
|
||||
'as',
|
||||
'asserts',
|
||||
'bigint',
|
||||
'boolean',
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'class',
|
||||
'continue',
|
||||
'const',
|
||||
'constructor',
|
||||
'debugger',
|
||||
'declare',
|
||||
'default',
|
||||
'delete',
|
||||
'do',
|
||||
'else',
|
||||
'enum',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'finally',
|
||||
'for',
|
||||
'from',
|
||||
'function',
|
||||
'get',
|
||||
'if',
|
||||
'implements',
|
||||
'import',
|
||||
'in',
|
||||
'infer',
|
||||
'instanceof',
|
||||
'interface',
|
||||
'is',
|
||||
'keyof',
|
||||
'let',
|
||||
'module',
|
||||
'namespace',
|
||||
'never',
|
||||
'new',
|
||||
'null',
|
||||
'number',
|
||||
'object',
|
||||
'package',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'readonly',
|
||||
'require',
|
||||
'global',
|
||||
'return',
|
||||
'set',
|
||||
'static',
|
||||
'string',
|
||||
'super',
|
||||
'switch',
|
||||
'symbol',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'type',
|
||||
'typeof',
|
||||
'undefined',
|
||||
'unique',
|
||||
'unknown',
|
||||
'var',
|
||||
'void',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
'async',
|
||||
'await',
|
||||
'of',
|
||||
],
|
||||
operators: [
|
||||
'<=',
|
||||
'>=',
|
||||
'==',
|
||||
'!=',
|
||||
'===',
|
||||
'!==',
|
||||
'=>',
|
||||
'+',
|
||||
'-',
|
||||
'**',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'++',
|
||||
'--',
|
||||
'<<',
|
||||
'</',
|
||||
'>>',
|
||||
'>>>',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'!',
|
||||
'~',
|
||||
'&&',
|
||||
'||',
|
||||
'??',
|
||||
'?',
|
||||
':',
|
||||
'=',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'**=',
|
||||
'/=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'@',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
||||
tokenizer: {
|
||||
root: [[/[{}]/, 'delimiter.bracket'], { include: 'common' }],
|
||||
common: [
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{ cases: { '@keywords': 'keyword', '@default': 'identifier' } },
|
||||
],
|
||||
[/[A-Z][\w\$]*/, 'type.identifier'],
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
||||
{ token: 'regexp', bracket: '@open', next: '@regexp' },
|
||||
],
|
||||
[/[()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/!(?=([^=]|$))/, 'delimiter'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/(@digits)[eE]([\-+]?(@digits))?/, 'number.float'],
|
||||
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, 'number.float'],
|
||||
[/0[xX](@hexdigits)n?/, 'number.hex'],
|
||||
[/0[oO]?(@octaldigits)n?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)n?/, 'number.binary'],
|
||||
[/(@digits)n?/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string_double'],
|
||||
[/'/, 'string', '@string_single'],
|
||||
[/`/, 'string', '@string_backtick'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@jsdoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
jsdoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
regexp: [
|
||||
[
|
||||
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||
[
|
||||
'regexp.escape.control',
|
||||
'regexp.escape.control',
|
||||
'regexp.escape.control',
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
||||
[
|
||||
'regexp.escape.control',
|
||||
{ token: 'regexp.escape.control', next: '@regexrange' },
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\()(\?:|\?=|\?!)/,
|
||||
['regexp.escape.control', 'regexp.escape.control'],
|
||||
],
|
||||
[/[()]/, 'regexp.escape.control'],
|
||||
[/@regexpctl/, 'regexp.escape.control'],
|
||||
[/[^\\\/]/, 'regexp'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/\\\./, 'regexp.invalid'],
|
||||
[
|
||||
/(\/)([gimsuy]*)/,
|
||||
[
|
||||
{ token: 'regexp', bracket: '@close', next: '@pop' },
|
||||
'keyword.other',
|
||||
],
|
||||
],
|
||||
],
|
||||
regexrange: [
|
||||
[/-/, 'regexp.escape.control'],
|
||||
[/\^/, 'regexp.invalid'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/[^\]]/, 'regexp'],
|
||||
[
|
||||
/\]/,
|
||||
{
|
||||
token: 'regexp.escape.control',
|
||||
next: '@pop',
|
||||
bracket: '@close',
|
||||
},
|
||||
],
|
||||
],
|
||||
string_double: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
string_single: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, 'string', '@pop'],
|
||||
],
|
||||
string_backtick: [
|
||||
[
|
||||
/\$\{/,
|
||||
{ token: 'delimiter.bracket', next: '@bracketCounting' },
|
||||
],
|
||||
[/[^\\`$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/`/, 'string', '@pop'],
|
||||
],
|
||||
bracketCounting: [
|
||||
[/\{/, 'delimiter.bracket', '@bracketCounting'],
|
||||
[/\}/, 'delimiter.bracket', '@pop'],
|
||||
{ include: 'common' },
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,229 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1147],
|
||||
{
|
||||
21147: (e, r, t) => {
|
||||
'use strict';
|
||||
t.r(r), t.d(r, { conf: () => n, language: () => s });
|
||||
var n = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { blockComment: ['###', '###'], lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*#region\\b'),
|
||||
end: new RegExp('^\\s*#endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.coffee',
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
],
|
||||
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
||||
keywords: [
|
||||
'and',
|
||||
'or',
|
||||
'is',
|
||||
'isnt',
|
||||
'not',
|
||||
'on',
|
||||
'yes',
|
||||
'@',
|
||||
'no',
|
||||
'off',
|
||||
'true',
|
||||
'false',
|
||||
'null',
|
||||
'this',
|
||||
'new',
|
||||
'delete',
|
||||
'typeof',
|
||||
'in',
|
||||
'instanceof',
|
||||
'return',
|
||||
'throw',
|
||||
'break',
|
||||
'continue',
|
||||
'debugger',
|
||||
'if',
|
||||
'else',
|
||||
'switch',
|
||||
'for',
|
||||
'while',
|
||||
'do',
|
||||
'try',
|
||||
'catch',
|
||||
'finally',
|
||||
'class',
|
||||
'extends',
|
||||
'super',
|
||||
'undefined',
|
||||
'then',
|
||||
'unless',
|
||||
'until',
|
||||
'loop',
|
||||
'of',
|
||||
'by',
|
||||
'when',
|
||||
],
|
||||
symbols: /[=><!~?&%|+\-*\/\^\.,\:]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/\@[a-zA-Z_]\w*/, 'variable.predefined'],
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
this: 'variable.predefined',
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/###/, 'comment', '@comment'],
|
||||
[/#.*$/, 'comment'],
|
||||
['///', { token: 'regexp', next: '@hereregexp' }],
|
||||
[/^(\s*)(@regEx)/, ['', 'regexp']],
|
||||
[/(\()(\s*)(@regEx)/, ['@brackets', '', 'regexp']],
|
||||
[/(\,)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\=)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\:)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\[)(\s*)(@regEx)/, ['@brackets', '', 'regexp']],
|
||||
[/(\!)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\&)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\|)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\?)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\{)(\s*)(@regEx)/, ['@brackets', '', 'regexp']],
|
||||
[/(\;)(\s*)(@regEx)/, ['', '', 'regexp']],
|
||||
[
|
||||
/}/,
|
||||
{
|
||||
cases: {
|
||||
'$S2==interpolatedstring': {
|
||||
token: 'string',
|
||||
next: '@pop',
|
||||
},
|
||||
'@default': '@brackets',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d+[eE]([\-+]?\d+)?/, 'number.float'],
|
||||
[/\d+\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/0[0-7]+(?!\d)/, 'number.octal'],
|
||||
[/\d+/, 'number'],
|
||||
[/[,.]/, 'delimiter'],
|
||||
[/"""/, 'string', '@herestring."""'],
|
||||
[/'''/, 'string', "@herestring.'''"],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'string',
|
||||
'@default': { token: 'string', next: '@string."' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/'/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'string',
|
||||
'@default': { token: 'string', next: "@string.'" },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
string: [
|
||||
[/[^"'\#\\]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\./, 'string.escape.invalid'],
|
||||
[/\./, 'string.escape.invalid'],
|
||||
[
|
||||
/#{/,
|
||||
{
|
||||
cases: {
|
||||
'$S2=="': {
|
||||
token: 'string',
|
||||
next: 'root.interpolatedstring',
|
||||
},
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/#/, 'string'],
|
||||
],
|
||||
herestring: [
|
||||
[
|
||||
/("""|''')/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[^#\\'"]+/, 'string'],
|
||||
[/['"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\./, 'string.escape.invalid'],
|
||||
[
|
||||
/#{/,
|
||||
{ token: 'string.quote', next: 'root.interpolatedstring' },
|
||||
],
|
||||
[/#/, 'string'],
|
||||
],
|
||||
comment: [
|
||||
[/[^#]+/, 'comment'],
|
||||
[/###/, 'comment', '@pop'],
|
||||
[/#/, 'comment'],
|
||||
],
|
||||
hereregexp: [
|
||||
[/[^\\\/#]+/, 'regexp'],
|
||||
[/\\./, 'regexp'],
|
||||
[/#.*$/, 'comment'],
|
||||
['///[igm]*', { token: 'regexp', next: '@pop' }],
|
||||
[/\//, 'regexp'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-1344
File diff suppressed because it is too large
Load Diff
@@ -1,299 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1259],
|
||||
{
|
||||
91259: (E, S, e) => {
|
||||
'use strict';
|
||||
e.r(S), e.d(S, { conf: () => T, language: () => R });
|
||||
var T = {
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
R = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.redis',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
],
|
||||
keywords: [
|
||||
'APPEND',
|
||||
'AUTH',
|
||||
'BGREWRITEAOF',
|
||||
'BGSAVE',
|
||||
'BITCOUNT',
|
||||
'BITFIELD',
|
||||
'BITOP',
|
||||
'BITPOS',
|
||||
'BLPOP',
|
||||
'BRPOP',
|
||||
'BRPOPLPUSH',
|
||||
'CLIENT',
|
||||
'KILL',
|
||||
'LIST',
|
||||
'GETNAME',
|
||||
'PAUSE',
|
||||
'REPLY',
|
||||
'SETNAME',
|
||||
'CLUSTER',
|
||||
'ADDSLOTS',
|
||||
'COUNT-FAILURE-REPORTS',
|
||||
'COUNTKEYSINSLOT',
|
||||
'DELSLOTS',
|
||||
'FAILOVER',
|
||||
'FORGET',
|
||||
'GETKEYSINSLOT',
|
||||
'INFO',
|
||||
'KEYSLOT',
|
||||
'MEET',
|
||||
'NODES',
|
||||
'REPLICATE',
|
||||
'RESET',
|
||||
'SAVECONFIG',
|
||||
'SET-CONFIG-EPOCH',
|
||||
'SETSLOT',
|
||||
'SLAVES',
|
||||
'SLOTS',
|
||||
'COMMAND',
|
||||
'COUNT',
|
||||
'GETKEYS',
|
||||
'CONFIG',
|
||||
'GET',
|
||||
'REWRITE',
|
||||
'SET',
|
||||
'RESETSTAT',
|
||||
'DBSIZE',
|
||||
'DEBUG',
|
||||
'OBJECT',
|
||||
'SEGFAULT',
|
||||
'DECR',
|
||||
'DECRBY',
|
||||
'DEL',
|
||||
'DISCARD',
|
||||
'DUMP',
|
||||
'ECHO',
|
||||
'EVAL',
|
||||
'EVALSHA',
|
||||
'EXEC',
|
||||
'EXISTS',
|
||||
'EXPIRE',
|
||||
'EXPIREAT',
|
||||
'FLUSHALL',
|
||||
'FLUSHDB',
|
||||
'GEOADD',
|
||||
'GEOHASH',
|
||||
'GEOPOS',
|
||||
'GEODIST',
|
||||
'GEORADIUS',
|
||||
'GEORADIUSBYMEMBER',
|
||||
'GETBIT',
|
||||
'GETRANGE',
|
||||
'GETSET',
|
||||
'HDEL',
|
||||
'HEXISTS',
|
||||
'HGET',
|
||||
'HGETALL',
|
||||
'HINCRBY',
|
||||
'HINCRBYFLOAT',
|
||||
'HKEYS',
|
||||
'HLEN',
|
||||
'HMGET',
|
||||
'HMSET',
|
||||
'HSET',
|
||||
'HSETNX',
|
||||
'HSTRLEN',
|
||||
'HVALS',
|
||||
'INCR',
|
||||
'INCRBY',
|
||||
'INCRBYFLOAT',
|
||||
'KEYS',
|
||||
'LASTSAVE',
|
||||
'LINDEX',
|
||||
'LINSERT',
|
||||
'LLEN',
|
||||
'LPOP',
|
||||
'LPUSH',
|
||||
'LPUSHX',
|
||||
'LRANGE',
|
||||
'LREM',
|
||||
'LSET',
|
||||
'LTRIM',
|
||||
'MGET',
|
||||
'MIGRATE',
|
||||
'MONITOR',
|
||||
'MOVE',
|
||||
'MSET',
|
||||
'MSETNX',
|
||||
'MULTI',
|
||||
'PERSIST',
|
||||
'PEXPIRE',
|
||||
'PEXPIREAT',
|
||||
'PFADD',
|
||||
'PFCOUNT',
|
||||
'PFMERGE',
|
||||
'PING',
|
||||
'PSETEX',
|
||||
'PSUBSCRIBE',
|
||||
'PUBSUB',
|
||||
'PTTL',
|
||||
'PUBLISH',
|
||||
'PUNSUBSCRIBE',
|
||||
'QUIT',
|
||||
'RANDOMKEY',
|
||||
'READONLY',
|
||||
'READWRITE',
|
||||
'RENAME',
|
||||
'RENAMENX',
|
||||
'RESTORE',
|
||||
'ROLE',
|
||||
'RPOP',
|
||||
'RPOPLPUSH',
|
||||
'RPUSH',
|
||||
'RPUSHX',
|
||||
'SADD',
|
||||
'SAVE',
|
||||
'SCARD',
|
||||
'SCRIPT',
|
||||
'FLUSH',
|
||||
'LOAD',
|
||||
'SDIFF',
|
||||
'SDIFFSTORE',
|
||||
'SELECT',
|
||||
'SETBIT',
|
||||
'SETEX',
|
||||
'SETNX',
|
||||
'SETRANGE',
|
||||
'SHUTDOWN',
|
||||
'SINTER',
|
||||
'SINTERSTORE',
|
||||
'SISMEMBER',
|
||||
'SLAVEOF',
|
||||
'SLOWLOG',
|
||||
'SMEMBERS',
|
||||
'SMOVE',
|
||||
'SORT',
|
||||
'SPOP',
|
||||
'SRANDMEMBER',
|
||||
'SREM',
|
||||
'STRLEN',
|
||||
'SUBSCRIBE',
|
||||
'SUNION',
|
||||
'SUNIONSTORE',
|
||||
'SWAPDB',
|
||||
'SYNC',
|
||||
'TIME',
|
||||
'TOUCH',
|
||||
'TTL',
|
||||
'TYPE',
|
||||
'UNSUBSCRIBE',
|
||||
'UNLINK',
|
||||
'UNWATCH',
|
||||
'WAIT',
|
||||
'WATCH',
|
||||
'ZADD',
|
||||
'ZCARD',
|
||||
'ZCOUNT',
|
||||
'ZINCRBY',
|
||||
'ZINTERSTORE',
|
||||
'ZLEXCOUNT',
|
||||
'ZRANGE',
|
||||
'ZRANGEBYLEX',
|
||||
'ZREVRANGEBYLEX',
|
||||
'ZRANGEBYSCORE',
|
||||
'ZRANK',
|
||||
'ZREM',
|
||||
'ZREMRANGEBYLEX',
|
||||
'ZREMRANGEBYRANK',
|
||||
'ZREMRANGEBYSCORE',
|
||||
'ZREVRANGE',
|
||||
'ZREVRANGEBYSCORE',
|
||||
'ZREVRANK',
|
||||
'ZSCORE',
|
||||
'ZUNIONSTORE',
|
||||
'SCAN',
|
||||
'SSCAN',
|
||||
'HSCAN',
|
||||
'ZSCAN',
|
||||
],
|
||||
operators: [],
|
||||
builtinFunctions: [],
|
||||
builtinVariables: [],
|
||||
pseudoColumns: [],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@pseudoColumns' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@scopes' },
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/[()]/, '@brackets'],
|
||||
[
|
||||
/[\w@#$]+/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@operators': 'operator',
|
||||
'@builtinVariables': 'predefined',
|
||||
'@builtinFunctions': 'predefined',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[<>=!%&+\-*/|~^]/, 'operator'],
|
||||
],
|
||||
whitespace: [[/\s+/, 'white']],
|
||||
pseudoColumns: [
|
||||
[
|
||||
/[$][A-Za-z_][\w@#$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@pseudoColumns': 'predefined',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
numbers: [
|
||||
[/0[xX][0-9a-fA-F]*/, 'number'],
|
||||
[/[$][+-]*\d*(\.\d*)?/, 'number'],
|
||||
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, 'number'],
|
||||
],
|
||||
strings: [
|
||||
[/'/, { token: 'string', next: '@string' }],
|
||||
[/"/, { token: 'string.double', next: '@stringDouble' }],
|
||||
],
|
||||
string: [
|
||||
[/[^']+/, 'string'],
|
||||
[/''/, 'string'],
|
||||
[/'/, { token: 'string', next: '@pop' }],
|
||||
],
|
||||
stringDouble: [
|
||||
[/[^"]+/, 'string.double'],
|
||||
[/""/, 'string.double'],
|
||||
[/"/, { token: 'string.double', next: '@pop' }],
|
||||
],
|
||||
scopes: [],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,150 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1448],
|
||||
{
|
||||
11448: (e, t, o) => {
|
||||
'use strict';
|
||||
o.r(t), o.d(t, { conf: () => n, language: () => s });
|
||||
var n = {
|
||||
comments: { lineComment: '//', blockComment: ['(*', '*)'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['<', '>'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.cameligo',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
keywords: [
|
||||
'abs',
|
||||
'begin',
|
||||
'Bytes',
|
||||
'Crypto',
|
||||
'Current',
|
||||
'else',
|
||||
'end',
|
||||
'failwith',
|
||||
'false',
|
||||
'fun',
|
||||
'if',
|
||||
'in',
|
||||
'let',
|
||||
'let%entry',
|
||||
'let%init',
|
||||
'List',
|
||||
'list',
|
||||
'Map',
|
||||
'map',
|
||||
'match',
|
||||
'match%nat',
|
||||
'mod',
|
||||
'not',
|
||||
'operation',
|
||||
'Operation',
|
||||
'of',
|
||||
'Set',
|
||||
'set',
|
||||
'sender',
|
||||
'source',
|
||||
'String',
|
||||
'then',
|
||||
'true',
|
||||
'type',
|
||||
'with',
|
||||
],
|
||||
typeKeywords: ['int', 'unit', 'string', 'tz'],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'<=',
|
||||
'>=',
|
||||
'<>',
|
||||
':',
|
||||
':=',
|
||||
'and',
|
||||
'mod',
|
||||
'or',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'@',
|
||||
'&',
|
||||
'^',
|
||||
'%',
|
||||
'->',
|
||||
'<-',
|
||||
],
|
||||
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_][\w]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\$[0-9a-fA-F]{1,16}/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/'/, 'string.invalid'],
|
||||
[/\#\d+/, 'string'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\(\*]+/, 'comment'],
|
||||
[/\*\)/, 'comment', '@pop'],
|
||||
[/\(\*/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\(\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,67 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1471],
|
||||
{
|
||||
31471: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => s, language: () => i });
|
||||
var s = { comments: { lineComment: '#' } },
|
||||
i = {
|
||||
defaultToken: 'keyword',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.azcli',
|
||||
str: /[^#\s]/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@comment' },
|
||||
[
|
||||
/\s-+@str*\s*/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'key.identifier', next: '@popall' },
|
||||
'@default': { token: 'key.identifier', next: '@type' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/^-+@str*\s*/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'key.identifier', next: '@popall' },
|
||||
'@default': { token: 'key.identifier', next: '@type' },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
type: [
|
||||
{ include: '@comment' },
|
||||
[
|
||||
/-+@str*\s*/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'key.identifier', next: '@popall' },
|
||||
'@default': 'key.identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/@str+\s*/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
comment: [
|
||||
[
|
||||
/#.*$/,
|
||||
{ cases: { '@eos': { token: 'comment', next: '@popall' } } },
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-421
@@ -1,421 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[180],
|
||||
{
|
||||
90180: (e, t, o) => {
|
||||
'use strict';
|
||||
o.r(t), o.d(t, { conf: () => r, language: () => n });
|
||||
var r = {
|
||||
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))'
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
n = {
|
||||
tokenPostfix: '.scala',
|
||||
keywords: [
|
||||
'asInstanceOf',
|
||||
'catch',
|
||||
'class',
|
||||
'classOf',
|
||||
'def',
|
||||
'do',
|
||||
'else',
|
||||
'extends',
|
||||
'finally',
|
||||
'for',
|
||||
'foreach',
|
||||
'forSome',
|
||||
'if',
|
||||
'import',
|
||||
'isInstanceOf',
|
||||
'macro',
|
||||
'match',
|
||||
'new',
|
||||
'object',
|
||||
'package',
|
||||
'return',
|
||||
'throw',
|
||||
'trait',
|
||||
'try',
|
||||
'type',
|
||||
'until',
|
||||
'val',
|
||||
'var',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
'given',
|
||||
'enum',
|
||||
'then',
|
||||
],
|
||||
softKeywords: ['as', 'export', 'extension', 'end', 'derives', 'on'],
|
||||
constants: ['true', 'false', 'null', 'this', 'super'],
|
||||
modifiers: [
|
||||
'abstract',
|
||||
'final',
|
||||
'implicit',
|
||||
'lazy',
|
||||
'override',
|
||||
'private',
|
||||
'protected',
|
||||
'sealed',
|
||||
],
|
||||
softModifiers: ['inline', 'opaque', 'open', 'transparent', 'using'],
|
||||
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
||||
type: /(?:[A-Z][\w$]*)/,
|
||||
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/\braw"""/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@open',
|
||||
next: '@rawstringt',
|
||||
},
|
||||
],
|
||||
[
|
||||
/\braw"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@rawstring' },
|
||||
],
|
||||
[
|
||||
/\bs"""/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@sstringt' },
|
||||
],
|
||||
[
|
||||
/\bs"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@sstring' },
|
||||
],
|
||||
[
|
||||
/\bf""""/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@fstringt' },
|
||||
],
|
||||
[
|
||||
/\bf"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@fstring' },
|
||||
],
|
||||
[
|
||||
/"""/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@stringt' },
|
||||
],
|
||||
[
|
||||
/"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@string' },
|
||||
],
|
||||
[
|
||||
/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,
|
||||
'number.float',
|
||||
'@allowMethod',
|
||||
],
|
||||
[
|
||||
/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,
|
||||
'number.float',
|
||||
'@allowMethod',
|
||||
],
|
||||
[/0[xX](@hexdigits)[Ll]?/, 'number.hex', '@allowMethod'],
|
||||
[/(@digits)[fFdD]/, 'number.float', '@allowMethod'],
|
||||
[/(@digits)[lL]?/, 'number', '@allowMethod'],
|
||||
[/\b_\*/, 'key'],
|
||||
[/\b(_)\b/, 'keyword', '@allowMethod'],
|
||||
[/\bimport\b/, 'keyword', '@import'],
|
||||
[
|
||||
/\b(case)([ \t]+)(class)\b/,
|
||||
['keyword.modifier', 'white', 'keyword'],
|
||||
],
|
||||
[/\bcase\b/, 'keyword', '@case'],
|
||||
[/\bva[lr]\b/, 'keyword', '@vardef'],
|
||||
[
|
||||
/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
|
||||
['keyword', 'white', 'identifier'],
|
||||
],
|
||||
[/@name(?=[ \t]*:(?!:))/, 'variable'],
|
||||
[
|
||||
/(\.)(@name|@symbols)/,
|
||||
['operator', { token: '@rematch', next: '@allowMethod' }],
|
||||
],
|
||||
[
|
||||
/([{(])(\s*)(@name(?=\s*=>))/,
|
||||
['@brackets', 'white', 'variable'],
|
||||
],
|
||||
[
|
||||
/@name/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@softKeywords': 'keyword',
|
||||
'@modifiers': 'keyword.modifier',
|
||||
'@softModifiers': 'keyword.modifier',
|
||||
'@constants': { token: 'constant', next: '@allowMethod' },
|
||||
'@default': { token: 'identifier', next: '@allowMethod' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[/@type/, 'type', '@allowMethod'],
|
||||
{ include: '@whitespace' },
|
||||
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, 'annotation'],
|
||||
[/[{(]/, '@brackets'],
|
||||
[/[})]/, '@brackets', '@allowMethod'],
|
||||
[/\[/, 'operator.square'],
|
||||
[
|
||||
/](?!\s*(?:va[rl]|def|type)\b)/,
|
||||
'operator.square',
|
||||
'@allowMethod',
|
||||
],
|
||||
[/]/, 'operator.square'],
|
||||
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, 'keyword'],
|
||||
[/@symbols/, 'operator'],
|
||||
[/[;,\.]/, 'delimiter'],
|
||||
[/'[a-zA-Z$][\w$]*(?!')/, 'attribute.name'],
|
||||
[/'[^\\']'/, 'string', '@allowMethod'],
|
||||
[
|
||||
/(')(@escapes)(')/,
|
||||
[
|
||||
'string',
|
||||
'string.escape',
|
||||
{ token: 'string', next: '@allowMethod' },
|
||||
],
|
||||
],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
import: [
|
||||
[/;/, 'delimiter', '@pop'],
|
||||
[/^|$/, '', '@pop'],
|
||||
[/[ \t]+/, 'white'],
|
||||
[/[\n\r]+/, 'white', '@pop'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/@name|@type/, 'type'],
|
||||
[/[(){}]/, '@brackets'],
|
||||
[/[[\]]/, 'operator.square'],
|
||||
[/[\.,]/, 'delimiter'],
|
||||
],
|
||||
allowMethod: [
|
||||
[/^|$/, '', '@pop'],
|
||||
[/[ \t]+/, 'white'],
|
||||
[/[\n\r]+/, 'white', '@pop'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/(?==>[\s\w([{])/, 'keyword', '@pop'],
|
||||
[
|
||||
/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword', next: '@pop' },
|
||||
'->|<-|>:|<:|<%': { token: 'keyword', next: '@pop' },
|
||||
'@default': { token: '@rematch', next: '@pop' },
|
||||
},
|
||||
},
|
||||
],
|
||||
['', '', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\/\*/, 'comment', '@push'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
case: [
|
||||
[/\b_\*/, 'key'],
|
||||
[/\b(_|true|false|null|this|super)\b/, 'keyword', '@allowMethod'],
|
||||
[/\bif\b|=>/, 'keyword', '@pop'],
|
||||
[/`[^`]+`/, 'identifier', '@allowMethod'],
|
||||
[/@name/, 'variable', '@allowMethod'],
|
||||
[/:::?|\||@(?![a-z_$])/, 'keyword'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
vardef: [
|
||||
[/\b_\*/, 'key'],
|
||||
[/\b(_|true|false|null|this|super)\b/, 'keyword'],
|
||||
[/@name/, 'variable'],
|
||||
[/:::?|\||@(?![a-z_$])/, 'keyword'],
|
||||
[/=|:(?!:)/, 'operator', '@pop'],
|
||||
[/$/, 'white', '@pop'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
string: [
|
||||
[/[^\\"\n\r]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
],
|
||||
stringt: [
|
||||
[/[^\\"\n\r]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"(?=""")/, 'string'],
|
||||
[
|
||||
/"""/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
[/"/, 'string'],
|
||||
],
|
||||
fstring: [
|
||||
[/@escapes/, 'string.escape'],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
[/\$\$/, 'string'],
|
||||
[/(\$)([a-z_]\w*)/, ['operator', 'identifier']],
|
||||
[/\$\{/, 'operator', '@interp'],
|
||||
[/%%/, 'string'],
|
||||
[
|
||||
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
||||
['metatag', 'keyword.modifier', 'number', 'metatag'],
|
||||
],
|
||||
[
|
||||
/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
||||
['metatag', 'number', 'metatag'],
|
||||
],
|
||||
[
|
||||
/(%)([\-#+ 0,(])(@fstring_conv)/,
|
||||
['metatag', 'keyword.modifier', 'metatag'],
|
||||
],
|
||||
[/(%)(@fstring_conv)/, ['metatag', 'metatag']],
|
||||
[/./, 'string'],
|
||||
],
|
||||
fstringt: [
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/"(?=""")/, 'string'],
|
||||
[
|
||||
/"""/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
[/\$\$/, 'string'],
|
||||
[/(\$)([a-z_]\w*)/, ['operator', 'identifier']],
|
||||
[/\$\{/, 'operator', '@interp'],
|
||||
[/%%/, 'string'],
|
||||
[
|
||||
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
||||
['metatag', 'keyword.modifier', 'number', 'metatag'],
|
||||
],
|
||||
[
|
||||
/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
||||
['metatag', 'number', 'metatag'],
|
||||
],
|
||||
[
|
||||
/(%)([\-#+ 0,(])(@fstring_conv)/,
|
||||
['metatag', 'keyword.modifier', 'metatag'],
|
||||
],
|
||||
[/(%)(@fstring_conv)/, ['metatag', 'metatag']],
|
||||
[/./, 'string'],
|
||||
],
|
||||
sstring: [
|
||||
[/@escapes/, 'string.escape'],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
[/\$\$/, 'string'],
|
||||
[/(\$)([a-z_]\w*)/, ['operator', 'identifier']],
|
||||
[/\$\{/, 'operator', '@interp'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
sstringt: [
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/"(?=""")/, 'string'],
|
||||
[
|
||||
/"""/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
[/\$\$/, 'string'],
|
||||
[/(\$)([a-z_]\w*)/, ['operator', 'identifier']],
|
||||
[/\$\{/, 'operator', '@interp'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
interp: [
|
||||
[/{/, 'operator', '@push'],
|
||||
[/}/, 'operator', '@pop'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
rawstring: [
|
||||
[/[^"]/, 'string'],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
],
|
||||
rawstringt: [
|
||||
[/[^"]/, 'string'],
|
||||
[/"(?=""")/, 'string'],
|
||||
[
|
||||
/"""/,
|
||||
{
|
||||
token: 'string.quote',
|
||||
bracket: '@close',
|
||||
switchTo: '@allowMethod',
|
||||
},
|
||||
],
|
||||
[/"/, 'string'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,563 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1886],
|
||||
{
|
||||
81886: (e, n, i) => {
|
||||
'use strict';
|
||||
i.r(n), i.d(n, { conf: () => t, language: () => r });
|
||||
var t = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['begin', 'end'],
|
||||
['case', 'endcase'],
|
||||
['casex', 'endcase'],
|
||||
['casez', 'endcase'],
|
||||
['checker', 'endchecker'],
|
||||
['class', 'endclass'],
|
||||
['clocking', 'endclocking'],
|
||||
['config', 'endconfig'],
|
||||
['function', 'endfunction'],
|
||||
['generate', 'endgenerate'],
|
||||
['group', 'endgroup'],
|
||||
['interface', 'endinterface'],
|
||||
['module', 'endmodule'],
|
||||
['package', 'endpackage'],
|
||||
['primitive', 'endprimitive'],
|
||||
['program', 'endprogram'],
|
||||
['property', 'endproperty'],
|
||||
['specify', 'endspecify'],
|
||||
['sequence', 'endsequence'],
|
||||
['table', 'endtable'],
|
||||
['task', 'endtask'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
offSide: !1,
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b'
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.sv',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
{ token: 'delimiter.angle', open: '<', close: '>' },
|
||||
],
|
||||
keywords: [
|
||||
'accept_on',
|
||||
'alias',
|
||||
'always',
|
||||
'always_comb',
|
||||
'always_ff',
|
||||
'always_latch',
|
||||
'and',
|
||||
'assert',
|
||||
'assign',
|
||||
'assume',
|
||||
'automatic',
|
||||
'before',
|
||||
'begin',
|
||||
'bind',
|
||||
'bins',
|
||||
'binsof',
|
||||
'bit',
|
||||
'break',
|
||||
'buf',
|
||||
'bufif0',
|
||||
'bufif1',
|
||||
'byte',
|
||||
'case',
|
||||
'casex',
|
||||
'casez',
|
||||
'cell',
|
||||
'chandle',
|
||||
'checker',
|
||||
'class',
|
||||
'clocking',
|
||||
'cmos',
|
||||
'config',
|
||||
'const',
|
||||
'constraint',
|
||||
'context',
|
||||
'continue',
|
||||
'cover',
|
||||
'covergroup',
|
||||
'coverpoint',
|
||||
'cross',
|
||||
'deassign',
|
||||
'default',
|
||||
'defparam',
|
||||
'design',
|
||||
'disable',
|
||||
'dist',
|
||||
'do',
|
||||
'edge',
|
||||
'else',
|
||||
'end',
|
||||
'endcase',
|
||||
'endchecker',
|
||||
'endclass',
|
||||
'endclocking',
|
||||
'endconfig',
|
||||
'endfunction',
|
||||
'endgenerate',
|
||||
'endgroup',
|
||||
'endinterface',
|
||||
'endmodule',
|
||||
'endpackage',
|
||||
'endprimitive',
|
||||
'endprogram',
|
||||
'endproperty',
|
||||
'endspecify',
|
||||
'endsequence',
|
||||
'endtable',
|
||||
'endtask',
|
||||
'enum',
|
||||
'event',
|
||||
'eventually',
|
||||
'expect',
|
||||
'export',
|
||||
'extends',
|
||||
'extern',
|
||||
'final',
|
||||
'first_match',
|
||||
'for',
|
||||
'force',
|
||||
'foreach',
|
||||
'forever',
|
||||
'fork',
|
||||
'forkjoin',
|
||||
'function',
|
||||
'generate',
|
||||
'genvar',
|
||||
'global',
|
||||
'highz0',
|
||||
'highz1',
|
||||
'if',
|
||||
'iff',
|
||||
'ifnone',
|
||||
'ignore_bins',
|
||||
'illegal_bins',
|
||||
'implements',
|
||||
'implies',
|
||||
'import',
|
||||
'incdir',
|
||||
'include',
|
||||
'initial',
|
||||
'inout',
|
||||
'input',
|
||||
'inside',
|
||||
'instance',
|
||||
'int',
|
||||
'integer',
|
||||
'interconnect',
|
||||
'interface',
|
||||
'intersect',
|
||||
'join',
|
||||
'join_any',
|
||||
'join_none',
|
||||
'large',
|
||||
'let',
|
||||
'liblist',
|
||||
'library',
|
||||
'local',
|
||||
'localparam',
|
||||
'logic',
|
||||
'longint',
|
||||
'macromodule',
|
||||
'matches',
|
||||
'medium',
|
||||
'modport',
|
||||
'module',
|
||||
'nand',
|
||||
'negedge',
|
||||
'nettype',
|
||||
'new',
|
||||
'nexttime',
|
||||
'nmos',
|
||||
'nor',
|
||||
'noshowcancelled',
|
||||
'not',
|
||||
'notif0',
|
||||
'notif1',
|
||||
'null',
|
||||
'or',
|
||||
'output',
|
||||
'package',
|
||||
'packed',
|
||||
'parameter',
|
||||
'pmos',
|
||||
'posedge',
|
||||
'primitive',
|
||||
'priority',
|
||||
'program',
|
||||
'property',
|
||||
'protected',
|
||||
'pull0',
|
||||
'pull1',
|
||||
'pulldown',
|
||||
'pullup',
|
||||
'pulsestyle_ondetect',
|
||||
'pulsestyle_onevent',
|
||||
'pure',
|
||||
'rand',
|
||||
'randc',
|
||||
'randcase',
|
||||
'randsequence',
|
||||
'rcmos',
|
||||
'real',
|
||||
'realtime',
|
||||
'ref',
|
||||
'reg',
|
||||
'reject_on',
|
||||
'release',
|
||||
'repeat',
|
||||
'restrict',
|
||||
'return',
|
||||
'rnmos',
|
||||
'rpmos',
|
||||
'rtran',
|
||||
'rtranif0',
|
||||
'rtranif1',
|
||||
's_always',
|
||||
's_eventually',
|
||||
's_nexttime',
|
||||
's_until',
|
||||
's_until_with',
|
||||
'scalared',
|
||||
'sequence',
|
||||
'shortint',
|
||||
'shortreal',
|
||||
'showcancelled',
|
||||
'signed',
|
||||
'small',
|
||||
'soft',
|
||||
'solve',
|
||||
'specify',
|
||||
'specparam',
|
||||
'static',
|
||||
'string',
|
||||
'strong',
|
||||
'strong0',
|
||||
'strong1',
|
||||
'struct',
|
||||
'super',
|
||||
'supply0',
|
||||
'supply1',
|
||||
'sync_accept_on',
|
||||
'sync_reject_on',
|
||||
'table',
|
||||
'tagged',
|
||||
'task',
|
||||
'this',
|
||||
'throughout',
|
||||
'time',
|
||||
'timeprecision',
|
||||
'timeunit',
|
||||
'tran',
|
||||
'tranif0',
|
||||
'tranif1',
|
||||
'tri',
|
||||
'tri0',
|
||||
'tri1',
|
||||
'triand',
|
||||
'trior',
|
||||
'trireg',
|
||||
'type',
|
||||
'typedef',
|
||||
'union',
|
||||
'unique',
|
||||
'unique0',
|
||||
'unsigned',
|
||||
'until',
|
||||
'until_with',
|
||||
'untyped',
|
||||
'use',
|
||||
'uwire',
|
||||
'var',
|
||||
'vectored',
|
||||
'virtual',
|
||||
'void',
|
||||
'wait',
|
||||
'wait_order',
|
||||
'wand',
|
||||
'weak',
|
||||
'weak0',
|
||||
'weak1',
|
||||
'while',
|
||||
'wildcard',
|
||||
'wire',
|
||||
'with',
|
||||
'within',
|
||||
'wor',
|
||||
'xnor',
|
||||
'xor',
|
||||
],
|
||||
builtin_gates: [
|
||||
'and',
|
||||
'nand',
|
||||
'nor',
|
||||
'or',
|
||||
'xor',
|
||||
'xnor',
|
||||
'buf',
|
||||
'not',
|
||||
'bufif0',
|
||||
'bufif1',
|
||||
'notif1',
|
||||
'notif0',
|
||||
'cmos',
|
||||
'nmos',
|
||||
'pmos',
|
||||
'rcmos',
|
||||
'rnmos',
|
||||
'rpmos',
|
||||
'tran',
|
||||
'tranif1',
|
||||
'tranif0',
|
||||
'rtran',
|
||||
'rtranif1',
|
||||
'rtranif0',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'%=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'<<=',
|
||||
'>>+',
|
||||
'<<<=',
|
||||
'>>>=',
|
||||
'?',
|
||||
':',
|
||||
'+',
|
||||
'-',
|
||||
'!',
|
||||
'~',
|
||||
'&',
|
||||
'~&',
|
||||
'|',
|
||||
'~|',
|
||||
'^',
|
||||
'~^',
|
||||
'^~',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'==',
|
||||
'!=',
|
||||
'===',
|
||||
'!==',
|
||||
'==?',
|
||||
'!=?',
|
||||
'&&',
|
||||
'||',
|
||||
'**',
|
||||
'<',
|
||||
'<=',
|
||||
'>',
|
||||
'>=',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'>>',
|
||||
'<<',
|
||||
'>>>',
|
||||
'<<<',
|
||||
'++',
|
||||
'--',
|
||||
'->',
|
||||
'<->',
|
||||
'inside',
|
||||
'dist',
|
||||
'::',
|
||||
'+:',
|
||||
'-:',
|
||||
'*>',
|
||||
'&&&',
|
||||
'|->',
|
||||
'|=>',
|
||||
'#=#',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%#]+/,
|
||||
escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
|
||||
identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
|
||||
systemcall: /[$][a-zA-Z0-9_]+/,
|
||||
timeunits: /s|ms|us|ns|ps|fs/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/^(\s*)(@identifier)/,
|
||||
[
|
||||
'',
|
||||
{
|
||||
cases: {
|
||||
'@builtin_gates': {
|
||||
token: 'keyword.$2',
|
||||
next: '@module_instance',
|
||||
},
|
||||
'@keywords': { token: 'keyword.$2' },
|
||||
'@default': {
|
||||
token: 'identifier',
|
||||
next: '@module_instance',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
[
|
||||
/^\s*`include/,
|
||||
{ token: 'keyword.directive.include', next: '@include' },
|
||||
],
|
||||
[/^\s*`\s*\w+/, 'keyword'],
|
||||
{ include: '@identifier_or_keyword' },
|
||||
{ include: '@whitespace' },
|
||||
[/\(\*.*\*\)/, 'annotation'],
|
||||
[/@systemcall/, 'variable.predefined'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
{ include: '@numbers' },
|
||||
[/[;,.]/, 'delimiter'],
|
||||
{ include: '@strings' },
|
||||
],
|
||||
identifier_or_keyword: [
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
numbers: [
|
||||
[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, 'number.float'],
|
||||
[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, 'number.float'],
|
||||
[
|
||||
/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,
|
||||
'number',
|
||||
],
|
||||
[
|
||||
/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,
|
||||
'number.binary',
|
||||
],
|
||||
[
|
||||
/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,
|
||||
'number.octal',
|
||||
],
|
||||
[
|
||||
/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,
|
||||
'number.hex',
|
||||
],
|
||||
[/1step/, 'number'],
|
||||
[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, 'number'],
|
||||
[/'[01xXzZ]+/, 'number'],
|
||||
],
|
||||
module_instance: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/(#?)(\()/,
|
||||
['', { token: '@brackets', next: '@port_connection' }],
|
||||
],
|
||||
[
|
||||
/@identifier\s*[;={}\[\],]/,
|
||||
{ token: '@rematch', next: '@pop' },
|
||||
],
|
||||
[/@symbols|[;={}\[\],]/, { token: '@rematch', next: '@pop' }],
|
||||
[/@identifier/, 'type'],
|
||||
[/;/, 'delimiter', '@pop'],
|
||||
],
|
||||
port_connection: [
|
||||
{ include: '@identifier_or_keyword' },
|
||||
{ include: '@whitespace' },
|
||||
[/@systemcall/, 'variable.predefined'],
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
[/[,]/, 'delimiter'],
|
||||
[/\(/, '@brackets', '@port_connection'],
|
||||
[/\)/, '@brackets', '@pop'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
strings: [
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
include: [
|
||||
[
|
||||
/(\s*)(")([\w*\/*]*)(.\w*)(")/,
|
||||
[
|
||||
'',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
{ token: 'string.include.identifier', next: '@pop' },
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,
|
||||
[
|
||||
'',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
{ token: 'string.include.identifier', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,378 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[1960],
|
||||
{
|
||||
71960: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => i, language: () => r });
|
||||
var i = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*#pragma\\s+region\\b'),
|
||||
end: new RegExp('^\\s*#pragma\\s+endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.cpp',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
{ token: 'delimiter.angle', open: '<', close: '>' },
|
||||
],
|
||||
keywords: [
|
||||
'abstract',
|
||||
'amp',
|
||||
'array',
|
||||
'auto',
|
||||
'bool',
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'char',
|
||||
'class',
|
||||
'const',
|
||||
'constexpr',
|
||||
'const_cast',
|
||||
'continue',
|
||||
'cpu',
|
||||
'decltype',
|
||||
'default',
|
||||
'delegate',
|
||||
'delete',
|
||||
'do',
|
||||
'double',
|
||||
'dynamic_cast',
|
||||
'each',
|
||||
'else',
|
||||
'enum',
|
||||
'event',
|
||||
'explicit',
|
||||
'export',
|
||||
'extern',
|
||||
'false',
|
||||
'final',
|
||||
'finally',
|
||||
'float',
|
||||
'for',
|
||||
'friend',
|
||||
'gcnew',
|
||||
'generic',
|
||||
'goto',
|
||||
'if',
|
||||
'in',
|
||||
'initonly',
|
||||
'inline',
|
||||
'int',
|
||||
'interface',
|
||||
'interior_ptr',
|
||||
'internal',
|
||||
'literal',
|
||||
'long',
|
||||
'mutable',
|
||||
'namespace',
|
||||
'new',
|
||||
'noexcept',
|
||||
'nullptr',
|
||||
'__nullptr',
|
||||
'operator',
|
||||
'override',
|
||||
'partial',
|
||||
'pascal',
|
||||
'pin_ptr',
|
||||
'private',
|
||||
'property',
|
||||
'protected',
|
||||
'public',
|
||||
'ref',
|
||||
'register',
|
||||
'reinterpret_cast',
|
||||
'restrict',
|
||||
'return',
|
||||
'safe_cast',
|
||||
'sealed',
|
||||
'short',
|
||||
'signed',
|
||||
'sizeof',
|
||||
'static',
|
||||
'static_assert',
|
||||
'static_cast',
|
||||
'struct',
|
||||
'switch',
|
||||
'template',
|
||||
'this',
|
||||
'thread_local',
|
||||
'throw',
|
||||
'tile_static',
|
||||
'true',
|
||||
'try',
|
||||
'typedef',
|
||||
'typeid',
|
||||
'typename',
|
||||
'union',
|
||||
'unsigned',
|
||||
'using',
|
||||
'virtual',
|
||||
'void',
|
||||
'volatile',
|
||||
'wchar_t',
|
||||
'where',
|
||||
'while',
|
||||
'_asm',
|
||||
'_based',
|
||||
'_cdecl',
|
||||
'_declspec',
|
||||
'_fastcall',
|
||||
'_if_exists',
|
||||
'_if_not_exists',
|
||||
'_inline',
|
||||
'_multiple_inheritance',
|
||||
'_pascal',
|
||||
'_single_inheritance',
|
||||
'_stdcall',
|
||||
'_virtual_inheritance',
|
||||
'_w64',
|
||||
'__abstract',
|
||||
'__alignof',
|
||||
'__asm',
|
||||
'__assume',
|
||||
'__based',
|
||||
'__box',
|
||||
'__builtin_alignof',
|
||||
'__cdecl',
|
||||
'__clrcall',
|
||||
'__declspec',
|
||||
'__delegate',
|
||||
'__event',
|
||||
'__except',
|
||||
'__fastcall',
|
||||
'__finally',
|
||||
'__forceinline',
|
||||
'__gc',
|
||||
'__hook',
|
||||
'__identifier',
|
||||
'__if_exists',
|
||||
'__if_not_exists',
|
||||
'__inline',
|
||||
'__int128',
|
||||
'__int16',
|
||||
'__int32',
|
||||
'__int64',
|
||||
'__int8',
|
||||
'__interface',
|
||||
'__leave',
|
||||
'__m128',
|
||||
'__m128d',
|
||||
'__m128i',
|
||||
'__m256',
|
||||
'__m256d',
|
||||
'__m256i',
|
||||
'__m64',
|
||||
'__multiple_inheritance',
|
||||
'__newslot',
|
||||
'__nogc',
|
||||
'__noop',
|
||||
'__nounwind',
|
||||
'__novtordisp',
|
||||
'__pascal',
|
||||
'__pin',
|
||||
'__pragma',
|
||||
'__property',
|
||||
'__ptr32',
|
||||
'__ptr64',
|
||||
'__raise',
|
||||
'__restrict',
|
||||
'__resume',
|
||||
'__sealed',
|
||||
'__single_inheritance',
|
||||
'__stdcall',
|
||||
'__super',
|
||||
'__thiscall',
|
||||
'__try',
|
||||
'__try_cast',
|
||||
'__typeof',
|
||||
'__unaligned',
|
||||
'__unhook',
|
||||
'__uuidof',
|
||||
'__value',
|
||||
'__virtual_inheritance',
|
||||
'__w64',
|
||||
'__wchar_t',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'!',
|
||||
'~',
|
||||
'?',
|
||||
':',
|
||||
'==',
|
||||
'<=',
|
||||
'>=',
|
||||
'!=',
|
||||
'&&',
|
||||
'||',
|
||||
'++',
|
||||
'--',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'%',
|
||||
'<<',
|
||||
'>>',
|
||||
'>>>',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>=',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
||||
floatsuffix: /[fFlL]?/,
|
||||
encoding: /u|u8|U|L/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/@encoding?R\"(?:([^ ()\\\t]*))\(/,
|
||||
{ token: 'string.raw.begin', next: '@raw.$1' },
|
||||
],
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/\[\[.*\]\]/, 'annotation'],
|
||||
[
|
||||
/^\s*#include/,
|
||||
{ token: 'keyword.directive.include', next: '@include' },
|
||||
],
|
||||
[/^\s*#\s*\w+/, 'keyword'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, 'number.hex'],
|
||||
[/0[0-7']*[0-7](@integersuffix)/, 'number.octal'],
|
||||
[/0[bB][0-1']*[0-1](@integersuffix)/, 'number.binary'],
|
||||
[/\d[\d']*\d(@integersuffix)/, 'number'],
|
||||
[/\d(@integersuffix)/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
doccomment: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
raw: [
|
||||
[
|
||||
/(.*)(\))(?:([^ ()\\\t"]*))(\")/,
|
||||
{
|
||||
cases: {
|
||||
'$3==$S2': [
|
||||
'string.raw',
|
||||
'string.raw.end',
|
||||
'string.raw.end',
|
||||
{ token: 'string.raw.end', next: '@pop' },
|
||||
],
|
||||
'@default': [
|
||||
'string.raw',
|
||||
'string.raw',
|
||||
'string.raw',
|
||||
'string.raw',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
[/.*/, 'string.raw'],
|
||||
],
|
||||
include: [
|
||||
[
|
||||
/(\s*)(<)([^<>]*)(>)/,
|
||||
[
|
||||
'',
|
||||
'keyword.directive.include.begin',
|
||||
'string.include.identifier',
|
||||
{ token: 'keyword.directive.include.end', next: '@pop' },
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\s*)(")([^"]*)(")/,
|
||||
[
|
||||
'',
|
||||
'keyword.directive.include.begin',
|
||||
'string.include.identifier',
|
||||
{ token: 'keyword.directive.include.end', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-1172
File diff suppressed because it is too large
Load Diff
@@ -1,112 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2060],
|
||||
{
|
||||
32060: (e, o, n) => {
|
||||
'use strict';
|
||||
n.r(o), n.d(o, { conf: () => t, language: () => s });
|
||||
var t = {
|
||||
comments: { lineComment: ';', blockComment: ['#|', '|#'] },
|
||||
brackets: [
|
||||
['(', ')'],
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.scheme',
|
||||
brackets: [
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
],
|
||||
keywords: [
|
||||
'case',
|
||||
'do',
|
||||
'let',
|
||||
'loop',
|
||||
'if',
|
||||
'else',
|
||||
'when',
|
||||
'cons',
|
||||
'car',
|
||||
'cdr',
|
||||
'cond',
|
||||
'lambda',
|
||||
'lambda*',
|
||||
'syntax-rules',
|
||||
'format',
|
||||
'set!',
|
||||
'quote',
|
||||
'eval',
|
||||
'append',
|
||||
'list',
|
||||
'list?',
|
||||
'member?',
|
||||
'load',
|
||||
],
|
||||
constants: ['#t', '#f'],
|
||||
operators: ['eq?', 'eqv?', 'equal?', 'and', 'or', 'not', 'null?'],
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/#[xXoObB][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, 'number.float'],
|
||||
[
|
||||
/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,
|
||||
['keyword', 'white', 'variable'],
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@strings' },
|
||||
[
|
||||
/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@constants': 'constant',
|
||||
'@operators': 'operators',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
comment: [
|
||||
[/[^\|#]+/, 'comment'],
|
||||
[/#\|/, 'comment', '@push'],
|
||||
[/\|#/, 'comment', '@pop'],
|
||||
[/[\|#]/, 'comment'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/#\|/, 'comment', '@comment'],
|
||||
[/;.*$/, 'comment'],
|
||||
],
|
||||
strings: [
|
||||
[/"$/, 'string', '@popall'],
|
||||
[/"(?=.)/, 'string', '@multiLineString'],
|
||||
],
|
||||
multiLineString: [
|
||||
[/[^\\"]+$/, 'string', '@popall'],
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/\\./, 'string.escape'],
|
||||
[/"/, 'string', '@popall'],
|
||||
[/\\$/, 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,222 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2075],
|
||||
{
|
||||
62075: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => i, language: () => r });
|
||||
var i = {
|
||||
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
||||
comments: { blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/'),
|
||||
end: new RegExp('^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/'),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.css',
|
||||
ws: '[ \t\n\r\f]*',
|
||||
identifier:
|
||||
'-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*',
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.bracket' },
|
||||
{ open: '[', close: ']', token: 'delimiter.bracket' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
tokenizer: {
|
||||
root: [{ include: '@selector' }],
|
||||
selector: [
|
||||
{ include: '@comments' },
|
||||
{ include: '@import' },
|
||||
{ include: '@strings' },
|
||||
[
|
||||
'[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)',
|
||||
{ token: 'keyword', next: '@keyframedeclaration' },
|
||||
],
|
||||
[
|
||||
'[@](page|content|font-face|-moz-document)',
|
||||
{ token: 'keyword' },
|
||||
],
|
||||
[
|
||||
'[@](charset|namespace)',
|
||||
{ token: 'keyword', next: '@declarationbody' },
|
||||
],
|
||||
[
|
||||
'(url-prefix)(\\()',
|
||||
[
|
||||
'attribute.value',
|
||||
{ token: 'delimiter.parenthesis', next: '@urldeclaration' },
|
||||
],
|
||||
],
|
||||
[
|
||||
'(url)(\\()',
|
||||
[
|
||||
'attribute.value',
|
||||
{ token: 'delimiter.parenthesis', next: '@urldeclaration' },
|
||||
],
|
||||
],
|
||||
{ include: '@selectorname' },
|
||||
['[\\*]', 'tag'],
|
||||
['[>\\+,]', 'delimiter'],
|
||||
[
|
||||
'\\[',
|
||||
{ token: 'delimiter.bracket', next: '@selectorattribute' },
|
||||
],
|
||||
['{', { token: 'delimiter.bracket', next: '@selectorbody' }],
|
||||
],
|
||||
selectorbody: [
|
||||
{ include: '@comments' },
|
||||
[
|
||||
'[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))',
|
||||
'attribute.name',
|
||||
'@rulevalue',
|
||||
],
|
||||
['}', { token: 'delimiter.bracket', next: '@pop' }],
|
||||
],
|
||||
selectorname: [['(\\.|#(?=[^{])|%|(@identifier)|:)+', 'tag']],
|
||||
selectorattribute: [
|
||||
{ include: '@term' },
|
||||
[']', { token: 'delimiter.bracket', next: '@pop' }],
|
||||
],
|
||||
term: [
|
||||
{ include: '@comments' },
|
||||
[
|
||||
'(url-prefix)(\\()',
|
||||
[
|
||||
'attribute.value',
|
||||
{ token: 'delimiter.parenthesis', next: '@urldeclaration' },
|
||||
],
|
||||
],
|
||||
[
|
||||
'(url)(\\()',
|
||||
[
|
||||
'attribute.value',
|
||||
{ token: 'delimiter.parenthesis', next: '@urldeclaration' },
|
||||
],
|
||||
],
|
||||
{ include: '@functioninvocation' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@name' },
|
||||
['([<>=\\+\\-\\*\\/\\^\\|\\~,])', 'delimiter'],
|
||||
[',', 'delimiter'],
|
||||
],
|
||||
rulevalue: [
|
||||
{ include: '@comments' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@term' },
|
||||
['!important', 'keyword'],
|
||||
[';', 'delimiter', '@pop'],
|
||||
['(?=})', { token: '', next: '@pop' }],
|
||||
],
|
||||
warndebug: [
|
||||
[
|
||||
'[@](warn|debug)',
|
||||
{ token: 'keyword', next: '@declarationbody' },
|
||||
],
|
||||
],
|
||||
import: [
|
||||
['[@](import)', { token: 'keyword', next: '@declarationbody' }],
|
||||
],
|
||||
urldeclaration: [
|
||||
{ include: '@strings' },
|
||||
['[^)\r\n]+', 'string'],
|
||||
['\\)', { token: 'delimiter.parenthesis', next: '@pop' }],
|
||||
],
|
||||
parenthizedterm: [
|
||||
{ include: '@term' },
|
||||
['\\)', { token: 'delimiter.parenthesis', next: '@pop' }],
|
||||
],
|
||||
declarationbody: [
|
||||
{ include: '@term' },
|
||||
[';', 'delimiter', '@pop'],
|
||||
['(?=})', { token: '', next: '@pop' }],
|
||||
],
|
||||
comments: [
|
||||
['\\/\\*', 'comment', '@comment'],
|
||||
['\\/\\/+.*', 'comment'],
|
||||
],
|
||||
comment: [
|
||||
['\\*\\/', 'comment', '@pop'],
|
||||
[/[^*/]+/, 'comment'],
|
||||
[/./, 'comment'],
|
||||
],
|
||||
name: [['@identifier', 'attribute.value']],
|
||||
numbers: [
|
||||
[
|
||||
'-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?',
|
||||
{ token: 'attribute.value.number', next: '@units' },
|
||||
],
|
||||
['#[0-9a-fA-F_]+(?!\\w)', 'attribute.value.hex'],
|
||||
],
|
||||
units: [
|
||||
[
|
||||
'(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?',
|
||||
'attribute.value.unit',
|
||||
'@pop',
|
||||
],
|
||||
],
|
||||
keyframedeclaration: [
|
||||
['@identifier', 'attribute.value'],
|
||||
['{', { token: 'delimiter.bracket', switchTo: '@keyframebody' }],
|
||||
],
|
||||
keyframebody: [
|
||||
{ include: '@term' },
|
||||
['{', { token: 'delimiter.bracket', next: '@selectorbody' }],
|
||||
['}', { token: 'delimiter.bracket', next: '@pop' }],
|
||||
],
|
||||
functioninvocation: [
|
||||
[
|
||||
'@identifier\\(',
|
||||
{ token: 'attribute.value', next: '@functionarguments' },
|
||||
],
|
||||
],
|
||||
functionarguments: [
|
||||
['\\$@identifier@ws:', 'attribute.name'],
|
||||
['[,]', 'delimiter'],
|
||||
{ include: '@term' },
|
||||
['\\)', { token: 'attribute.value', next: '@pop' }],
|
||||
],
|
||||
strings: [
|
||||
['~?"', { token: 'string', next: '@stringenddoublequote' }],
|
||||
["~?'", { token: 'string', next: '@stringendquote' }],
|
||||
],
|
||||
stringenddoublequote: [
|
||||
['\\\\.', 'string'],
|
||||
['"', { token: 'string', next: '@pop' }],
|
||||
[/[^\\"]+/, 'string'],
|
||||
['.', 'string'],
|
||||
],
|
||||
stringendquote: [
|
||||
['\\\\.', 'string'],
|
||||
["'", { token: 'string', next: '@pop' }],
|
||||
[/[^\\']+/, 'string'],
|
||||
['.', 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,222 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2140],
|
||||
{
|
||||
22140: (e, o, r) => {
|
||||
'use strict';
|
||||
r.r(o), r.d(o, { conf: () => t, language: () => a });
|
||||
var t = {
|
||||
comments: { lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
},
|
||||
a = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.r',
|
||||
roxygen: [
|
||||
'@param',
|
||||
'@return',
|
||||
'@name',
|
||||
'@rdname',
|
||||
'@examples',
|
||||
'@include',
|
||||
'@docType',
|
||||
'@S3method',
|
||||
'@TODO',
|
||||
'@aliases',
|
||||
'@alias',
|
||||
'@assignee',
|
||||
'@author',
|
||||
'@callGraphDepth',
|
||||
'@callGraph',
|
||||
'@callGraphPrimitives',
|
||||
'@concept',
|
||||
'@exportClass',
|
||||
'@exportMethod',
|
||||
'@exportPattern',
|
||||
'@export',
|
||||
'@formals',
|
||||
'@format',
|
||||
'@importClassesFrom',
|
||||
'@importFrom',
|
||||
'@importMethodsFrom',
|
||||
'@import',
|
||||
'@keywords',
|
||||
'@method',
|
||||
'@nord',
|
||||
'@note',
|
||||
'@references',
|
||||
'@seealso',
|
||||
'@setClass',
|
||||
'@slot',
|
||||
'@source',
|
||||
'@title',
|
||||
'@usage',
|
||||
],
|
||||
constants: [
|
||||
'NULL',
|
||||
'FALSE',
|
||||
'TRUE',
|
||||
'NA',
|
||||
'Inf',
|
||||
'NaN ',
|
||||
'NA_integer_',
|
||||
'NA_real_',
|
||||
'NA_complex_',
|
||||
'NA_character_ ',
|
||||
'T',
|
||||
'F',
|
||||
'LETTERS',
|
||||
'letters',
|
||||
'month.abb',
|
||||
'month.name',
|
||||
'pi',
|
||||
'R.version.string',
|
||||
],
|
||||
keywords: [
|
||||
'break',
|
||||
'next',
|
||||
'return',
|
||||
'if',
|
||||
'else',
|
||||
'for',
|
||||
'in',
|
||||
'repeat',
|
||||
'while',
|
||||
'array',
|
||||
'category',
|
||||
'character',
|
||||
'complex',
|
||||
'double',
|
||||
'function',
|
||||
'integer',
|
||||
'list',
|
||||
'logical',
|
||||
'matrix',
|
||||
'numeric',
|
||||
'vector',
|
||||
'data.frame',
|
||||
'factor',
|
||||
'library',
|
||||
'require',
|
||||
'attach',
|
||||
'detach',
|
||||
'source',
|
||||
],
|
||||
special: [
|
||||
'\\n',
|
||||
'\\r',
|
||||
'\\t',
|
||||
'\\b',
|
||||
'\\a',
|
||||
'\\f',
|
||||
'\\v',
|
||||
"\\'",
|
||||
'\\"',
|
||||
'\\\\',
|
||||
],
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.bracket' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
[/[{}\[\]()]/, '@brackets'],
|
||||
{ include: '@operators' },
|
||||
[/#'/, 'comment.doc', '@roxygen'],
|
||||
[/(^#.*$)/, 'comment'],
|
||||
[/\s+/, 'white'],
|
||||
[/[,:;]/, 'delimiter'],
|
||||
[/@[a-zA-Z]\w*/, 'tag'],
|
||||
[
|
||||
/[a-zA-Z]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@constants': 'constant',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
roxygen: [
|
||||
[
|
||||
/@\w+/,
|
||||
{
|
||||
cases: {
|
||||
'@roxygen': 'tag',
|
||||
'@eos': { token: 'comment.doc', next: '@pop' },
|
||||
'@default': 'comment.doc',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\s+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'comment.doc', next: '@pop' },
|
||||
'@default': 'comment.doc',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/.*/, { token: 'comment.doc', next: '@pop' }],
|
||||
],
|
||||
numbers: [
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number'],
|
||||
],
|
||||
operators: [
|
||||
[/<{1,2}-/, 'operator'],
|
||||
[/->{1,2}/, 'operator'],
|
||||
[/%[^%\s]+%/, 'operator'],
|
||||
[/\*\*/, 'operator'],
|
||||
[/%%/, 'operator'],
|
||||
[/&&/, 'operator'],
|
||||
[/\|\|/, 'operator'],
|
||||
[/<</, 'operator'],
|
||||
[/>>/, 'operator'],
|
||||
[/[-+=&|!<>^~*/:$]/, 'operator'],
|
||||
],
|
||||
strings: [
|
||||
[/'/, 'string.escape', '@stringBody'],
|
||||
[/"/, 'string.escape', '@dblStringBody'],
|
||||
],
|
||||
stringBody: [
|
||||
[
|
||||
/\\./,
|
||||
{ cases: { '@special': 'string', '@default': 'error-token' } },
|
||||
],
|
||||
[/'/, 'string.escape', '@popall'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
dblStringBody: [
|
||||
[
|
||||
/\\./,
|
||||
{ cases: { '@special': 'string', '@default': 'error-token' } },
|
||||
],
|
||||
[/"/, 'string.escape', '@popall'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-201
@@ -1,201 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[249],
|
||||
{
|
||||
80249: (e, n, t) => {
|
||||
'use strict';
|
||||
t.r(n), t.d(n, { conf: () => o, language: () => s });
|
||||
var o = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '`', close: '`', notIn: ['string'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '`', close: '`' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.go',
|
||||
keywords: [
|
||||
'break',
|
||||
'case',
|
||||
'chan',
|
||||
'const',
|
||||
'continue',
|
||||
'default',
|
||||
'defer',
|
||||
'else',
|
||||
'fallthrough',
|
||||
'for',
|
||||
'func',
|
||||
'go',
|
||||
'goto',
|
||||
'if',
|
||||
'import',
|
||||
'interface',
|
||||
'map',
|
||||
'package',
|
||||
'range',
|
||||
'return',
|
||||
'select',
|
||||
'struct',
|
||||
'switch',
|
||||
'type',
|
||||
'var',
|
||||
'bool',
|
||||
'true',
|
||||
'false',
|
||||
'uint8',
|
||||
'uint16',
|
||||
'uint32',
|
||||
'uint64',
|
||||
'int8',
|
||||
'int16',
|
||||
'int32',
|
||||
'int64',
|
||||
'float32',
|
||||
'float64',
|
||||
'complex64',
|
||||
'complex128',
|
||||
'byte',
|
||||
'rune',
|
||||
'uint',
|
||||
'int',
|
||||
'uintptr',
|
||||
'string',
|
||||
'nil',
|
||||
],
|
||||
operators: [
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'<<',
|
||||
'>>',
|
||||
'&^',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'%=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'&^=',
|
||||
'&&',
|
||||
'||',
|
||||
'<-',
|
||||
'++',
|
||||
'--',
|
||||
'==',
|
||||
'<',
|
||||
'>',
|
||||
'=',
|
||||
'!',
|
||||
'!=',
|
||||
'<=',
|
||||
'>=',
|
||||
':=',
|
||||
'...',
|
||||
'(',
|
||||
')',
|
||||
'',
|
||||
']',
|
||||
'{',
|
||||
'}',
|
||||
',',
|
||||
';',
|
||||
'.',
|
||||
':',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/\[\[.*\]\]/, 'annotation'],
|
||||
[/^\s*#\w+/, 'keyword'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, 'number.hex'],
|
||||
[/0[0-7']*[0-7]/, 'number.octal'],
|
||||
[/0[bB][0-1']*[0-1]/, 'number.binary'],
|
||||
[/\d[\d']*/, 'number'],
|
||||
[/\d/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
[/`/, 'string', '@rawstring'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
doccomment: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\/\*/, 'comment.doc.invalid'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
rawstring: [
|
||||
[/[^\`]/, 'string'],
|
||||
[/`/, 'string', '@pop'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,289 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2571],
|
||||
{
|
||||
2571: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => d });
|
||||
var i = n(89587),
|
||||
r = [
|
||||
'area',
|
||||
'base',
|
||||
'br',
|
||||
'col',
|
||||
'embed',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'keygen',
|
||||
'link',
|
||||
'menuitem',
|
||||
'meta',
|
||||
'param',
|
||||
'source',
|
||||
'track',
|
||||
'wbr',
|
||||
],
|
||||
o = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
comments: { blockComment: ['\x3c!--', '--\x3e'] },
|
||||
brackets: [
|
||||
['\x3c!--', '--\x3e'],
|
||||
['<', '>'],
|
||||
['{', '}'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'<(?!(?:' +
|
||||
r.join('|') +
|
||||
'))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$',
|
||||
'i'
|
||||
),
|
||||
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
||||
action: { indentAction: i.Mj.IndentAction.IndentOutdent },
|
||||
},
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'<(?!(?:' +
|
||||
r.join('|') +
|
||||
'))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$',
|
||||
'i'
|
||||
),
|
||||
action: { indentAction: i.Mj.IndentAction.Indent },
|
||||
},
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*\x3c!--\\s*#region\\b.*--\x3e'),
|
||||
end: new RegExp('^\\s*\x3c!--\\s*#endregion\\b.*--\x3e'),
|
||||
},
|
||||
},
|
||||
},
|
||||
d = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.html',
|
||||
ignoreCase: !0,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/<!DOCTYPE/, 'metatag', '@doctype'],
|
||||
[/<!--/, 'comment', '@comment'],
|
||||
[
|
||||
/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,
|
||||
['delimiter', 'tag', '', 'delimiter'],
|
||||
],
|
||||
[/(<)(script)/, ['delimiter', { token: 'tag', next: '@script' }]],
|
||||
[/(<)(style)/, ['delimiter', { token: 'tag', next: '@style' }]],
|
||||
[
|
||||
/(<)((?:[\w\-]+:)?[\w\-]+)/,
|
||||
['delimiter', { token: 'tag', next: '@otherTag' }],
|
||||
],
|
||||
[
|
||||
/(<\/)((?:[\w\-]+:)?[\w\-]+)/,
|
||||
['delimiter', { token: 'tag', next: '@otherTag' }],
|
||||
],
|
||||
[/</, 'delimiter'],
|
||||
[/[^<]+/],
|
||||
],
|
||||
doctype: [
|
||||
[/[^>]+/, 'metatag.content'],
|
||||
[/>/, 'metatag', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[/-->/, 'comment', '@pop'],
|
||||
[/[^-]+/, 'comment.content'],
|
||||
[/./, 'comment.content'],
|
||||
],
|
||||
otherTag: [
|
||||
[/\/?>/, 'delimiter', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
],
|
||||
script: [
|
||||
[/type/, 'attribute.name', '@scriptAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@scriptEmbedded',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(script\s*)(>)/,
|
||||
['delimiter', 'tag', { token: 'delimiter', next: '@pop' }],
|
||||
],
|
||||
],
|
||||
scriptAfterType: [
|
||||
[/=/, 'delimiter', '@scriptAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@scriptEmbedded',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptAfterTypeEquals: [
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@scriptEmbedded',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptWithCustomType: [
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@scriptEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptEmbedded: [
|
||||
[
|
||||
/<\/script/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
[/[^<]+/, ''],
|
||||
],
|
||||
style: [
|
||||
[/type/, 'attribute.name', '@styleAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@styleEmbedded',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(style\s*)(>)/,
|
||||
['delimiter', 'tag', { token: 'delimiter', next: '@pop' }],
|
||||
],
|
||||
],
|
||||
styleAfterType: [
|
||||
[/=/, 'delimiter', '@styleAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@styleEmbedded',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleAfterTypeEquals: [
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@styleEmbedded',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleWithCustomType: [
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter',
|
||||
next: '@styleEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleEmbedded: [
|
||||
[
|
||||
/<\/style/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
[/[^<]+/, ''],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,67 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2798],
|
||||
{
|
||||
52798: (e, n, s) => {
|
||||
'use strict';
|
||||
s.r(n), s.d(n, { conf: () => i, language: () => o });
|
||||
var i = {
|
||||
comments: { lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
o = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.ini',
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/^\[[^\]]*\]/, 'metatag'],
|
||||
[/(^\w+)(\s*)(\=)/, ['key', '', 'delimiter']],
|
||||
{ include: '@whitespace' },
|
||||
[/\d+/, 'number'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string."'],
|
||||
[/'/, 'string', "@string.'"],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/^\s*[#;].*$/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,405 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2892],
|
||||
{
|
||||
22892: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => a });
|
||||
var o = {
|
||||
comments: { lineComment: '//' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '{', close: '}', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
],
|
||||
folding: { offSide: !0 },
|
||||
},
|
||||
a = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.pug',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.array', open: '[', close: ']' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
],
|
||||
keywords: [
|
||||
'append',
|
||||
'block',
|
||||
'case',
|
||||
'default',
|
||||
'doctype',
|
||||
'each',
|
||||
'else',
|
||||
'extends',
|
||||
'for',
|
||||
'if',
|
||||
'in',
|
||||
'include',
|
||||
'mixin',
|
||||
'typeof',
|
||||
'unless',
|
||||
'var',
|
||||
'when',
|
||||
],
|
||||
tags: [
|
||||
'a',
|
||||
'abbr',
|
||||
'acronym',
|
||||
'address',
|
||||
'area',
|
||||
'article',
|
||||
'aside',
|
||||
'audio',
|
||||
'b',
|
||||
'base',
|
||||
'basefont',
|
||||
'bdi',
|
||||
'bdo',
|
||||
'blockquote',
|
||||
'body',
|
||||
'br',
|
||||
'button',
|
||||
'canvas',
|
||||
'caption',
|
||||
'center',
|
||||
'cite',
|
||||
'code',
|
||||
'col',
|
||||
'colgroup',
|
||||
'command',
|
||||
'datalist',
|
||||
'dd',
|
||||
'del',
|
||||
'details',
|
||||
'dfn',
|
||||
'div',
|
||||
'dl',
|
||||
'dt',
|
||||
'em',
|
||||
'embed',
|
||||
'fieldset',
|
||||
'figcaption',
|
||||
'figure',
|
||||
'font',
|
||||
'footer',
|
||||
'form',
|
||||
'frame',
|
||||
'frameset',
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
'h4',
|
||||
'h5',
|
||||
'h6',
|
||||
'head',
|
||||
'header',
|
||||
'hgroup',
|
||||
'hr',
|
||||
'html',
|
||||
'i',
|
||||
'iframe',
|
||||
'img',
|
||||
'input',
|
||||
'ins',
|
||||
'keygen',
|
||||
'kbd',
|
||||
'label',
|
||||
'li',
|
||||
'link',
|
||||
'map',
|
||||
'mark',
|
||||
'menu',
|
||||
'meta',
|
||||
'meter',
|
||||
'nav',
|
||||
'noframes',
|
||||
'noscript',
|
||||
'object',
|
||||
'ol',
|
||||
'optgroup',
|
||||
'option',
|
||||
'output',
|
||||
'p',
|
||||
'param',
|
||||
'pre',
|
||||
'progress',
|
||||
'q',
|
||||
'rp',
|
||||
'rt',
|
||||
'ruby',
|
||||
's',
|
||||
'samp',
|
||||
'script',
|
||||
'section',
|
||||
'select',
|
||||
'small',
|
||||
'source',
|
||||
'span',
|
||||
'strike',
|
||||
'strong',
|
||||
'style',
|
||||
'sub',
|
||||
'summary',
|
||||
'sup',
|
||||
'table',
|
||||
'tbody',
|
||||
'td',
|
||||
'textarea',
|
||||
'tfoot',
|
||||
'th',
|
||||
'thead',
|
||||
'time',
|
||||
'title',
|
||||
'tr',
|
||||
'tracks',
|
||||
'tt',
|
||||
'u',
|
||||
'ul',
|
||||
'video',
|
||||
'wbr',
|
||||
],
|
||||
symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/^(\s*)([a-zA-Z_-][\w-]*)/,
|
||||
{
|
||||
cases: {
|
||||
'$2@tags': {
|
||||
cases: {
|
||||
'@eos': ['', 'tag'],
|
||||
'@default': ['', { token: 'tag', next: '@tag.$1' }],
|
||||
},
|
||||
},
|
||||
'$2@keywords': ['', { token: 'keyword.$2' }],
|
||||
'@default': ['', ''],
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/^(\s*)(#[a-zA-Z_-][\w-]*)/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': ['', 'tag.id'],
|
||||
'@default': ['', { token: 'tag.id', next: '@tag.$1' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/^(\s*)(\.[a-zA-Z_-][\w-]*)/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': ['', 'tag.class'],
|
||||
'@default': ['', { token: 'tag.class', next: '@tag.$1' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
[/^(\s*)(\|.*)$/, ''],
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/[a-zA-Z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d+\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\d+/, 'number'],
|
||||
[/"/, 'string', '@string."'],
|
||||
[/'/, 'string', "@string.'"],
|
||||
],
|
||||
tag: [
|
||||
[
|
||||
/(\.)(\s*$)/,
|
||||
[{ token: 'delimiter', next: '@blockText.$S2.' }, ''],
|
||||
],
|
||||
[/\s+/, { token: '', next: '@simpleText' }],
|
||||
[
|
||||
/#[a-zA-Z_-][\w-]*/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'tag.id', next: '@pop' },
|
||||
'@default': 'tag.id',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\.[a-zA-Z_-][\w-]*/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'tag.class', next: '@pop' },
|
||||
'@default': 'tag.class',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\(/,
|
||||
{ token: 'delimiter.parenthesis', next: '@attributeList' },
|
||||
],
|
||||
],
|
||||
simpleText: [
|
||||
[/[^#]+$/, { token: '', next: '@popall' }],
|
||||
[/[^#]+/, { token: '' }],
|
||||
[
|
||||
/(#{)([^}]*)(})/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': [
|
||||
'interpolation.delimiter',
|
||||
'interpolation',
|
||||
{ token: 'interpolation.delimiter', next: '@popall' },
|
||||
],
|
||||
'@default': [
|
||||
'interpolation.delimiter',
|
||||
'interpolation',
|
||||
'interpolation.delimiter',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
[/#$/, { token: '', next: '@popall' }],
|
||||
[/#/, ''],
|
||||
],
|
||||
attributeList: [
|
||||
[/\s+/, ''],
|
||||
[
|
||||
/(\w+)(\s*=\s*)("|')/,
|
||||
[
|
||||
'attribute.name',
|
||||
'delimiter',
|
||||
{ token: 'attribute.value', next: '@value.$3' },
|
||||
],
|
||||
],
|
||||
[/\w+/, 'attribute.name'],
|
||||
[
|
||||
/,/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'attribute.delimiter', next: '@popall' },
|
||||
'@default': 'attribute.delimiter',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\)$/, { token: 'delimiter.parenthesis', next: '@popall' }],
|
||||
[/\)/, { token: 'delimiter.parenthesis', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[
|
||||
/^(\s*)(\/\/.*)$/,
|
||||
{ token: 'comment', next: '@blockText.$1.comment' },
|
||||
],
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/<!--/, { token: 'comment', next: '@comment' }],
|
||||
],
|
||||
blockText: [
|
||||
[
|
||||
/^\s+.*$/,
|
||||
{
|
||||
cases: {
|
||||
'($S2\\s+.*$)': { token: '$S3' },
|
||||
'@default': { token: '@rematch', next: '@popall' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[/./, { token: '@rematch', next: '@popall' }],
|
||||
],
|
||||
comment: [
|
||||
[/[^<\-]+/, 'comment.content'],
|
||||
[/-->/, { token: 'comment', next: '@pop' }],
|
||||
[/<!--/, 'comment.content.invalid'],
|
||||
[/[<\-]/, 'comment.content'],
|
||||
],
|
||||
string: [
|
||||
[
|
||||
/[^\\"'#]+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/@escapes/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string.escape', next: '@popall' },
|
||||
'@default': 'string.escape',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\\./,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string.escape.invalid', next: '@popall' },
|
||||
'@default': 'string.escape.invalid',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/(#{)([^}]*)(})/,
|
||||
[
|
||||
'interpolation.delimiter',
|
||||
'interpolation',
|
||||
'interpolation.delimiter',
|
||||
],
|
||||
],
|
||||
[/#/, 'string'],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': { token: 'string' },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
value: [
|
||||
[
|
||||
/[^\\"']+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'attribute.value', next: '@popall' },
|
||||
'@default': 'attribute.value',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\\./,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'attribute.value', next: '@popall' },
|
||||
'@default': 'attribute.value',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'attribute.value', next: '@pop' },
|
||||
'@default': { token: 'attribute.value' },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,245 +0,0 @@
|
||||
/*! For license information please see 2911.2911.js.LICENSE.txt */
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2911],
|
||||
{
|
||||
42911: (e, t, o) => {
|
||||
'use strict';
|
||||
o.r(t), o.d(t, { conf: () => n, language: () => i });
|
||||
var n = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.swift',
|
||||
identifier: /[a-zA-Z_][\w$]*/,
|
||||
attributes: [
|
||||
'@autoclosure',
|
||||
'@noescape',
|
||||
'@noreturn',
|
||||
'@NSApplicationMain',
|
||||
'@NSCopying',
|
||||
'@NSManaged',
|
||||
'@objc',
|
||||
'@UIApplicationMain',
|
||||
'@noreturn',
|
||||
'@availability',
|
||||
'@IBAction',
|
||||
'@IBDesignable',
|
||||
'@IBInspectable',
|
||||
'@IBOutlet',
|
||||
],
|
||||
accessmodifiers: ['public', 'private', 'internal'],
|
||||
keywords: [
|
||||
'__COLUMN__',
|
||||
'__FILE__',
|
||||
'__FUNCTION__',
|
||||
'__LINE__',
|
||||
'as',
|
||||
'as!',
|
||||
'as?',
|
||||
'associativity',
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'class',
|
||||
'continue',
|
||||
'convenience',
|
||||
'default',
|
||||
'deinit',
|
||||
'didSet',
|
||||
'do',
|
||||
'dynamic',
|
||||
'dynamicType',
|
||||
'else',
|
||||
'enum',
|
||||
'extension',
|
||||
'fallthrough',
|
||||
'final',
|
||||
'for',
|
||||
'func',
|
||||
'get',
|
||||
'guard',
|
||||
'if',
|
||||
'import',
|
||||
'in',
|
||||
'infix',
|
||||
'init',
|
||||
'inout',
|
||||
'internal',
|
||||
'is',
|
||||
'lazy',
|
||||
'left',
|
||||
'let',
|
||||
'mutating',
|
||||
'nil',
|
||||
'none',
|
||||
'nonmutating',
|
||||
'operator',
|
||||
'optional',
|
||||
'override',
|
||||
'postfix',
|
||||
'precedence',
|
||||
'prefix',
|
||||
'private',
|
||||
'protocol',
|
||||
'Protocol',
|
||||
'public',
|
||||
'repeat',
|
||||
'required',
|
||||
'return',
|
||||
'right',
|
||||
'self',
|
||||
'Self',
|
||||
'set',
|
||||
'static',
|
||||
'struct',
|
||||
'subscript',
|
||||
'super',
|
||||
'switch',
|
||||
'throw',
|
||||
'throws',
|
||||
'try',
|
||||
'try!',
|
||||
'Type',
|
||||
'typealias',
|
||||
'unowned',
|
||||
'var',
|
||||
'weak',
|
||||
'where',
|
||||
'while',
|
||||
'willSet',
|
||||
'FALSE',
|
||||
'TRUE',
|
||||
],
|
||||
symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,
|
||||
operatorstart: /[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,
|
||||
operatorend: /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,
|
||||
operators: /(@operatorstart)((@operatorstart)|(@operatorend))*/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comment' },
|
||||
{ include: '@attribute' },
|
||||
{ include: '@literal' },
|
||||
{ include: '@keyword' },
|
||||
{ include: '@invokedmethod' },
|
||||
{ include: '@symbol' },
|
||||
],
|
||||
whitespace: [
|
||||
[/\s+/, 'white'],
|
||||
[/"""/, 'string.quote', '@endDblDocString'],
|
||||
],
|
||||
endDblDocString: [
|
||||
[/[^"]+/, 'string'],
|
||||
[/\\"/, 'string'],
|
||||
[/"""/, 'string.quote', '@popall'],
|
||||
[/"/, 'string'],
|
||||
],
|
||||
symbol: [
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/[.]/, 'delimiter'],
|
||||
[/@operators/, 'operator'],
|
||||
[/@symbols/, 'operator'],
|
||||
],
|
||||
comment: [
|
||||
[/\/\/\/.*$/, 'comment.doc'],
|
||||
[/\/\*\*/, 'comment.doc', '@commentdocbody'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
[/\/\*/, 'comment', '@commentbody'],
|
||||
],
|
||||
commentdocbody: [
|
||||
[/\/\*/, 'comment', '@commentbody'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/\:[a-zA-Z]+\:/, 'comment.doc.param'],
|
||||
[/./, 'comment.doc'],
|
||||
],
|
||||
commentbody: [
|
||||
[/\/\*/, 'comment', '@commentbody'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/./, 'comment'],
|
||||
],
|
||||
attribute: [
|
||||
[
|
||||
/\@@identifier/,
|
||||
{ cases: { '@attributes': 'keyword.control', '@default': '' } },
|
||||
],
|
||||
],
|
||||
literal: [
|
||||
[/"/, { token: 'string.quote', next: '@stringlit' }],
|
||||
[/0[b]([01]_?)+/, 'number.binary'],
|
||||
[/0[o]([0-7]_?)+/, 'number.octal'],
|
||||
[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/, 'number.hex'],
|
||||
[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/, 'number.float'],
|
||||
[/(\d_?)+/, 'number'],
|
||||
],
|
||||
stringlit: [
|
||||
[/\\\(/, { token: 'operator', next: '@interpolatedexpression' }],
|
||||
[/@escapes/, 'string'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, { token: 'string.quote', next: '@pop' }],
|
||||
[/./, 'string'],
|
||||
],
|
||||
interpolatedexpression: [
|
||||
[/\(/, { token: 'operator', next: '@interpolatedexpression' }],
|
||||
[/\)/, { token: 'operator', next: '@pop' }],
|
||||
{ include: '@literal' },
|
||||
{ include: '@keyword' },
|
||||
{ include: '@symbol' },
|
||||
],
|
||||
keyword: [
|
||||
[/`/, { token: 'operator', next: '@escapedkeyword' }],
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'[A-Z][a-zA-Z0-9$]*': 'type.identifier',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
escapedkeyword: [
|
||||
[/`/, { token: 'operator', next: '@pop' }],
|
||||
[/./, 'identifier'],
|
||||
],
|
||||
invokedmethod: [
|
||||
[
|
||||
/([.])(@identifier)/,
|
||||
{
|
||||
cases: {
|
||||
$2: ['delimeter', 'type.identifier'],
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,3 +0,0 @@
|
||||
/*!---------------------------------------------------------------------------------------------
|
||||
* Copyright (C) David Owens II, owensd.io. All rights reserved.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
@@ -1,229 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[2954],
|
||||
{
|
||||
42954: (e, t, s) => {
|
||||
'use strict';
|
||||
s.r(t), s.d(t, { conf: () => n, language: () => o });
|
||||
var n = {
|
||||
comments: { blockComment: ['\x3c!--', '--\x3e'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>', notIn: ['string'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*\x3c!--\\s*#?region\\b.*--\x3e'),
|
||||
end: new RegExp('^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e'),
|
||||
},
|
||||
},
|
||||
},
|
||||
o = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.md',
|
||||
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
||||
noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
|
||||
escapes: /\\(?:@control)/,
|
||||
jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
||||
empty: [
|
||||
'area',
|
||||
'base',
|
||||
'basefont',
|
||||
'br',
|
||||
'col',
|
||||
'frame',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'isindex',
|
||||
'link',
|
||||
'meta',
|
||||
'param',
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/^\s*\|/, '@rematch', '@table_header'],
|
||||
[
|
||||
/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,
|
||||
['white', 'keyword', 'keyword', 'keyword'],
|
||||
],
|
||||
[/^\s*(=+|\-+)\s*$/, 'keyword'],
|
||||
[/^\s*((\*[ ]?)+)\s*$/, 'meta.separator'],
|
||||
[/^\s*>+/, 'comment'],
|
||||
[/^\s*([\*\-+:]|\d+\.)\s/, 'keyword'],
|
||||
[/^(\t|[ ]{4})[^ ].*$/, 'string'],
|
||||
[
|
||||
/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,
|
||||
{ token: 'string', next: '@codeblock' },
|
||||
],
|
||||
[
|
||||
/^\s*```\s*((?:\w|[\/\-#])+).*$/,
|
||||
{ token: 'string', next: '@codeblockgh', nextEmbedded: '$1' },
|
||||
],
|
||||
[/^\s*```\s*$/, { token: 'string', next: '@codeblock' }],
|
||||
{ include: '@linecontent' },
|
||||
],
|
||||
table_header: [
|
||||
{ include: '@table_common' },
|
||||
[/[^\|]+/, 'keyword.table.header'],
|
||||
],
|
||||
table_body: [
|
||||
{ include: '@table_common' },
|
||||
{ include: '@linecontent' },
|
||||
],
|
||||
table_common: [
|
||||
[/\s*[\-:]+\s*/, { token: 'keyword', switchTo: 'table_body' }],
|
||||
[/^\s*\|/, 'keyword.table.left'],
|
||||
[/^\s*[^\|]/, '@rematch', '@pop'],
|
||||
[/^\s*$/, '@rematch', '@pop'],
|
||||
[
|
||||
/\|/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'keyword.table.right',
|
||||
'@default': 'keyword.table.middle',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
codeblock: [
|
||||
[/^\s*~~~\s*$/, { token: 'string', next: '@pop' }],
|
||||
[/^\s*```\s*$/, { token: 'string', next: '@pop' }],
|
||||
[/.*$/, 'variable.source'],
|
||||
],
|
||||
codeblockgh: [
|
||||
[
|
||||
/```\s*$/,
|
||||
{
|
||||
token: 'variable.source',
|
||||
next: '@pop',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[/[^`]+/, 'variable.source'],
|
||||
],
|
||||
linecontent: [
|
||||
[/&\w+;/, 'string.escape'],
|
||||
[/@escapes/, 'escape'],
|
||||
[/\b__([^\\_]|@escapes|_(?!_))+__\b/, 'strong'],
|
||||
[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, 'strong'],
|
||||
[/\b_[^_]+_\b/, 'emphasis'],
|
||||
[/\*([^\\*]|@escapes)+\*/, 'emphasis'],
|
||||
[/`([^\\`]|@escapes)+`/, 'variable'],
|
||||
[/\{+[^}]+\}+/, 'string.target'],
|
||||
[
|
||||
/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,
|
||||
['string.link', '', 'string.link'],
|
||||
],
|
||||
[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, 'string.link'],
|
||||
{ include: 'html' },
|
||||
],
|
||||
html: [
|
||||
[/<(\w+)\/>/, 'tag'],
|
||||
[
|
||||
/<(\w+)/,
|
||||
{
|
||||
cases: {
|
||||
'@empty': { token: 'tag', next: '@tag.$1' },
|
||||
'@default': { token: 'tag', next: '@tag.$1' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[/<\/(\w+)\s*>/, { token: 'tag' }],
|
||||
[/<!--/, 'comment', '@comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^<\-]+/, 'comment.content'],
|
||||
[/-->/, 'comment', '@pop'],
|
||||
[/<!--/, 'comment.content.invalid'],
|
||||
[/[<\-]/, 'comment.content'],
|
||||
],
|
||||
tag: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[
|
||||
/(type)(\s*=\s*)(")([^"]+)(")/,
|
||||
[
|
||||
'attribute.name.html',
|
||||
'delimiter.html',
|
||||
'string.html',
|
||||
{ token: 'string.html', switchTo: '@tag.$S2.$4' },
|
||||
'string.html',
|
||||
],
|
||||
],
|
||||
[
|
||||
/(type)(\s*=\s*)(')([^']+)(')/,
|
||||
[
|
||||
'attribute.name.html',
|
||||
'delimiter.html',
|
||||
'string.html',
|
||||
{ token: 'string.html', switchTo: '@tag.$S2.$4' },
|
||||
'string.html',
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,
|
||||
['attribute.name.html', 'delimiter.html', 'string.html'],
|
||||
],
|
||||
[/\w+/, 'attribute.name.html'],
|
||||
[/\/>/, 'tag', '@pop'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
cases: {
|
||||
'$S2==style': {
|
||||
token: 'tag',
|
||||
switchTo: 'embeddedStyle',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
'$S2==script': {
|
||||
cases: {
|
||||
$S3: {
|
||||
token: 'tag',
|
||||
switchTo: 'embeddedScript',
|
||||
nextEmbedded: '$S3',
|
||||
},
|
||||
'@default': {
|
||||
token: 'tag',
|
||||
switchTo: 'embeddedScript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
},
|
||||
},
|
||||
'@default': { token: 'tag', next: '@pop' },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
embeddedStyle: [
|
||||
[/[^<]+/, ''],
|
||||
[
|
||||
/<\/style\s*>/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
[/</, ''],
|
||||
],
|
||||
embeddedScript: [
|
||||
[/[^<]+/, ''],
|
||||
[
|
||||
/<\/script\s*>/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
[/</, ''],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,753 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[3036],
|
||||
{
|
||||
33036: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => r, language: () => s });
|
||||
var r = {
|
||||
comments: { lineComment: ';;' },
|
||||
brackets: [
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['{', '}'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '{', close: '}' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '{', close: '}' },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.clj',
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
],
|
||||
constants: ['true', 'false', 'nil'],
|
||||
numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,
|
||||
characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
||||
escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
||||
specialForms: [
|
||||
'.',
|
||||
'catch',
|
||||
'def',
|
||||
'do',
|
||||
'if',
|
||||
'monitor-enter',
|
||||
'monitor-exit',
|
||||
'new',
|
||||
'quote',
|
||||
'recur',
|
||||
'set!',
|
||||
'throw',
|
||||
'try',
|
||||
'var',
|
||||
],
|
||||
coreSymbols: [
|
||||
'*',
|
||||
"*'",
|
||||
'*1',
|
||||
'*2',
|
||||
'*3',
|
||||
'*agent*',
|
||||
'*allow-unresolved-vars*',
|
||||
'*assert*',
|
||||
'*clojure-version*',
|
||||
'*command-line-args*',
|
||||
'*compile-files*',
|
||||
'*compile-path*',
|
||||
'*compiler-options*',
|
||||
'*data-readers*',
|
||||
'*default-data-reader-fn*',
|
||||
'*e',
|
||||
'*err*',
|
||||
'*file*',
|
||||
'*flush-on-newline*',
|
||||
'*fn-loader*',
|
||||
'*in*',
|
||||
'*math-context*',
|
||||
'*ns*',
|
||||
'*out*',
|
||||
'*print-dup*',
|
||||
'*print-length*',
|
||||
'*print-level*',
|
||||
'*print-meta*',
|
||||
'*print-namespace-maps*',
|
||||
'*print-readably*',
|
||||
'*read-eval*',
|
||||
'*reader-resolver*',
|
||||
'*source-path*',
|
||||
'*suppress-read*',
|
||||
'*unchecked-math*',
|
||||
'*use-context-classloader*',
|
||||
'*verbose-defrecords*',
|
||||
'*warn-on-reflection*',
|
||||
'+',
|
||||
"+'",
|
||||
'-',
|
||||
"-'",
|
||||
'->',
|
||||
'->>',
|
||||
'->ArrayChunk',
|
||||
'->Eduction',
|
||||
'->Vec',
|
||||
'->VecNode',
|
||||
'->VecSeq',
|
||||
'-cache-protocol-fn',
|
||||
'-reset-methods',
|
||||
'..',
|
||||
'/',
|
||||
'<',
|
||||
'<=',
|
||||
'=',
|
||||
'==',
|
||||
'>',
|
||||
'>=',
|
||||
'EMPTY-NODE',
|
||||
'Inst',
|
||||
'StackTraceElement->vec',
|
||||
'Throwable->map',
|
||||
'accessor',
|
||||
'aclone',
|
||||
'add-classpath',
|
||||
'add-watch',
|
||||
'agent',
|
||||
'agent-error',
|
||||
'agent-errors',
|
||||
'aget',
|
||||
'alength',
|
||||
'alias',
|
||||
'all-ns',
|
||||
'alter',
|
||||
'alter-meta!',
|
||||
'alter-var-root',
|
||||
'amap',
|
||||
'ancestors',
|
||||
'and',
|
||||
'any?',
|
||||
'apply',
|
||||
'areduce',
|
||||
'array-map',
|
||||
'as->',
|
||||
'aset',
|
||||
'aset-boolean',
|
||||
'aset-byte',
|
||||
'aset-char',
|
||||
'aset-double',
|
||||
'aset-float',
|
||||
'aset-int',
|
||||
'aset-long',
|
||||
'aset-short',
|
||||
'assert',
|
||||
'assoc',
|
||||
'assoc!',
|
||||
'assoc-in',
|
||||
'associative?',
|
||||
'atom',
|
||||
'await',
|
||||
'await-for',
|
||||
'await1',
|
||||
'bases',
|
||||
'bean',
|
||||
'bigdec',
|
||||
'bigint',
|
||||
'biginteger',
|
||||
'binding',
|
||||
'bit-and',
|
||||
'bit-and-not',
|
||||
'bit-clear',
|
||||
'bit-flip',
|
||||
'bit-not',
|
||||
'bit-or',
|
||||
'bit-set',
|
||||
'bit-shift-left',
|
||||
'bit-shift-right',
|
||||
'bit-test',
|
||||
'bit-xor',
|
||||
'boolean',
|
||||
'boolean-array',
|
||||
'boolean?',
|
||||
'booleans',
|
||||
'bound-fn',
|
||||
'bound-fn*',
|
||||
'bound?',
|
||||
'bounded-count',
|
||||
'butlast',
|
||||
'byte',
|
||||
'byte-array',
|
||||
'bytes',
|
||||
'bytes?',
|
||||
'case',
|
||||
'cast',
|
||||
'cat',
|
||||
'char',
|
||||
'char-array',
|
||||
'char-escape-string',
|
||||
'char-name-string',
|
||||
'char?',
|
||||
'chars',
|
||||
'chunk',
|
||||
'chunk-append',
|
||||
'chunk-buffer',
|
||||
'chunk-cons',
|
||||
'chunk-first',
|
||||
'chunk-next',
|
||||
'chunk-rest',
|
||||
'chunked-seq?',
|
||||
'class',
|
||||
'class?',
|
||||
'clear-agent-errors',
|
||||
'clojure-version',
|
||||
'coll?',
|
||||
'comment',
|
||||
'commute',
|
||||
'comp',
|
||||
'comparator',
|
||||
'compare',
|
||||
'compare-and-set!',
|
||||
'compile',
|
||||
'complement',
|
||||
'completing',
|
||||
'concat',
|
||||
'cond',
|
||||
'cond->',
|
||||
'cond->>',
|
||||
'condp',
|
||||
'conj',
|
||||
'conj!',
|
||||
'cons',
|
||||
'constantly',
|
||||
'construct-proxy',
|
||||
'contains?',
|
||||
'count',
|
||||
'counted?',
|
||||
'create-ns',
|
||||
'create-struct',
|
||||
'cycle',
|
||||
'dec',
|
||||
"dec'",
|
||||
'decimal?',
|
||||
'declare',
|
||||
'dedupe',
|
||||
'default-data-readers',
|
||||
'definline',
|
||||
'definterface',
|
||||
'defmacro',
|
||||
'defmethod',
|
||||
'defmulti',
|
||||
'defn',
|
||||
'defn-',
|
||||
'defonce',
|
||||
'defprotocol',
|
||||
'defrecord',
|
||||
'defstruct',
|
||||
'deftype',
|
||||
'delay',
|
||||
'delay?',
|
||||
'deliver',
|
||||
'denominator',
|
||||
'deref',
|
||||
'derive',
|
||||
'descendants',
|
||||
'destructure',
|
||||
'disj',
|
||||
'disj!',
|
||||
'dissoc',
|
||||
'dissoc!',
|
||||
'distinct',
|
||||
'distinct?',
|
||||
'doall',
|
||||
'dorun',
|
||||
'doseq',
|
||||
'dosync',
|
||||
'dotimes',
|
||||
'doto',
|
||||
'double',
|
||||
'double-array',
|
||||
'double?',
|
||||
'doubles',
|
||||
'drop',
|
||||
'drop-last',
|
||||
'drop-while',
|
||||
'eduction',
|
||||
'empty',
|
||||
'empty?',
|
||||
'ensure',
|
||||
'ensure-reduced',
|
||||
'enumeration-seq',
|
||||
'error-handler',
|
||||
'error-mode',
|
||||
'eval',
|
||||
'even?',
|
||||
'every-pred',
|
||||
'every?',
|
||||
'ex-data',
|
||||
'ex-info',
|
||||
'extend',
|
||||
'extend-protocol',
|
||||
'extend-type',
|
||||
'extenders',
|
||||
'extends?',
|
||||
'false?',
|
||||
'ffirst',
|
||||
'file-seq',
|
||||
'filter',
|
||||
'filterv',
|
||||
'find',
|
||||
'find-keyword',
|
||||
'find-ns',
|
||||
'find-protocol-impl',
|
||||
'find-protocol-method',
|
||||
'find-var',
|
||||
'first',
|
||||
'flatten',
|
||||
'float',
|
||||
'float-array',
|
||||
'float?',
|
||||
'floats',
|
||||
'flush',
|
||||
'fn',
|
||||
'fn?',
|
||||
'fnext',
|
||||
'fnil',
|
||||
'for',
|
||||
'force',
|
||||
'format',
|
||||
'frequencies',
|
||||
'future',
|
||||
'future-call',
|
||||
'future-cancel',
|
||||
'future-cancelled?',
|
||||
'future-done?',
|
||||
'future?',
|
||||
'gen-class',
|
||||
'gen-interface',
|
||||
'gensym',
|
||||
'get',
|
||||
'get-in',
|
||||
'get-method',
|
||||
'get-proxy-class',
|
||||
'get-thread-bindings',
|
||||
'get-validator',
|
||||
'group-by',
|
||||
'halt-when',
|
||||
'hash',
|
||||
'hash-combine',
|
||||
'hash-map',
|
||||
'hash-ordered-coll',
|
||||
'hash-set',
|
||||
'hash-unordered-coll',
|
||||
'ident?',
|
||||
'identical?',
|
||||
'identity',
|
||||
'if-let',
|
||||
'if-not',
|
||||
'if-some',
|
||||
'ifn?',
|
||||
'import',
|
||||
'in-ns',
|
||||
'inc',
|
||||
"inc'",
|
||||
'indexed?',
|
||||
'init-proxy',
|
||||
'inst-ms',
|
||||
'inst-ms*',
|
||||
'inst?',
|
||||
'instance?',
|
||||
'int',
|
||||
'int-array',
|
||||
'int?',
|
||||
'integer?',
|
||||
'interleave',
|
||||
'intern',
|
||||
'interpose',
|
||||
'into',
|
||||
'into-array',
|
||||
'ints',
|
||||
'io!',
|
||||
'isa?',
|
||||
'iterate',
|
||||
'iterator-seq',
|
||||
'juxt',
|
||||
'keep',
|
||||
'keep-indexed',
|
||||
'key',
|
||||
'keys',
|
||||
'keyword',
|
||||
'keyword?',
|
||||
'last',
|
||||
'lazy-cat',
|
||||
'lazy-seq',
|
||||
'let',
|
||||
'letfn',
|
||||
'line-seq',
|
||||
'list',
|
||||
'list*',
|
||||
'list?',
|
||||
'load',
|
||||
'load-file',
|
||||
'load-reader',
|
||||
'load-string',
|
||||
'loaded-libs',
|
||||
'locking',
|
||||
'long',
|
||||
'long-array',
|
||||
'longs',
|
||||
'loop',
|
||||
'macroexpand',
|
||||
'macroexpand-1',
|
||||
'make-array',
|
||||
'make-hierarchy',
|
||||
'map',
|
||||
'map-entry?',
|
||||
'map-indexed',
|
||||
'map?',
|
||||
'mapcat',
|
||||
'mapv',
|
||||
'max',
|
||||
'max-key',
|
||||
'memfn',
|
||||
'memoize',
|
||||
'merge',
|
||||
'merge-with',
|
||||
'meta',
|
||||
'method-sig',
|
||||
'methods',
|
||||
'min',
|
||||
'min-key',
|
||||
'mix-collection-hash',
|
||||
'mod',
|
||||
'munge',
|
||||
'name',
|
||||
'namespace',
|
||||
'namespace-munge',
|
||||
'nat-int?',
|
||||
'neg-int?',
|
||||
'neg?',
|
||||
'newline',
|
||||
'next',
|
||||
'nfirst',
|
||||
'nil?',
|
||||
'nnext',
|
||||
'not',
|
||||
'not-any?',
|
||||
'not-empty',
|
||||
'not-every?',
|
||||
'not=',
|
||||
'ns',
|
||||
'ns-aliases',
|
||||
'ns-imports',
|
||||
'ns-interns',
|
||||
'ns-map',
|
||||
'ns-name',
|
||||
'ns-publics',
|
||||
'ns-refers',
|
||||
'ns-resolve',
|
||||
'ns-unalias',
|
||||
'ns-unmap',
|
||||
'nth',
|
||||
'nthnext',
|
||||
'nthrest',
|
||||
'num',
|
||||
'number?',
|
||||
'numerator',
|
||||
'object-array',
|
||||
'odd?',
|
||||
'or',
|
||||
'parents',
|
||||
'partial',
|
||||
'partition',
|
||||
'partition-all',
|
||||
'partition-by',
|
||||
'pcalls',
|
||||
'peek',
|
||||
'persistent!',
|
||||
'pmap',
|
||||
'pop',
|
||||
'pop!',
|
||||
'pop-thread-bindings',
|
||||
'pos-int?',
|
||||
'pos?',
|
||||
'pr',
|
||||
'pr-str',
|
||||
'prefer-method',
|
||||
'prefers',
|
||||
'primitives-classnames',
|
||||
'print',
|
||||
'print-ctor',
|
||||
'print-dup',
|
||||
'print-method',
|
||||
'print-simple',
|
||||
'print-str',
|
||||
'printf',
|
||||
'println',
|
||||
'println-str',
|
||||
'prn',
|
||||
'prn-str',
|
||||
'promise',
|
||||
'proxy',
|
||||
'proxy-call-with-super',
|
||||
'proxy-mappings',
|
||||
'proxy-name',
|
||||
'proxy-super',
|
||||
'push-thread-bindings',
|
||||
'pvalues',
|
||||
'qualified-ident?',
|
||||
'qualified-keyword?',
|
||||
'qualified-symbol?',
|
||||
'quot',
|
||||
'rand',
|
||||
'rand-int',
|
||||
'rand-nth',
|
||||
'random-sample',
|
||||
'range',
|
||||
'ratio?',
|
||||
'rational?',
|
||||
'rationalize',
|
||||
're-find',
|
||||
're-groups',
|
||||
're-matcher',
|
||||
're-matches',
|
||||
're-pattern',
|
||||
're-seq',
|
||||
'read',
|
||||
'read-line',
|
||||
'read-string',
|
||||
'reader-conditional',
|
||||
'reader-conditional?',
|
||||
'realized?',
|
||||
'record?',
|
||||
'reduce',
|
||||
'reduce-kv',
|
||||
'reduced',
|
||||
'reduced?',
|
||||
'reductions',
|
||||
'ref',
|
||||
'ref-history-count',
|
||||
'ref-max-history',
|
||||
'ref-min-history',
|
||||
'ref-set',
|
||||
'refer',
|
||||
'refer-clojure',
|
||||
'reify',
|
||||
'release-pending-sends',
|
||||
'rem',
|
||||
'remove',
|
||||
'remove-all-methods',
|
||||
'remove-method',
|
||||
'remove-ns',
|
||||
'remove-watch',
|
||||
'repeat',
|
||||
'repeatedly',
|
||||
'replace',
|
||||
'replicate',
|
||||
'require',
|
||||
'reset!',
|
||||
'reset-meta!',
|
||||
'reset-vals!',
|
||||
'resolve',
|
||||
'rest',
|
||||
'restart-agent',
|
||||
'resultset-seq',
|
||||
'reverse',
|
||||
'reversible?',
|
||||
'rseq',
|
||||
'rsubseq',
|
||||
'run!',
|
||||
'satisfies?',
|
||||
'second',
|
||||
'select-keys',
|
||||
'send',
|
||||
'send-off',
|
||||
'send-via',
|
||||
'seq',
|
||||
'seq?',
|
||||
'seqable?',
|
||||
'seque',
|
||||
'sequence',
|
||||
'sequential?',
|
||||
'set',
|
||||
'set-agent-send-executor!',
|
||||
'set-agent-send-off-executor!',
|
||||
'set-error-handler!',
|
||||
'set-error-mode!',
|
||||
'set-validator!',
|
||||
'set?',
|
||||
'short',
|
||||
'short-array',
|
||||
'shorts',
|
||||
'shuffle',
|
||||
'shutdown-agents',
|
||||
'simple-ident?',
|
||||
'simple-keyword?',
|
||||
'simple-symbol?',
|
||||
'slurp',
|
||||
'some',
|
||||
'some->',
|
||||
'some->>',
|
||||
'some-fn',
|
||||
'some?',
|
||||
'sort',
|
||||
'sort-by',
|
||||
'sorted-map',
|
||||
'sorted-map-by',
|
||||
'sorted-set',
|
||||
'sorted-set-by',
|
||||
'sorted?',
|
||||
'special-symbol?',
|
||||
'spit',
|
||||
'split-at',
|
||||
'split-with',
|
||||
'str',
|
||||
'string?',
|
||||
'struct',
|
||||
'struct-map',
|
||||
'subs',
|
||||
'subseq',
|
||||
'subvec',
|
||||
'supers',
|
||||
'swap!',
|
||||
'swap-vals!',
|
||||
'symbol',
|
||||
'symbol?',
|
||||
'sync',
|
||||
'tagged-literal',
|
||||
'tagged-literal?',
|
||||
'take',
|
||||
'take-last',
|
||||
'take-nth',
|
||||
'take-while',
|
||||
'test',
|
||||
'the-ns',
|
||||
'thread-bound?',
|
||||
'time',
|
||||
'to-array',
|
||||
'to-array-2d',
|
||||
'trampoline',
|
||||
'transduce',
|
||||
'transient',
|
||||
'tree-seq',
|
||||
'true?',
|
||||
'type',
|
||||
'unchecked-add',
|
||||
'unchecked-add-int',
|
||||
'unchecked-byte',
|
||||
'unchecked-char',
|
||||
'unchecked-dec',
|
||||
'unchecked-dec-int',
|
||||
'unchecked-divide-int',
|
||||
'unchecked-double',
|
||||
'unchecked-float',
|
||||
'unchecked-inc',
|
||||
'unchecked-inc-int',
|
||||
'unchecked-int',
|
||||
'unchecked-long',
|
||||
'unchecked-multiply',
|
||||
'unchecked-multiply-int',
|
||||
'unchecked-negate',
|
||||
'unchecked-negate-int',
|
||||
'unchecked-remainder-int',
|
||||
'unchecked-short',
|
||||
'unchecked-subtract',
|
||||
'unchecked-subtract-int',
|
||||
'underive',
|
||||
'unquote',
|
||||
'unquote-splicing',
|
||||
'unreduced',
|
||||
'unsigned-bit-shift-right',
|
||||
'update',
|
||||
'update-in',
|
||||
'update-proxy',
|
||||
'uri?',
|
||||
'use',
|
||||
'uuid?',
|
||||
'val',
|
||||
'vals',
|
||||
'var-get',
|
||||
'var-set',
|
||||
'var?',
|
||||
'vary-meta',
|
||||
'vec',
|
||||
'vector',
|
||||
'vector-of',
|
||||
'vector?',
|
||||
'volatile!',
|
||||
'volatile?',
|
||||
'vreset!',
|
||||
'vswap!',
|
||||
'when',
|
||||
'when-first',
|
||||
'when-let',
|
||||
'when-not',
|
||||
'when-some',
|
||||
'while',
|
||||
'with-bindings',
|
||||
'with-bindings*',
|
||||
'with-in-str',
|
||||
'with-loading-context',
|
||||
'with-local-vars',
|
||||
'with-meta',
|
||||
'with-open',
|
||||
'with-out-str',
|
||||
'with-precision',
|
||||
'with-redefs',
|
||||
'with-redefs-fn',
|
||||
'xml-seq',
|
||||
'zero?',
|
||||
'zipmap',
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
[/@numbers/, 'number'],
|
||||
[/@characters/, 'string'],
|
||||
{ include: '@string' },
|
||||
[/[()\[\]{}]/, '@brackets'],
|
||||
[/\/#"(?:\.|(?:")|[^"\n])*"\/g/, 'regexp'],
|
||||
[/[#'@^`~]/, 'meta'],
|
||||
[
|
||||
/@qualifiedSymbols/,
|
||||
{
|
||||
cases: {
|
||||
'^:.+$': 'constant',
|
||||
'@specialForms': 'keyword',
|
||||
'@coreSymbols': 'keyword',
|
||||
'@constants': 'constant',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
whitespace: [
|
||||
[/[\s,]+/, 'white'],
|
||||
[/;.*$/, 'comment'],
|
||||
[/\(comment\b/, 'comment', '@comment'],
|
||||
],
|
||||
comment: [
|
||||
[/\(/, 'comment', '@push'],
|
||||
[/\)/, 'comment', '@pop'],
|
||||
[/[^()]/, 'comment'],
|
||||
],
|
||||
string: [[/"/, 'string', '@multiLineString']],
|
||||
multiLineString: [
|
||||
[/"/, 'string', '@popall'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,164 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[3585],
|
||||
{
|
||||
23585: (e, n, t) => {
|
||||
'use strict';
|
||||
t.r(n), t.d(n, { conf: () => r, language: () => o });
|
||||
var r = {
|
||||
comments: { lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: { offSide: !0 },
|
||||
},
|
||||
o = {
|
||||
tokenPostfix: '.yaml',
|
||||
brackets: [
|
||||
{ token: 'delimiter.bracket', open: '{', close: '}' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
],
|
||||
keywords: [
|
||||
'true',
|
||||
'True',
|
||||
'TRUE',
|
||||
'false',
|
||||
'False',
|
||||
'FALSE',
|
||||
'null',
|
||||
'Null',
|
||||
'Null',
|
||||
'~',
|
||||
],
|
||||
numberInteger: /(?:0|[+-]?[0-9]+)/,
|
||||
numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
|
||||
numberOctal: /0o[0-7]+/,
|
||||
numberHex: /0x[0-9a-fA-F]+/,
|
||||
numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
|
||||
numberNaN: /\.(?:nan|Nan|NAN)/,
|
||||
numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
|
||||
escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comment' },
|
||||
[/%[^ ]+.*$/, 'meta.directive'],
|
||||
[/---/, 'operators.directivesEnd'],
|
||||
[/\.{3}/, 'operators.documentEnd'],
|
||||
[/[-?:](?= )/, 'operators'],
|
||||
{ include: '@anchor' },
|
||||
{ include: '@tagHandle' },
|
||||
{ include: '@flowCollections' },
|
||||
{ include: '@blockStyle' },
|
||||
[/@numberInteger(?![ \t]*\S+)/, 'number'],
|
||||
[/@numberFloat(?![ \t]*\S+)/, 'number.float'],
|
||||
[/@numberOctal(?![ \t]*\S+)/, 'number.octal'],
|
||||
[/@numberHex(?![ \t]*\S+)/, 'number.hex'],
|
||||
[/@numberInfinity(?![ \t]*\S+)/, 'number.infinity'],
|
||||
[/@numberNaN(?![ \t]*\S+)/, 'number.nan'],
|
||||
[/@numberDate(?![ \t]*\S+)/, 'number.date'],
|
||||
[
|
||||
/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,
|
||||
['type', 'white', 'operators', 'white'],
|
||||
],
|
||||
{ include: '@flowScalars' },
|
||||
[
|
||||
/.+$/,
|
||||
{ cases: { '@keywords': 'keyword', '@default': 'string' } },
|
||||
],
|
||||
],
|
||||
object: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comment' },
|
||||
[/\}/, '@brackets', '@pop'],
|
||||
[/,/, 'delimiter.comma'],
|
||||
[/:(?= )/, 'operators'],
|
||||
[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, 'type'],
|
||||
{ include: '@flowCollections' },
|
||||
{ include: '@flowScalars' },
|
||||
{ include: '@tagHandle' },
|
||||
{ include: '@anchor' },
|
||||
{ include: '@flowNumber' },
|
||||
[
|
||||
/[^\},]+/,
|
||||
{ cases: { '@keywords': 'keyword', '@default': 'string' } },
|
||||
],
|
||||
],
|
||||
array: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comment' },
|
||||
[/\]/, '@brackets', '@pop'],
|
||||
[/,/, 'delimiter.comma'],
|
||||
{ include: '@flowCollections' },
|
||||
{ include: '@flowScalars' },
|
||||
{ include: '@tagHandle' },
|
||||
{ include: '@anchor' },
|
||||
{ include: '@flowNumber' },
|
||||
[
|
||||
/[^\],]+/,
|
||||
{ cases: { '@keywords': 'keyword', '@default': 'string' } },
|
||||
],
|
||||
],
|
||||
multiString: [[/^( +).+$/, 'string', '@multiStringContinued.$1']],
|
||||
multiStringContinued: [
|
||||
[
|
||||
/^( *).+$/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': 'string',
|
||||
'@default': { token: '@rematch', next: '@popall' },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
whitespace: [[/[ \t\r\n]+/, 'white']],
|
||||
comment: [[/#.*$/, 'comment']],
|
||||
flowCollections: [
|
||||
[/\[/, '@brackets', '@array'],
|
||||
[/\{/, '@brackets', '@object'],
|
||||
],
|
||||
flowScalars: [
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'[^']*'/, 'string'],
|
||||
[/"/, 'string', '@doubleQuotedString'],
|
||||
],
|
||||
doubleQuotedString: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
blockStyle: [[/[>|][0-9]*[+-]?$/, 'operators', '@multiString']],
|
||||
flowNumber: [
|
||||
[/@numberInteger(?=[ \t]*[,\]\}])/, 'number'],
|
||||
[/@numberFloat(?=[ \t]*[,\]\}])/, 'number.float'],
|
||||
[/@numberOctal(?=[ \t]*[,\]\}])/, 'number.octal'],
|
||||
[/@numberHex(?=[ \t]*[,\]\}])/, 'number.hex'],
|
||||
[/@numberInfinity(?=[ \t]*[,\]\}])/, 'number.infinity'],
|
||||
[/@numberNaN(?=[ \t]*[,\]\}])/, 'number.nan'],
|
||||
[/@numberDate(?=[ \t]*[,\]\}])/, 'number.date'],
|
||||
],
|
||||
tagHandle: [[/\![^ ]*/, 'tag']],
|
||||
anchor: [[/[&*][^ ]+/, 'namespace']],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,170 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[3632],
|
||||
{
|
||||
48534: (e, t, s) => {
|
||||
'use strict';
|
||||
s.r(t), s.d(t, { conf: () => r, language: () => o });
|
||||
var r = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
},
|
||||
o = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.hcl',
|
||||
keywords: [
|
||||
'var',
|
||||
'local',
|
||||
'path',
|
||||
'for_each',
|
||||
'any',
|
||||
'string',
|
||||
'number',
|
||||
'bool',
|
||||
'true',
|
||||
'false',
|
||||
'null',
|
||||
'if ',
|
||||
'else ',
|
||||
'endif ',
|
||||
'for ',
|
||||
'in',
|
||||
'endfor',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>=',
|
||||
'<=',
|
||||
'==',
|
||||
'!=',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'&&',
|
||||
'||',
|
||||
'!',
|
||||
'<',
|
||||
'>',
|
||||
'?',
|
||||
'...',
|
||||
':',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
|
||||
terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||
['type', '', 'string', '', 'string', '', '@brackets'],
|
||||
],
|
||||
[
|
||||
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||
['identifier', '', 'string', '', 'string', '', '@brackets'],
|
||||
],
|
||||
[
|
||||
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
|
||||
['identifier', '', 'string', '', 'operator', '', '@brackets'],
|
||||
],
|
||||
{ include: '@terraform' },
|
||||
],
|
||||
terraform: [
|
||||
[/@terraformFunctions(\()/, ['type', '@brackets']],
|
||||
[
|
||||
/[a-zA-Z_]\w*-*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'variable',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@heredoc' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'operator', '@default': '' } },
|
||||
],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\d[\d']*/, 'number'],
|
||||
[/\d/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"/, 'string', '@string'],
|
||||
[/'/, 'invalid'],
|
||||
],
|
||||
heredoc: [
|
||||
[
|
||||
/<<[-]*\s*["]?([\w\-]+)["]?/,
|
||||
{ token: 'string.heredoc.delimiter', next: '@heredocBody.$1' },
|
||||
],
|
||||
],
|
||||
heredocBody: [
|
||||
[
|
||||
/^([\w\-]+)$/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': [
|
||||
{ token: 'string.heredoc.delimiter', next: '@popall' },
|
||||
],
|
||||
'@default': 'string.heredoc',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/./, 'string.heredoc'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
[/#.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/\$\{/, { token: 'delimiter', next: '@stringExpression' }],
|
||||
[/[^\\"\$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@popall'],
|
||||
],
|
||||
stringInsideExpression: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
stringExpression: [
|
||||
[/\}/, { token: 'delimiter', next: '@pop' }],
|
||||
[/"/, 'string', '@stringInsideExpression'],
|
||||
{ include: '@terraform' },
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,183 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[3919],
|
||||
{
|
||||
63919: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => s });
|
||||
var o = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['<', '>'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: '{', close: '}', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.aes',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
{ token: 'delimiter.angle', open: '<', close: '>' },
|
||||
],
|
||||
keywords: [
|
||||
'contract',
|
||||
'library',
|
||||
'entrypoint',
|
||||
'function',
|
||||
'stateful',
|
||||
'state',
|
||||
'hash',
|
||||
'signature',
|
||||
'tuple',
|
||||
'list',
|
||||
'address',
|
||||
'string',
|
||||
'bool',
|
||||
'int',
|
||||
'record',
|
||||
'datatype',
|
||||
'type',
|
||||
'option',
|
||||
'oracle',
|
||||
'oracle_query',
|
||||
'Call',
|
||||
'Bits',
|
||||
'Bytes',
|
||||
'Oracle',
|
||||
'String',
|
||||
'Crypto',
|
||||
'Address',
|
||||
'Auth',
|
||||
'Chain',
|
||||
'None',
|
||||
'Some',
|
||||
'bits',
|
||||
'bytes',
|
||||
'event',
|
||||
'let',
|
||||
'map',
|
||||
'private',
|
||||
'public',
|
||||
'true',
|
||||
'false',
|
||||
'var',
|
||||
'if',
|
||||
'else',
|
||||
'throw',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'!',
|
||||
'~',
|
||||
'?',
|
||||
'::',
|
||||
':',
|
||||
'==',
|
||||
'<=',
|
||||
'>=',
|
||||
'!=',
|
||||
'&&',
|
||||
'||',
|
||||
'++',
|
||||
'--',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'%',
|
||||
'<<',
|
||||
'>>',
|
||||
'>>>',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>=',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
||||
floatsuffix: /[fFlL]?/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/\[\[.*\]\]/, 'annotation'],
|
||||
[/^\s*#\w+/, 'keyword'],
|
||||
[/int\d*/, 'keyword'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, 'number.hex'],
|
||||
[/0[0-7']*[0-7](@integersuffix)/, 'number.octal'],
|
||||
[/0[bB][0-1']*[0-1](@integersuffix)/, 'number.binary'],
|
||||
[/\d[\d']*\d(@integersuffix)/, 'number'],
|
||||
[/\d(@integersuffix)/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
doccomment: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,97 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4129],
|
||||
{
|
||||
84129: (e, s, o) => {
|
||||
'use strict';
|
||||
o.r(s), o.d(s, { conf: () => t, language: () => n });
|
||||
var t = {
|
||||
comments: { lineComment: 'REM' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*(::\\s*|REM\\s+)#region'),
|
||||
end: new RegExp('^\\s*(::\\s*|REM\\s+)#endregion'),
|
||||
},
|
||||
},
|
||||
},
|
||||
n = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.bat',
|
||||
brackets: [
|
||||
{ token: 'delimiter.bracket', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
],
|
||||
keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,
|
||||
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/^(\s*)(rem(?:\s.*|))$/, ['', 'comment']],
|
||||
[
|
||||
/(\@?)(@keywords)(?!\w)/,
|
||||
[{ token: 'keyword' }, { token: 'keyword.$2' }],
|
||||
],
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/setlocal(?!\w)/, 'keyword.tag-setlocal'],
|
||||
[/endlocal(?!\w)/, 'keyword.tag-setlocal'],
|
||||
[/[a-zA-Z_]\w*/, ''],
|
||||
[/:\w*/, 'metatag'],
|
||||
[/%[^%]+%/, 'variable'],
|
||||
[/%%[\w]+(?!\w)/, 'variable'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"/, 'string', '@string."'],
|
||||
[/'/, 'string', "@string.'"],
|
||||
],
|
||||
string: [
|
||||
[
|
||||
/[^\\"'%]+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/%[\w ]+%/, 'variable'],
|
||||
[/%%[\w]+(?!\w)/, 'variable'],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/$/, 'string', '@popall'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,245 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4368],
|
||||
{
|
||||
84368: (e, i, t) => {
|
||||
'use strict';
|
||||
t.r(i), t.d(i, { conf: () => n, language: () => s });
|
||||
var n = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))'
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.kt',
|
||||
keywords: [
|
||||
'as',
|
||||
'as?',
|
||||
'break',
|
||||
'class',
|
||||
'continue',
|
||||
'do',
|
||||
'else',
|
||||
'false',
|
||||
'for',
|
||||
'fun',
|
||||
'if',
|
||||
'in',
|
||||
'!in',
|
||||
'interface',
|
||||
'is',
|
||||
'!is',
|
||||
'null',
|
||||
'object',
|
||||
'package',
|
||||
'return',
|
||||
'super',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'typealias',
|
||||
'val',
|
||||
'var',
|
||||
'when',
|
||||
'while',
|
||||
'by',
|
||||
'catch',
|
||||
'constructor',
|
||||
'delegate',
|
||||
'dynamic',
|
||||
'field',
|
||||
'file',
|
||||
'finally',
|
||||
'get',
|
||||
'import',
|
||||
'init',
|
||||
'param',
|
||||
'property',
|
||||
'receiver',
|
||||
'set',
|
||||
'setparam',
|
||||
'where',
|
||||
'actual',
|
||||
'abstract',
|
||||
'annotation',
|
||||
'companion',
|
||||
'const',
|
||||
'crossinline',
|
||||
'data',
|
||||
'enum',
|
||||
'expect',
|
||||
'external',
|
||||
'final',
|
||||
'infix',
|
||||
'inline',
|
||||
'inner',
|
||||
'internal',
|
||||
'lateinit',
|
||||
'noinline',
|
||||
'open',
|
||||
'operator',
|
||||
'out',
|
||||
'override',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'reified',
|
||||
'sealed',
|
||||
'suspend',
|
||||
'tailrec',
|
||||
'vararg',
|
||||
'field',
|
||||
'it',
|
||||
],
|
||||
operators: [
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'=',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'%=',
|
||||
'++',
|
||||
'--',
|
||||
'&&',
|
||||
'||',
|
||||
'!',
|
||||
'==',
|
||||
'!=',
|
||||
'===',
|
||||
'!==',
|
||||
'>',
|
||||
'<',
|
||||
'<=',
|
||||
'>=',
|
||||
'[',
|
||||
']',
|
||||
'!!',
|
||||
'?.',
|
||||
'?:',
|
||||
'::',
|
||||
'..',
|
||||
':',
|
||||
'?',
|
||||
'->',
|
||||
'@',
|
||||
';',
|
||||
'$',
|
||||
'_',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/[A-Z][\w\$]*/, 'type.identifier'],
|
||||
[
|
||||
/[a-zA-Z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/@\s*[a-zA-Z_\$][\w\$]*/, 'annotation'],
|
||||
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, 'number.float'],
|
||||
[
|
||||
/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,
|
||||
'number.float',
|
||||
],
|
||||
[/0[xX](@hexdigits)[Ll]?/, 'number.hex'],
|
||||
[/0(@octaldigits)[Ll]?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)[Ll]?/, 'number.binary'],
|
||||
[/(@digits)[fFdD]/, 'number.float'],
|
||||
[/(@digits)[lL]?/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"""/, 'string', '@multistring'],
|
||||
[/"/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@javadoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
javadoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\/\*/, 'comment.doc', '@push'],
|
||||
[/\/\*/, 'comment.doc.invalid'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
multistring: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"""/, 'string', '@pop'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,321 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4386],
|
||||
{
|
||||
54386: (e, t, s) => {
|
||||
'use strict';
|
||||
s.r(t), s.d(t, { conf: () => o, language: () => i });
|
||||
var o = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))'
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
n = [];
|
||||
[
|
||||
'abstract',
|
||||
'activate',
|
||||
'and',
|
||||
'any',
|
||||
'array',
|
||||
'as',
|
||||
'asc',
|
||||
'assert',
|
||||
'autonomous',
|
||||
'begin',
|
||||
'bigdecimal',
|
||||
'blob',
|
||||
'boolean',
|
||||
'break',
|
||||
'bulk',
|
||||
'by',
|
||||
'case',
|
||||
'cast',
|
||||
'catch',
|
||||
'char',
|
||||
'class',
|
||||
'collect',
|
||||
'commit',
|
||||
'const',
|
||||
'continue',
|
||||
'convertcurrency',
|
||||
'decimal',
|
||||
'default',
|
||||
'delete',
|
||||
'desc',
|
||||
'do',
|
||||
'double',
|
||||
'else',
|
||||
'end',
|
||||
'enum',
|
||||
'exception',
|
||||
'exit',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'final',
|
||||
'finally',
|
||||
'float',
|
||||
'for',
|
||||
'from',
|
||||
'future',
|
||||
'get',
|
||||
'global',
|
||||
'goto',
|
||||
'group',
|
||||
'having',
|
||||
'hint',
|
||||
'if',
|
||||
'implements',
|
||||
'import',
|
||||
'in',
|
||||
'inner',
|
||||
'insert',
|
||||
'instanceof',
|
||||
'int',
|
||||
'interface',
|
||||
'into',
|
||||
'join',
|
||||
'last_90_days',
|
||||
'last_month',
|
||||
'last_n_days',
|
||||
'last_week',
|
||||
'like',
|
||||
'limit',
|
||||
'list',
|
||||
'long',
|
||||
'loop',
|
||||
'map',
|
||||
'merge',
|
||||
'native',
|
||||
'new',
|
||||
'next_90_days',
|
||||
'next_month',
|
||||
'next_n_days',
|
||||
'next_week',
|
||||
'not',
|
||||
'null',
|
||||
'nulls',
|
||||
'number',
|
||||
'object',
|
||||
'of',
|
||||
'on',
|
||||
'or',
|
||||
'outer',
|
||||
'override',
|
||||
'package',
|
||||
'parallel',
|
||||
'pragma',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'retrieve',
|
||||
'return',
|
||||
'returning',
|
||||
'rollback',
|
||||
'savepoint',
|
||||
'search',
|
||||
'select',
|
||||
'set',
|
||||
'short',
|
||||
'sort',
|
||||
'stat',
|
||||
'static',
|
||||
'strictfp',
|
||||
'super',
|
||||
'switch',
|
||||
'synchronized',
|
||||
'system',
|
||||
'testmethod',
|
||||
'then',
|
||||
'this',
|
||||
'this_month',
|
||||
'this_week',
|
||||
'throw',
|
||||
'throws',
|
||||
'today',
|
||||
'tolabel',
|
||||
'tomorrow',
|
||||
'transaction',
|
||||
'transient',
|
||||
'trigger',
|
||||
'true',
|
||||
'try',
|
||||
'type',
|
||||
'undelete',
|
||||
'update',
|
||||
'upsert',
|
||||
'using',
|
||||
'virtual',
|
||||
'void',
|
||||
'volatile',
|
||||
'webservice',
|
||||
'when',
|
||||
'where',
|
||||
'while',
|
||||
'yesterday',
|
||||
].forEach(function (e) {
|
||||
n.push(e),
|
||||
n.push(e.toUpperCase()),
|
||||
n.push(
|
||||
(function (e) {
|
||||
return e.charAt(0).toUpperCase() + e.substr(1);
|
||||
})(e)
|
||||
);
|
||||
});
|
||||
var i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.apex',
|
||||
keywords: n,
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'!',
|
||||
'~',
|
||||
'?',
|
||||
':',
|
||||
'==',
|
||||
'<=',
|
||||
'>=',
|
||||
'!=',
|
||||
'&&',
|
||||
'||',
|
||||
'++',
|
||||
'--',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'%',
|
||||
'<<',
|
||||
'>>',
|
||||
'>>>',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>=',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/[A-Z][\w\$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'type.identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/@\s*[a-zA-Z_\$][\w\$]*/, 'annotation'],
|
||||
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, 'number.float'],
|
||||
[
|
||||
/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,
|
||||
'number.float',
|
||||
],
|
||||
[/(@digits)[fFdD]/, 'number.float'],
|
||||
[/(@digits)[lL]?/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string."'],
|
||||
[/'/, 'string', "@string.'"],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@apexdoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
apexdoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,912 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4407],
|
||||
{
|
||||
94407: (e, t, a) => {
|
||||
'use strict';
|
||||
a.r(t), a.d(t, { conf: () => n, language: () => i });
|
||||
var n = {
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['{', '}'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{
|
||||
open: '"',
|
||||
close: '"',
|
||||
notIn: ['string', 'comment', 'identifier'],
|
||||
},
|
||||
{
|
||||
open: '[',
|
||||
close: ']',
|
||||
notIn: ['string', 'comment', 'identifier'],
|
||||
},
|
||||
{
|
||||
open: '(',
|
||||
close: ')',
|
||||
notIn: ['string', 'comment', 'identifier'],
|
||||
},
|
||||
{
|
||||
open: '{',
|
||||
close: '}',
|
||||
notIn: ['string', 'comment', 'identifier'],
|
||||
},
|
||||
],
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.pq',
|
||||
ignoreCase: !1,
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '{', close: '}', token: 'delimiter.brackets' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
],
|
||||
operatorKeywords: ['and', 'not', 'or'],
|
||||
keywords: [
|
||||
'as',
|
||||
'each',
|
||||
'else',
|
||||
'error',
|
||||
'false',
|
||||
'if',
|
||||
'in',
|
||||
'is',
|
||||
'let',
|
||||
'meta',
|
||||
'otherwise',
|
||||
'section',
|
||||
'shared',
|
||||
'then',
|
||||
'true',
|
||||
'try',
|
||||
'type',
|
||||
],
|
||||
constructors: [
|
||||
'#binary',
|
||||
'#date',
|
||||
'#datetime',
|
||||
'#datetimezone',
|
||||
'#duration',
|
||||
'#table',
|
||||
'#time',
|
||||
],
|
||||
constants: ['#infinity', '#nan', '#sections', '#shared'],
|
||||
typeKeywords: [
|
||||
'action',
|
||||
'any',
|
||||
'anynonnull',
|
||||
'none',
|
||||
'null',
|
||||
'logical',
|
||||
'number',
|
||||
'time',
|
||||
'date',
|
||||
'datetime',
|
||||
'datetimezone',
|
||||
'duration',
|
||||
'text',
|
||||
'binary',
|
||||
'list',
|
||||
'record',
|
||||
'table',
|
||||
'function',
|
||||
],
|
||||
builtinFunctions: [
|
||||
'Access.Database',
|
||||
'Action.Return',
|
||||
'Action.Sequence',
|
||||
'Action.Try',
|
||||
'ActiveDirectory.Domains',
|
||||
'AdoDotNet.DataSource',
|
||||
'AdoDotNet.Query',
|
||||
'AdobeAnalytics.Cubes',
|
||||
'AnalysisServices.Database',
|
||||
'AnalysisServices.Databases',
|
||||
'AzureStorage.BlobContents',
|
||||
'AzureStorage.Blobs',
|
||||
'AzureStorage.Tables',
|
||||
'Binary.Buffer',
|
||||
'Binary.Combine',
|
||||
'Binary.Compress',
|
||||
'Binary.Decompress',
|
||||
'Binary.End',
|
||||
'Binary.From',
|
||||
'Binary.FromList',
|
||||
'Binary.FromText',
|
||||
'Binary.InferContentType',
|
||||
'Binary.Length',
|
||||
'Binary.ToList',
|
||||
'Binary.ToText',
|
||||
'BinaryFormat.7BitEncodedSignedInteger',
|
||||
'BinaryFormat.7BitEncodedUnsignedInteger',
|
||||
'BinaryFormat.Binary',
|
||||
'BinaryFormat.Byte',
|
||||
'BinaryFormat.ByteOrder',
|
||||
'BinaryFormat.Choice',
|
||||
'BinaryFormat.Decimal',
|
||||
'BinaryFormat.Double',
|
||||
'BinaryFormat.Group',
|
||||
'BinaryFormat.Length',
|
||||
'BinaryFormat.List',
|
||||
'BinaryFormat.Null',
|
||||
'BinaryFormat.Record',
|
||||
'BinaryFormat.SignedInteger16',
|
||||
'BinaryFormat.SignedInteger32',
|
||||
'BinaryFormat.SignedInteger64',
|
||||
'BinaryFormat.Single',
|
||||
'BinaryFormat.Text',
|
||||
'BinaryFormat.Transform',
|
||||
'BinaryFormat.UnsignedInteger16',
|
||||
'BinaryFormat.UnsignedInteger32',
|
||||
'BinaryFormat.UnsignedInteger64',
|
||||
'Byte.From',
|
||||
'Character.FromNumber',
|
||||
'Character.ToNumber',
|
||||
'Combiner.CombineTextByDelimiter',
|
||||
'Combiner.CombineTextByEachDelimiter',
|
||||
'Combiner.CombineTextByLengths',
|
||||
'Combiner.CombineTextByPositions',
|
||||
'Combiner.CombineTextByRanges',
|
||||
'Comparer.Equals',
|
||||
'Comparer.FromCulture',
|
||||
'Comparer.Ordinal',
|
||||
'Comparer.OrdinalIgnoreCase',
|
||||
'Csv.Document',
|
||||
'Cube.AddAndExpandDimensionColumn',
|
||||
'Cube.AddMeasureColumn',
|
||||
'Cube.ApplyParameter',
|
||||
'Cube.AttributeMemberId',
|
||||
'Cube.AttributeMemberProperty',
|
||||
'Cube.CollapseAndRemoveColumns',
|
||||
'Cube.Dimensions',
|
||||
'Cube.DisplayFolders',
|
||||
'Cube.Measures',
|
||||
'Cube.Parameters',
|
||||
'Cube.Properties',
|
||||
'Cube.PropertyKey',
|
||||
'Cube.ReplaceDimensions',
|
||||
'Cube.Transform',
|
||||
'Currency.From',
|
||||
'DB2.Database',
|
||||
'Date.AddDays',
|
||||
'Date.AddMonths',
|
||||
'Date.AddQuarters',
|
||||
'Date.AddWeeks',
|
||||
'Date.AddYears',
|
||||
'Date.Day',
|
||||
'Date.DayOfWeek',
|
||||
'Date.DayOfWeekName',
|
||||
'Date.DayOfYear',
|
||||
'Date.DaysInMonth',
|
||||
'Date.EndOfDay',
|
||||
'Date.EndOfMonth',
|
||||
'Date.EndOfQuarter',
|
||||
'Date.EndOfWeek',
|
||||
'Date.EndOfYear',
|
||||
'Date.From',
|
||||
'Date.FromText',
|
||||
'Date.IsInCurrentDay',
|
||||
'Date.IsInCurrentMonth',
|
||||
'Date.IsInCurrentQuarter',
|
||||
'Date.IsInCurrentWeek',
|
||||
'Date.IsInCurrentYear',
|
||||
'Date.IsInNextDay',
|
||||
'Date.IsInNextMonth',
|
||||
'Date.IsInNextNDays',
|
||||
'Date.IsInNextNMonths',
|
||||
'Date.IsInNextNQuarters',
|
||||
'Date.IsInNextNWeeks',
|
||||
'Date.IsInNextNYears',
|
||||
'Date.IsInNextQuarter',
|
||||
'Date.IsInNextWeek',
|
||||
'Date.IsInNextYear',
|
||||
'Date.IsInPreviousDay',
|
||||
'Date.IsInPreviousMonth',
|
||||
'Date.IsInPreviousNDays',
|
||||
'Date.IsInPreviousNMonths',
|
||||
'Date.IsInPreviousNQuarters',
|
||||
'Date.IsInPreviousNWeeks',
|
||||
'Date.IsInPreviousNYears',
|
||||
'Date.IsInPreviousQuarter',
|
||||
'Date.IsInPreviousWeek',
|
||||
'Date.IsInPreviousYear',
|
||||
'Date.IsInYearToDate',
|
||||
'Date.IsLeapYear',
|
||||
'Date.Month',
|
||||
'Date.MonthName',
|
||||
'Date.QuarterOfYear',
|
||||
'Date.StartOfDay',
|
||||
'Date.StartOfMonth',
|
||||
'Date.StartOfQuarter',
|
||||
'Date.StartOfWeek',
|
||||
'Date.StartOfYear',
|
||||
'Date.ToRecord',
|
||||
'Date.ToText',
|
||||
'Date.WeekOfMonth',
|
||||
'Date.WeekOfYear',
|
||||
'Date.Year',
|
||||
'DateTime.AddZone',
|
||||
'DateTime.Date',
|
||||
'DateTime.FixedLocalNow',
|
||||
'DateTime.From',
|
||||
'DateTime.FromFileTime',
|
||||
'DateTime.FromText',
|
||||
'DateTime.IsInCurrentHour',
|
||||
'DateTime.IsInCurrentMinute',
|
||||
'DateTime.IsInCurrentSecond',
|
||||
'DateTime.IsInNextHour',
|
||||
'DateTime.IsInNextMinute',
|
||||
'DateTime.IsInNextNHours',
|
||||
'DateTime.IsInNextNMinutes',
|
||||
'DateTime.IsInNextNSeconds',
|
||||
'DateTime.IsInNextSecond',
|
||||
'DateTime.IsInPreviousHour',
|
||||
'DateTime.IsInPreviousMinute',
|
||||
'DateTime.IsInPreviousNHours',
|
||||
'DateTime.IsInPreviousNMinutes',
|
||||
'DateTime.IsInPreviousNSeconds',
|
||||
'DateTime.IsInPreviousSecond',
|
||||
'DateTime.LocalNow',
|
||||
'DateTime.Time',
|
||||
'DateTime.ToRecord',
|
||||
'DateTime.ToText',
|
||||
'DateTimeZone.FixedLocalNow',
|
||||
'DateTimeZone.FixedUtcNow',
|
||||
'DateTimeZone.From',
|
||||
'DateTimeZone.FromFileTime',
|
||||
'DateTimeZone.FromText',
|
||||
'DateTimeZone.LocalNow',
|
||||
'DateTimeZone.RemoveZone',
|
||||
'DateTimeZone.SwitchZone',
|
||||
'DateTimeZone.ToLocal',
|
||||
'DateTimeZone.ToRecord',
|
||||
'DateTimeZone.ToText',
|
||||
'DateTimeZone.ToUtc',
|
||||
'DateTimeZone.UtcNow',
|
||||
'DateTimeZone.ZoneHours',
|
||||
'DateTimeZone.ZoneMinutes',
|
||||
'Decimal.From',
|
||||
'Diagnostics.ActivityId',
|
||||
'Diagnostics.Trace',
|
||||
'DirectQueryCapabilities.From',
|
||||
'Double.From',
|
||||
'Duration.Days',
|
||||
'Duration.From',
|
||||
'Duration.FromText',
|
||||
'Duration.Hours',
|
||||
'Duration.Minutes',
|
||||
'Duration.Seconds',
|
||||
'Duration.ToRecord',
|
||||
'Duration.ToText',
|
||||
'Duration.TotalDays',
|
||||
'Duration.TotalHours',
|
||||
'Duration.TotalMinutes',
|
||||
'Duration.TotalSeconds',
|
||||
'Embedded.Value',
|
||||
'Error.Record',
|
||||
'Excel.CurrentWorkbook',
|
||||
'Excel.Workbook',
|
||||
'Exchange.Contents',
|
||||
'Expression.Constant',
|
||||
'Expression.Evaluate',
|
||||
'Expression.Identifier',
|
||||
'Facebook.Graph',
|
||||
'File.Contents',
|
||||
'Folder.Contents',
|
||||
'Folder.Files',
|
||||
'Function.From',
|
||||
'Function.Invoke',
|
||||
'Function.InvokeAfter',
|
||||
'Function.IsDataSource',
|
||||
'GoogleAnalytics.Accounts',
|
||||
'Guid.From',
|
||||
'HdInsight.Containers',
|
||||
'HdInsight.Contents',
|
||||
'HdInsight.Files',
|
||||
'Hdfs.Contents',
|
||||
'Hdfs.Files',
|
||||
'Informix.Database',
|
||||
'Int16.From',
|
||||
'Int32.From',
|
||||
'Int64.From',
|
||||
'Int8.From',
|
||||
'ItemExpression.From',
|
||||
'Json.Document',
|
||||
'Json.FromValue',
|
||||
'Lines.FromBinary',
|
||||
'Lines.FromText',
|
||||
'Lines.ToBinary',
|
||||
'Lines.ToText',
|
||||
'List.Accumulate',
|
||||
'List.AllTrue',
|
||||
'List.Alternate',
|
||||
'List.AnyTrue',
|
||||
'List.Average',
|
||||
'List.Buffer',
|
||||
'List.Combine',
|
||||
'List.Contains',
|
||||
'List.ContainsAll',
|
||||
'List.ContainsAny',
|
||||
'List.Count',
|
||||
'List.Covariance',
|
||||
'List.DateTimeZones',
|
||||
'List.DateTimes',
|
||||
'List.Dates',
|
||||
'List.Difference',
|
||||
'List.Distinct',
|
||||
'List.Durations',
|
||||
'List.FindText',
|
||||
'List.First',
|
||||
'List.FirstN',
|
||||
'List.Generate',
|
||||
'List.InsertRange',
|
||||
'List.Intersect',
|
||||
'List.IsDistinct',
|
||||
'List.IsEmpty',
|
||||
'List.Last',
|
||||
'List.LastN',
|
||||
'List.MatchesAll',
|
||||
'List.MatchesAny',
|
||||
'List.Max',
|
||||
'List.MaxN',
|
||||
'List.Median',
|
||||
'List.Min',
|
||||
'List.MinN',
|
||||
'List.Mode',
|
||||
'List.Modes',
|
||||
'List.NonNullCount',
|
||||
'List.Numbers',
|
||||
'List.PositionOf',
|
||||
'List.PositionOfAny',
|
||||
'List.Positions',
|
||||
'List.Product',
|
||||
'List.Random',
|
||||
'List.Range',
|
||||
'List.RemoveFirstN',
|
||||
'List.RemoveItems',
|
||||
'List.RemoveLastN',
|
||||
'List.RemoveMatchingItems',
|
||||
'List.RemoveNulls',
|
||||
'List.RemoveRange',
|
||||
'List.Repeat',
|
||||
'List.ReplaceMatchingItems',
|
||||
'List.ReplaceRange',
|
||||
'List.ReplaceValue',
|
||||
'List.Reverse',
|
||||
'List.Select',
|
||||
'List.Single',
|
||||
'List.SingleOrDefault',
|
||||
'List.Skip',
|
||||
'List.Sort',
|
||||
'List.StandardDeviation',
|
||||
'List.Sum',
|
||||
'List.Times',
|
||||
'List.Transform',
|
||||
'List.TransformMany',
|
||||
'List.Union',
|
||||
'List.Zip',
|
||||
'Logical.From',
|
||||
'Logical.FromText',
|
||||
'Logical.ToText',
|
||||
'MQ.Queue',
|
||||
'MySQL.Database',
|
||||
'Number.Abs',
|
||||
'Number.Acos',
|
||||
'Number.Asin',
|
||||
'Number.Atan',
|
||||
'Number.Atan2',
|
||||
'Number.BitwiseAnd',
|
||||
'Number.BitwiseNot',
|
||||
'Number.BitwiseOr',
|
||||
'Number.BitwiseShiftLeft',
|
||||
'Number.BitwiseShiftRight',
|
||||
'Number.BitwiseXor',
|
||||
'Number.Combinations',
|
||||
'Number.Cos',
|
||||
'Number.Cosh',
|
||||
'Number.Exp',
|
||||
'Number.Factorial',
|
||||
'Number.From',
|
||||
'Number.FromText',
|
||||
'Number.IntegerDivide',
|
||||
'Number.IsEven',
|
||||
'Number.IsNaN',
|
||||
'Number.IsOdd',
|
||||
'Number.Ln',
|
||||
'Number.Log',
|
||||
'Number.Log10',
|
||||
'Number.Mod',
|
||||
'Number.Permutations',
|
||||
'Number.Power',
|
||||
'Number.Random',
|
||||
'Number.RandomBetween',
|
||||
'Number.Round',
|
||||
'Number.RoundAwayFromZero',
|
||||
'Number.RoundDown',
|
||||
'Number.RoundTowardZero',
|
||||
'Number.RoundUp',
|
||||
'Number.Sign',
|
||||
'Number.Sin',
|
||||
'Number.Sinh',
|
||||
'Number.Sqrt',
|
||||
'Number.Tan',
|
||||
'Number.Tanh',
|
||||
'Number.ToText',
|
||||
'OData.Feed',
|
||||
'Odbc.DataSource',
|
||||
'Odbc.Query',
|
||||
'OleDb.DataSource',
|
||||
'OleDb.Query',
|
||||
'Oracle.Database',
|
||||
'Percentage.From',
|
||||
'PostgreSQL.Database',
|
||||
'RData.FromBinary',
|
||||
'Record.AddField',
|
||||
'Record.Combine',
|
||||
'Record.Field',
|
||||
'Record.FieldCount',
|
||||
'Record.FieldNames',
|
||||
'Record.FieldOrDefault',
|
||||
'Record.FieldValues',
|
||||
'Record.FromList',
|
||||
'Record.FromTable',
|
||||
'Record.HasFields',
|
||||
'Record.RemoveFields',
|
||||
'Record.RenameFields',
|
||||
'Record.ReorderFields',
|
||||
'Record.SelectFields',
|
||||
'Record.ToList',
|
||||
'Record.ToTable',
|
||||
'Record.TransformFields',
|
||||
'Replacer.ReplaceText',
|
||||
'Replacer.ReplaceValue',
|
||||
'RowExpression.Column',
|
||||
'RowExpression.From',
|
||||
'Salesforce.Data',
|
||||
'Salesforce.Reports',
|
||||
'SapBusinessWarehouse.Cubes',
|
||||
'SapHana.Database',
|
||||
'SharePoint.Contents',
|
||||
'SharePoint.Files',
|
||||
'SharePoint.Tables',
|
||||
'Single.From',
|
||||
'Soda.Feed',
|
||||
'Splitter.SplitByNothing',
|
||||
'Splitter.SplitTextByAnyDelimiter',
|
||||
'Splitter.SplitTextByDelimiter',
|
||||
'Splitter.SplitTextByEachDelimiter',
|
||||
'Splitter.SplitTextByLengths',
|
||||
'Splitter.SplitTextByPositions',
|
||||
'Splitter.SplitTextByRanges',
|
||||
'Splitter.SplitTextByRepeatedLengths',
|
||||
'Splitter.SplitTextByWhitespace',
|
||||
'Sql.Database',
|
||||
'Sql.Databases',
|
||||
'SqlExpression.SchemaFrom',
|
||||
'SqlExpression.ToExpression',
|
||||
'Sybase.Database',
|
||||
'Table.AddColumn',
|
||||
'Table.AddIndexColumn',
|
||||
'Table.AddJoinColumn',
|
||||
'Table.AddKey',
|
||||
'Table.AggregateTableColumn',
|
||||
'Table.AlternateRows',
|
||||
'Table.Buffer',
|
||||
'Table.Column',
|
||||
'Table.ColumnCount',
|
||||
'Table.ColumnNames',
|
||||
'Table.ColumnsOfType',
|
||||
'Table.Combine',
|
||||
'Table.CombineColumns',
|
||||
'Table.Contains',
|
||||
'Table.ContainsAll',
|
||||
'Table.ContainsAny',
|
||||
'Table.DemoteHeaders',
|
||||
'Table.Distinct',
|
||||
'Table.DuplicateColumn',
|
||||
'Table.ExpandListColumn',
|
||||
'Table.ExpandRecordColumn',
|
||||
'Table.ExpandTableColumn',
|
||||
'Table.FillDown',
|
||||
'Table.FillUp',
|
||||
'Table.FilterWithDataTable',
|
||||
'Table.FindText',
|
||||
'Table.First',
|
||||
'Table.FirstN',
|
||||
'Table.FirstValue',
|
||||
'Table.FromColumns',
|
||||
'Table.FromList',
|
||||
'Table.FromPartitions',
|
||||
'Table.FromRecords',
|
||||
'Table.FromRows',
|
||||
'Table.FromValue',
|
||||
'Table.Group',
|
||||
'Table.HasColumns',
|
||||
'Table.InsertRows',
|
||||
'Table.IsDistinct',
|
||||
'Table.IsEmpty',
|
||||
'Table.Join',
|
||||
'Table.Keys',
|
||||
'Table.Last',
|
||||
'Table.LastN',
|
||||
'Table.MatchesAllRows',
|
||||
'Table.MatchesAnyRows',
|
||||
'Table.Max',
|
||||
'Table.MaxN',
|
||||
'Table.Min',
|
||||
'Table.MinN',
|
||||
'Table.NestedJoin',
|
||||
'Table.Partition',
|
||||
'Table.PartitionValues',
|
||||
'Table.Pivot',
|
||||
'Table.PositionOf',
|
||||
'Table.PositionOfAny',
|
||||
'Table.PrefixColumns',
|
||||
'Table.Profile',
|
||||
'Table.PromoteHeaders',
|
||||
'Table.Range',
|
||||
'Table.RemoveColumns',
|
||||
'Table.RemoveFirstN',
|
||||
'Table.RemoveLastN',
|
||||
'Table.RemoveMatchingRows',
|
||||
'Table.RemoveRows',
|
||||
'Table.RemoveRowsWithErrors',
|
||||
'Table.RenameColumns',
|
||||
'Table.ReorderColumns',
|
||||
'Table.Repeat',
|
||||
'Table.ReplaceErrorValues',
|
||||
'Table.ReplaceKeys',
|
||||
'Table.ReplaceMatchingRows',
|
||||
'Table.ReplaceRelationshipIdentity',
|
||||
'Table.ReplaceRows',
|
||||
'Table.ReplaceValue',
|
||||
'Table.ReverseRows',
|
||||
'Table.RowCount',
|
||||
'Table.Schema',
|
||||
'Table.SelectColumns',
|
||||
'Table.SelectRows',
|
||||
'Table.SelectRowsWithErrors',
|
||||
'Table.SingleRow',
|
||||
'Table.Skip',
|
||||
'Table.Sort',
|
||||
'Table.SplitColumn',
|
||||
'Table.ToColumns',
|
||||
'Table.ToList',
|
||||
'Table.ToRecords',
|
||||
'Table.ToRows',
|
||||
'Table.TransformColumnNames',
|
||||
'Table.TransformColumnTypes',
|
||||
'Table.TransformColumns',
|
||||
'Table.TransformRows',
|
||||
'Table.Transpose',
|
||||
'Table.Unpivot',
|
||||
'Table.UnpivotOtherColumns',
|
||||
'Table.View',
|
||||
'Table.ViewFunction',
|
||||
'TableAction.DeleteRows',
|
||||
'TableAction.InsertRows',
|
||||
'TableAction.UpdateRows',
|
||||
'Tables.GetRelationships',
|
||||
'Teradata.Database',
|
||||
'Text.AfterDelimiter',
|
||||
'Text.At',
|
||||
'Text.BeforeDelimiter',
|
||||
'Text.BetweenDelimiters',
|
||||
'Text.Clean',
|
||||
'Text.Combine',
|
||||
'Text.Contains',
|
||||
'Text.End',
|
||||
'Text.EndsWith',
|
||||
'Text.Format',
|
||||
'Text.From',
|
||||
'Text.FromBinary',
|
||||
'Text.Insert',
|
||||
'Text.Length',
|
||||
'Text.Lower',
|
||||
'Text.Middle',
|
||||
'Text.NewGuid',
|
||||
'Text.PadEnd',
|
||||
'Text.PadStart',
|
||||
'Text.PositionOf',
|
||||
'Text.PositionOfAny',
|
||||
'Text.Proper',
|
||||
'Text.Range',
|
||||
'Text.Remove',
|
||||
'Text.RemoveRange',
|
||||
'Text.Repeat',
|
||||
'Text.Replace',
|
||||
'Text.ReplaceRange',
|
||||
'Text.Select',
|
||||
'Text.Split',
|
||||
'Text.SplitAny',
|
||||
'Text.Start',
|
||||
'Text.StartsWith',
|
||||
'Text.ToBinary',
|
||||
'Text.ToList',
|
||||
'Text.Trim',
|
||||
'Text.TrimEnd',
|
||||
'Text.TrimStart',
|
||||
'Text.Upper',
|
||||
'Time.EndOfHour',
|
||||
'Time.From',
|
||||
'Time.FromText',
|
||||
'Time.Hour',
|
||||
'Time.Minute',
|
||||
'Time.Second',
|
||||
'Time.StartOfHour',
|
||||
'Time.ToRecord',
|
||||
'Time.ToText',
|
||||
'Type.AddTableKey',
|
||||
'Type.ClosedRecord',
|
||||
'Type.Facets',
|
||||
'Type.ForFunction',
|
||||
'Type.ForRecord',
|
||||
'Type.FunctionParameters',
|
||||
'Type.FunctionRequiredParameters',
|
||||
'Type.FunctionReturn',
|
||||
'Type.Is',
|
||||
'Type.IsNullable',
|
||||
'Type.IsOpenRecord',
|
||||
'Type.ListItem',
|
||||
'Type.NonNullable',
|
||||
'Type.OpenRecord',
|
||||
'Type.RecordFields',
|
||||
'Type.ReplaceFacets',
|
||||
'Type.ReplaceTableKeys',
|
||||
'Type.TableColumn',
|
||||
'Type.TableKeys',
|
||||
'Type.TableRow',
|
||||
'Type.TableSchema',
|
||||
'Type.Union',
|
||||
'Uri.BuildQueryString',
|
||||
'Uri.Combine',
|
||||
'Uri.EscapeDataString',
|
||||
'Uri.Parts',
|
||||
'Value.Add',
|
||||
'Value.As',
|
||||
'Value.Compare',
|
||||
'Value.Divide',
|
||||
'Value.Equals',
|
||||
'Value.Firewall',
|
||||
'Value.FromText',
|
||||
'Value.Is',
|
||||
'Value.Metadata',
|
||||
'Value.Multiply',
|
||||
'Value.NativeQuery',
|
||||
'Value.NullableEquals',
|
||||
'Value.RemoveMetadata',
|
||||
'Value.ReplaceMetadata',
|
||||
'Value.ReplaceType',
|
||||
'Value.Subtract',
|
||||
'Value.Type',
|
||||
'ValueAction.NativeStatement',
|
||||
'ValueAction.Replace',
|
||||
'Variable.Value',
|
||||
'Web.Contents',
|
||||
'Web.Page',
|
||||
'WebAction.Request',
|
||||
'Xml.Document',
|
||||
'Xml.Tables',
|
||||
],
|
||||
builtinConstants: [
|
||||
'BinaryEncoding.Base64',
|
||||
'BinaryEncoding.Hex',
|
||||
'BinaryOccurrence.Optional',
|
||||
'BinaryOccurrence.Repeating',
|
||||
'BinaryOccurrence.Required',
|
||||
'ByteOrder.BigEndian',
|
||||
'ByteOrder.LittleEndian',
|
||||
'Compression.Deflate',
|
||||
'Compression.GZip',
|
||||
'CsvStyle.QuoteAfterDelimiter',
|
||||
'CsvStyle.QuoteAlways',
|
||||
'Culture.Current',
|
||||
'Day.Friday',
|
||||
'Day.Monday',
|
||||
'Day.Saturday',
|
||||
'Day.Sunday',
|
||||
'Day.Thursday',
|
||||
'Day.Tuesday',
|
||||
'Day.Wednesday',
|
||||
'ExtraValues.Error',
|
||||
'ExtraValues.Ignore',
|
||||
'ExtraValues.List',
|
||||
'GroupKind.Global',
|
||||
'GroupKind.Local',
|
||||
'JoinAlgorithm.Dynamic',
|
||||
'JoinAlgorithm.LeftHash',
|
||||
'JoinAlgorithm.LeftIndex',
|
||||
'JoinAlgorithm.PairwiseHash',
|
||||
'JoinAlgorithm.RightHash',
|
||||
'JoinAlgorithm.RightIndex',
|
||||
'JoinAlgorithm.SortMerge',
|
||||
'JoinKind.FullOuter',
|
||||
'JoinKind.Inner',
|
||||
'JoinKind.LeftAnti',
|
||||
'JoinKind.LeftOuter',
|
||||
'JoinKind.RightAnti',
|
||||
'JoinKind.RightOuter',
|
||||
'JoinSide.Left',
|
||||
'JoinSide.Right',
|
||||
'MissingField.Error',
|
||||
'MissingField.Ignore',
|
||||
'MissingField.UseNull',
|
||||
'Number.E',
|
||||
'Number.Epsilon',
|
||||
'Number.NaN',
|
||||
'Number.NegativeInfinity',
|
||||
'Number.PI',
|
||||
'Number.PositiveInfinity',
|
||||
'Occurrence.All',
|
||||
'Occurrence.First',
|
||||
'Occurrence.Last',
|
||||
'Occurrence.Optional',
|
||||
'Occurrence.Repeating',
|
||||
'Occurrence.Required',
|
||||
'Order.Ascending',
|
||||
'Order.Descending',
|
||||
'Precision.Decimal',
|
||||
'Precision.Double',
|
||||
'QuoteStyle.Csv',
|
||||
'QuoteStyle.None',
|
||||
'RelativePosition.FromEnd',
|
||||
'RelativePosition.FromStart',
|
||||
'RoundingMode.AwayFromZero',
|
||||
'RoundingMode.Down',
|
||||
'RoundingMode.ToEven',
|
||||
'RoundingMode.TowardZero',
|
||||
'RoundingMode.Up',
|
||||
'SapHanaDistribution.All',
|
||||
'SapHanaDistribution.Connection',
|
||||
'SapHanaDistribution.Off',
|
||||
'SapHanaDistribution.Statement',
|
||||
'SapHanaRangeOperator.Equals',
|
||||
'SapHanaRangeOperator.GreaterThan',
|
||||
'SapHanaRangeOperator.GreaterThanOrEquals',
|
||||
'SapHanaRangeOperator.LessThan',
|
||||
'SapHanaRangeOperator.LessThanOrEquals',
|
||||
'SapHanaRangeOperator.NotEquals',
|
||||
'TextEncoding.Ascii',
|
||||
'TextEncoding.BigEndianUnicode',
|
||||
'TextEncoding.Unicode',
|
||||
'TextEncoding.Utf16',
|
||||
'TextEncoding.Utf8',
|
||||
'TextEncoding.Windows',
|
||||
'TraceLevel.Critical',
|
||||
'TraceLevel.Error',
|
||||
'TraceLevel.Information',
|
||||
'TraceLevel.Verbose',
|
||||
'TraceLevel.Warning',
|
||||
'WebMethod.Delete',
|
||||
'WebMethod.Get',
|
||||
'WebMethod.Head',
|
||||
'WebMethod.Patch',
|
||||
'WebMethod.Post',
|
||||
'WebMethod.Put',
|
||||
],
|
||||
builtinTypes: [
|
||||
'Action.Type',
|
||||
'Any.Type',
|
||||
'Binary.Type',
|
||||
'BinaryEncoding.Type',
|
||||
'BinaryOccurrence.Type',
|
||||
'Byte.Type',
|
||||
'ByteOrder.Type',
|
||||
'Character.Type',
|
||||
'Compression.Type',
|
||||
'CsvStyle.Type',
|
||||
'Currency.Type',
|
||||
'Date.Type',
|
||||
'DateTime.Type',
|
||||
'DateTimeZone.Type',
|
||||
'Day.Type',
|
||||
'Decimal.Type',
|
||||
'Double.Type',
|
||||
'Duration.Type',
|
||||
'ExtraValues.Type',
|
||||
'Function.Type',
|
||||
'GroupKind.Type',
|
||||
'Guid.Type',
|
||||
'Int16.Type',
|
||||
'Int32.Type',
|
||||
'Int64.Type',
|
||||
'Int8.Type',
|
||||
'JoinAlgorithm.Type',
|
||||
'JoinKind.Type',
|
||||
'JoinSide.Type',
|
||||
'List.Type',
|
||||
'Logical.Type',
|
||||
'MissingField.Type',
|
||||
'None.Type',
|
||||
'Null.Type',
|
||||
'Number.Type',
|
||||
'Occurrence.Type',
|
||||
'Order.Type',
|
||||
'Password.Type',
|
||||
'Percentage.Type',
|
||||
'Precision.Type',
|
||||
'QuoteStyle.Type',
|
||||
'Record.Type',
|
||||
'RelativePosition.Type',
|
||||
'RoundingMode.Type',
|
||||
'SapHanaDistribution.Type',
|
||||
'SapHanaRangeOperator.Type',
|
||||
'Single.Type',
|
||||
'Table.Type',
|
||||
'Text.Type',
|
||||
'TextEncoding.Type',
|
||||
'Time.Type',
|
||||
'TraceLevel.Type',
|
||||
'Type.Type',
|
||||
'Uri.Type',
|
||||
'WebMethod.Type',
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/#"[\w \.]+"/, 'identifier.quote'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/\d+([eE][\-+]?\d+)?/, 'number'],
|
||||
[
|
||||
/(#?[a-z]+)\b/,
|
||||
{
|
||||
cases: {
|
||||
'@typeKeywords': 'type',
|
||||
'@keywords': 'keyword',
|
||||
'@constants': 'constant',
|
||||
'@constructors': 'constructor',
|
||||
'@operatorKeywords': 'operators',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,
|
||||
{
|
||||
cases: { '@builtinTypes': 'type', '@default': 'identifier' },
|
||||
},
|
||||
],
|
||||
[
|
||||
/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,
|
||||
{
|
||||
cases: {
|
||||
'@builtinFunctions': 'keyword.function',
|
||||
'@builtinConstants': 'constant',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\b([a-zA-Z_][\w\.]*)\b/, 'identifier'],
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comments' },
|
||||
{ include: '@strings' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[
|
||||
/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,
|
||||
'operators',
|
||||
],
|
||||
[/[,;]/, 'delimiter'],
|
||||
],
|
||||
whitespace: [[/\s+/, 'white']],
|
||||
comments: [
|
||||
['\\/\\*', 'comment', '@comment'],
|
||||
['\\/\\/+.*', 'comment'],
|
||||
],
|
||||
comment: [
|
||||
['\\*\\/', 'comment', '@pop'],
|
||||
['.', 'comment'],
|
||||
],
|
||||
strings: [['"', 'string', '@string']],
|
||||
string: [
|
||||
['""', 'string.escape'],
|
||||
['"', 'string', '@pop'],
|
||||
['.', 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,96 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4902],
|
||||
{
|
||||
4902: (e, t, a) => {
|
||||
'use strict';
|
||||
a.r(t), a.d(t, { conf: () => n, language: () => i });
|
||||
var n = {
|
||||
comments: { blockComment: ['\x3c!--', '--\x3e'] },
|
||||
brackets: [['<', '>']],
|
||||
autoClosingPairs: [
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.xml',
|
||||
ignoreCase: !0,
|
||||
qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/[^<&]+/, ''],
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/(<)(@qualifiedName)/,
|
||||
[{ token: 'delimiter' }, { token: 'tag', next: '@tag' }],
|
||||
],
|
||||
[
|
||||
/(<\/)(@qualifiedName)(\s*)(>)/,
|
||||
[
|
||||
{ token: 'delimiter' },
|
||||
{ token: 'tag' },
|
||||
'',
|
||||
{ token: 'delimiter' },
|
||||
],
|
||||
],
|
||||
[
|
||||
/(<\?)(@qualifiedName)/,
|
||||
[{ token: 'delimiter' }, { token: 'metatag', next: '@tag' }],
|
||||
],
|
||||
[
|
||||
/(<\!)(@qualifiedName)/,
|
||||
[{ token: 'delimiter' }, { token: 'metatag', next: '@tag' }],
|
||||
],
|
||||
[/<\!\[CDATA\[/, { token: 'delimiter.cdata', next: '@cdata' }],
|
||||
[/&\w+;/, 'string.escape'],
|
||||
],
|
||||
cdata: [
|
||||
[/[^\]]+/, ''],
|
||||
[/\]\]>/, { token: 'delimiter.cdata', next: '@pop' }],
|
||||
[/\]/, ''],
|
||||
],
|
||||
tag: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[
|
||||
/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,
|
||||
['attribute.name', '', 'attribute.value'],
|
||||
],
|
||||
[
|
||||
/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
|
||||
['attribute.name', '', 'attribute.value'],
|
||||
],
|
||||
[
|
||||
/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,
|
||||
['attribute.name', '', 'attribute.value'],
|
||||
],
|
||||
[/@qualifiedName/, 'attribute.name'],
|
||||
[/\?>/, { token: 'delimiter', next: '@pop' }],
|
||||
[
|
||||
/(\/)(>)/,
|
||||
[{ token: 'tag' }, { token: 'delimiter', next: '@pop' }],
|
||||
],
|
||||
[/>/, { token: 'delimiter', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/<!--/, { token: 'comment', next: '@comment' }],
|
||||
],
|
||||
comment: [
|
||||
[/[^<\-]+/, 'comment.content'],
|
||||
[/-->/, { token: 'comment', next: '@pop' }],
|
||||
[/<!--/, 'comment.content.invalid'],
|
||||
[/[<\-]/, 'comment.content'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,167 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4912],
|
||||
{
|
||||
64912: (e, t, i) => {
|
||||
'use strict';
|
||||
i.r(t), i.d(t, { conf: () => o, language: () => n });
|
||||
var o = {
|
||||
comments: { lineComment: 'COMMENT' },
|
||||
brackets: [['(', ')']],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: ':', close: '.' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '`', close: '`' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: ':', close: '.' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*(::\\s*|COMMENT\\s+)#region'),
|
||||
end: new RegExp('^\\s*(::\\s*|COMMENT\\s+)#endregion'),
|
||||
},
|
||||
},
|
||||
},
|
||||
n = {
|
||||
tokenPostfix: '.lexon',
|
||||
ignoreCase: !0,
|
||||
keywords: [
|
||||
'lexon',
|
||||
'lex',
|
||||
'clause',
|
||||
'terms',
|
||||
'contracts',
|
||||
'may',
|
||||
'pay',
|
||||
'pays',
|
||||
'appoints',
|
||||
'into',
|
||||
'to',
|
||||
],
|
||||
typeKeywords: [
|
||||
'amount',
|
||||
'person',
|
||||
'key',
|
||||
'time',
|
||||
'date',
|
||||
'asset',
|
||||
'text',
|
||||
],
|
||||
operators: [
|
||||
'less',
|
||||
'greater',
|
||||
'equal',
|
||||
'le',
|
||||
'gt',
|
||||
'or',
|
||||
'and',
|
||||
'add',
|
||||
'added',
|
||||
'subtract',
|
||||
'subtracted',
|
||||
'multiply',
|
||||
'multiplied',
|
||||
'times',
|
||||
'divide',
|
||||
'divided',
|
||||
'is',
|
||||
'be',
|
||||
'certified',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/^(\s*)(comment:?(?:\s.*|))$/, ['', 'comment']],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
token: 'identifier.quote',
|
||||
bracket: '@open',
|
||||
next: '@quoted_identifier',
|
||||
},
|
||||
],
|
||||
[
|
||||
'LEX$',
|
||||
{
|
||||
token: 'keyword',
|
||||
bracket: '@open',
|
||||
next: '@identifier_until_period',
|
||||
},
|
||||
],
|
||||
[
|
||||
'LEXON',
|
||||
{ token: 'keyword', bracket: '@open', next: '@semver' },
|
||||
],
|
||||
[
|
||||
':',
|
||||
{
|
||||
token: 'delimiter',
|
||||
bracket: '@open',
|
||||
next: '@identifier_until_period',
|
||||
},
|
||||
],
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operator',
|
||||
'@typeKeywords': 'keyword.type',
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d*\.\d*\.\d*/, 'number.semver'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
],
|
||||
quoted_identifier: [
|
||||
[/[^\\"]+/, 'identifier'],
|
||||
[
|
||||
/"/,
|
||||
{ token: 'identifier.quote', bracket: '@close', next: '@pop' },
|
||||
],
|
||||
],
|
||||
space_identifier_until_period: [
|
||||
[':', 'delimiter'],
|
||||
[' ', { token: 'white', next: '@identifier_rest' }],
|
||||
],
|
||||
identifier_until_period: [
|
||||
{ include: '@whitespace' },
|
||||
[':', { token: 'delimiter', next: '@identifier_rest' }],
|
||||
[/[^\\.]+/, 'identifier'],
|
||||
[/\./, { token: 'delimiter', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
identifier_rest: [
|
||||
[/[^\\.]+/, 'identifier'],
|
||||
[/\./, { token: 'delimiter', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
semver: [
|
||||
{ include: '@whitespace' },
|
||||
[':', 'delimiter'],
|
||||
[
|
||||
/\d*\.\d*\.\d*/,
|
||||
{ token: 'number.semver', bracket: '@close', next: '@pop' },
|
||||
],
|
||||
],
|
||||
whitespace: [[/[ \t\r\n]+/, 'white']],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,500 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[4946],
|
||||
{
|
||||
34946: (e, t, r) => {
|
||||
'use strict';
|
||||
r.r(t), r.d(t, { conf: () => n, language: () => o });
|
||||
var n = {
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
o = {
|
||||
tokenPostfix: '.julia',
|
||||
keywords: [
|
||||
'begin',
|
||||
'while',
|
||||
'if',
|
||||
'for',
|
||||
'try',
|
||||
'return',
|
||||
'break',
|
||||
'continue',
|
||||
'function',
|
||||
'macro',
|
||||
'quote',
|
||||
'let',
|
||||
'local',
|
||||
'global',
|
||||
'const',
|
||||
'do',
|
||||
'struct',
|
||||
'module',
|
||||
'baremodule',
|
||||
'using',
|
||||
'import',
|
||||
'export',
|
||||
'end',
|
||||
'else',
|
||||
'elseif',
|
||||
'catch',
|
||||
'finally',
|
||||
'mutable',
|
||||
'primitive',
|
||||
'abstract',
|
||||
'type',
|
||||
'in',
|
||||
'isa',
|
||||
'where',
|
||||
'new',
|
||||
],
|
||||
types: [
|
||||
'LinRange',
|
||||
'LineNumberNode',
|
||||
'LinearIndices',
|
||||
'LoadError',
|
||||
'MIME',
|
||||
'Matrix',
|
||||
'Method',
|
||||
'MethodError',
|
||||
'Missing',
|
||||
'MissingException',
|
||||
'Module',
|
||||
'NTuple',
|
||||
'NamedTuple',
|
||||
'Nothing',
|
||||
'Number',
|
||||
'OrdinalRange',
|
||||
'OutOfMemoryError',
|
||||
'OverflowError',
|
||||
'Pair',
|
||||
'PartialQuickSort',
|
||||
'PermutedDimsArray',
|
||||
'Pipe',
|
||||
'Ptr',
|
||||
'QuoteNode',
|
||||
'Rational',
|
||||
'RawFD',
|
||||
'ReadOnlyMemoryError',
|
||||
'Real',
|
||||
'ReentrantLock',
|
||||
'Ref',
|
||||
'Regex',
|
||||
'RegexMatch',
|
||||
'RoundingMode',
|
||||
'SegmentationFault',
|
||||
'Set',
|
||||
'Signed',
|
||||
'Some',
|
||||
'StackOverflowError',
|
||||
'StepRange',
|
||||
'StepRangeLen',
|
||||
'StridedArray',
|
||||
'StridedMatrix',
|
||||
'StridedVecOrMat',
|
||||
'StridedVector',
|
||||
'String',
|
||||
'StringIndexError',
|
||||
'SubArray',
|
||||
'SubString',
|
||||
'SubstitutionString',
|
||||
'Symbol',
|
||||
'SystemError',
|
||||
'Task',
|
||||
'Text',
|
||||
'TextDisplay',
|
||||
'Timer',
|
||||
'Tuple',
|
||||
'Type',
|
||||
'TypeError',
|
||||
'TypeVar',
|
||||
'UInt',
|
||||
'UInt128',
|
||||
'UInt16',
|
||||
'UInt32',
|
||||
'UInt64',
|
||||
'UInt8',
|
||||
'UndefInitializer',
|
||||
'AbstractArray',
|
||||
'UndefKeywordError',
|
||||
'AbstractChannel',
|
||||
'UndefRefError',
|
||||
'AbstractChar',
|
||||
'UndefVarError',
|
||||
'AbstractDict',
|
||||
'Union',
|
||||
'AbstractDisplay',
|
||||
'UnionAll',
|
||||
'AbstractFloat',
|
||||
'UnitRange',
|
||||
'AbstractIrrational',
|
||||
'Unsigned',
|
||||
'AbstractMatrix',
|
||||
'AbstractRange',
|
||||
'Val',
|
||||
'AbstractSet',
|
||||
'Vararg',
|
||||
'AbstractString',
|
||||
'VecElement',
|
||||
'AbstractUnitRange',
|
||||
'VecOrMat',
|
||||
'AbstractVecOrMat',
|
||||
'Vector',
|
||||
'AbstractVector',
|
||||
'VersionNumber',
|
||||
'Any',
|
||||
'WeakKeyDict',
|
||||
'ArgumentError',
|
||||
'WeakRef',
|
||||
'Array',
|
||||
'AssertionError',
|
||||
'BigFloat',
|
||||
'BigInt',
|
||||
'BitArray',
|
||||
'BitMatrix',
|
||||
'BitSet',
|
||||
'BitVector',
|
||||
'Bool',
|
||||
'BoundsError',
|
||||
'CapturedException',
|
||||
'CartesianIndex',
|
||||
'CartesianIndices',
|
||||
'Cchar',
|
||||
'Cdouble',
|
||||
'Cfloat',
|
||||
'Channel',
|
||||
'Char',
|
||||
'Cint',
|
||||
'Cintmax_t',
|
||||
'Clong',
|
||||
'Clonglong',
|
||||
'Cmd',
|
||||
'Colon',
|
||||
'Complex',
|
||||
'ComplexF16',
|
||||
'ComplexF32',
|
||||
'ComplexF64',
|
||||
'CompositeException',
|
||||
'Condition',
|
||||
'Cptrdiff_t',
|
||||
'Cshort',
|
||||
'Csize_t',
|
||||
'Cssize_t',
|
||||
'Cstring',
|
||||
'Cuchar',
|
||||
'Cuint',
|
||||
'Cuintmax_t',
|
||||
'Culong',
|
||||
'Culonglong',
|
||||
'Cushort',
|
||||
'Cvoid',
|
||||
'Cwchar_t',
|
||||
'Cwstring',
|
||||
'DataType',
|
||||
'DenseArray',
|
||||
'DenseMatrix',
|
||||
'DenseVecOrMat',
|
||||
'DenseVector',
|
||||
'Dict',
|
||||
'DimensionMismatch',
|
||||
'Dims',
|
||||
'DivideError',
|
||||
'DomainError',
|
||||
'EOFError',
|
||||
'Enum',
|
||||
'ErrorException',
|
||||
'Exception',
|
||||
'ExponentialBackOff',
|
||||
'Expr',
|
||||
'Float16',
|
||||
'Float32',
|
||||
'Float64',
|
||||
'Function',
|
||||
'GlobalRef',
|
||||
'HTML',
|
||||
'IO',
|
||||
'IOBuffer',
|
||||
'IOContext',
|
||||
'IOStream',
|
||||
'IdDict',
|
||||
'IndexCartesian',
|
||||
'IndexLinear',
|
||||
'IndexStyle',
|
||||
'InexactError',
|
||||
'InitError',
|
||||
'Int',
|
||||
'Int128',
|
||||
'Int16',
|
||||
'Int32',
|
||||
'Int64',
|
||||
'Int8',
|
||||
'Integer',
|
||||
'InterruptException',
|
||||
'InvalidStateException',
|
||||
'Irrational',
|
||||
'KeyError',
|
||||
],
|
||||
keywordops: ['<:', '>:', ':', '=>', '...', '.', '->', '?'],
|
||||
allops: /[^\w\d\s()\[\]{}"'#]+/,
|
||||
constants: [
|
||||
'true',
|
||||
'false',
|
||||
'nothing',
|
||||
'missing',
|
||||
'undef',
|
||||
'Inf',
|
||||
'pi',
|
||||
'NaN',
|
||||
'π',
|
||||
'ℯ',
|
||||
'ans',
|
||||
'PROGRAM_FILE',
|
||||
'ARGS',
|
||||
'C_NULL',
|
||||
'VERSION',
|
||||
'DEPOT_PATH',
|
||||
'LOAD_PATH',
|
||||
],
|
||||
operators: [
|
||||
'!',
|
||||
'!=',
|
||||
'!==',
|
||||
'%',
|
||||
'&',
|
||||
'*',
|
||||
'+',
|
||||
'-',
|
||||
'/',
|
||||
'//',
|
||||
'<',
|
||||
'<<',
|
||||
'<=',
|
||||
'==',
|
||||
'===',
|
||||
'=>',
|
||||
'>',
|
||||
'>=',
|
||||
'>>',
|
||||
'>>>',
|
||||
'\\',
|
||||
'^',
|
||||
'|',
|
||||
'|>',
|
||||
'~',
|
||||
'÷',
|
||||
'∈',
|
||||
'∉',
|
||||
'∋',
|
||||
'∌',
|
||||
'∘',
|
||||
'√',
|
||||
'∛',
|
||||
'∩',
|
||||
'∪',
|
||||
'≈',
|
||||
'≉',
|
||||
'≠',
|
||||
'≡',
|
||||
'≢',
|
||||
'≤',
|
||||
'≥',
|
||||
'⊆',
|
||||
'⊇',
|
||||
'⊈',
|
||||
'⊉',
|
||||
'⊊',
|
||||
'⊋',
|
||||
'⊻',
|
||||
],
|
||||
brackets: [
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
],
|
||||
ident: /π|ℯ|\b(?!\d)\w+\b/,
|
||||
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
||||
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/(::)\s*|\b(isa)\s+/, 'keyword', '@typeanno'],
|
||||
[
|
||||
/\b(isa)(\s*\(@ident\s*,\s*)/,
|
||||
['keyword', { token: '', next: '@typeanno' }],
|
||||
],
|
||||
[/\b(type|struct)[ \t]+/, 'keyword', '@typeanno'],
|
||||
[/^\s*:@ident[!?]?/, 'metatag'],
|
||||
[/(return)(\s*:@ident[!?]?)/, ['keyword', 'metatag']],
|
||||
[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ['', 'metatag']],
|
||||
[/:\(/, 'metatag', '@quote'],
|
||||
[/r"""/, 'regexp.delim', '@tregexp'],
|
||||
[/r"/, 'regexp.delim', '@sregexp'],
|
||||
[/raw"""/, 'string.delim', '@rtstring'],
|
||||
[/[bv]?"""/, 'string.delim', '@dtstring'],
|
||||
[/raw"/, 'string.delim', '@rsstring'],
|
||||
[/[bv]?"/, 'string.delim', '@dsstring'],
|
||||
[
|
||||
/(@ident)\{/,
|
||||
{
|
||||
cases: {
|
||||
'$1@types': { token: 'type', next: '@gen' },
|
||||
'@default': { token: 'type', next: '@gen' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/@ident[!?'']?(?=\.?\()/,
|
||||
{
|
||||
cases: {
|
||||
'@types': 'type',
|
||||
'@keywords': 'keyword',
|
||||
'@constants': 'variable',
|
||||
'@default': 'keyword.flow',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/@ident[!?']?/,
|
||||
{
|
||||
cases: {
|
||||
'@types': 'type',
|
||||
'@keywords': 'keyword',
|
||||
'@constants': 'variable',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\$\w+/, 'key'],
|
||||
[/\$\(/, 'key', '@paste'],
|
||||
[/@@ident/, 'annotation'],
|
||||
{ include: '@whitespace' },
|
||||
[/'(?:@escapes|.)'/, 'string.character'],
|
||||
[/[()\[\]{}]/, '@brackets'],
|
||||
[
|
||||
/@allops/,
|
||||
{
|
||||
cases: { '@keywordops': 'keyword', '@operators': 'operator' },
|
||||
},
|
||||
],
|
||||
[/[;,]/, 'delimiter'],
|
||||
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, 'number.hex'],
|
||||
[/0[_oO][0-7](_?[0-7])*/, 'number.octal'],
|
||||
[/0[bB][01](_?[01])*/, 'number.binary'],
|
||||
[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, 'number'],
|
||||
],
|
||||
typeanno: [
|
||||
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, 'type', '@gen'],
|
||||
[
|
||||
/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,
|
||||
['type', 'keyword'],
|
||||
],
|
||||
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, 'type', '@pop'],
|
||||
['', '', '@pop'],
|
||||
],
|
||||
gen: [
|
||||
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, 'type', '@push'],
|
||||
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, 'type'],
|
||||
[/<:/, 'keyword'],
|
||||
[/(\})(\s*<:\s*)/, ['type', { token: 'keyword', next: '@pop' }]],
|
||||
[/\}/, 'type', '@pop'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
quote: [
|
||||
[/\$\(/, 'key', '@paste'],
|
||||
[/\(/, '@brackets', '@paren'],
|
||||
[/\)/, 'metatag', '@pop'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
paste: [
|
||||
[/:\(/, 'metatag', '@quote'],
|
||||
[/\(/, '@brackets', '@paren'],
|
||||
[/\)/, 'key', '@pop'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
paren: [
|
||||
[/\$\(/, 'key', '@paste'],
|
||||
[/:\(/, 'metatag', '@quote'],
|
||||
[/\(/, '@brackets', '@push'],
|
||||
[/\)/, '@brackets', '@pop'],
|
||||
{ include: '@root' },
|
||||
],
|
||||
sregexp: [
|
||||
[/^.*/, 'invalid'],
|
||||
[/[^\\"()\[\]{}]/, 'regexp'],
|
||||
[/[()\[\]{}]/, '@brackets'],
|
||||
[/\\./, 'operator.scss'],
|
||||
[/"[imsx]*/, 'regexp.delim', '@pop'],
|
||||
],
|
||||
tregexp: [
|
||||
[/[^\\"()\[\]{}]/, 'regexp'],
|
||||
[/[()\[\]{}]/, '@brackets'],
|
||||
[/\\./, 'operator.scss'],
|
||||
[/"(?!"")/, 'string'],
|
||||
[/"""[imsx]*/, 'regexp.delim', '@pop'],
|
||||
],
|
||||
rsstring: [
|
||||
[/^.*/, 'invalid'],
|
||||
[/[^\\"]/, 'string'],
|
||||
[/\\./, 'string.escape'],
|
||||
[/"/, 'string.delim', '@pop'],
|
||||
],
|
||||
rtstring: [
|
||||
[/[^\\"]/, 'string'],
|
||||
[/\\./, 'string.escape'],
|
||||
[/"(?!"")/, 'string'],
|
||||
[/"""/, 'string.delim', '@pop'],
|
||||
],
|
||||
dsstring: [
|
||||
[/^.*/, 'invalid'],
|
||||
[/[^\\"\$]/, 'string'],
|
||||
[/\$/, '', '@interpolated'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string.delim', '@pop'],
|
||||
],
|
||||
dtstring: [
|
||||
[/[^\\"\$]/, 'string'],
|
||||
[/\$/, '', '@interpolated'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"(?!"")/, 'string'],
|
||||
[/"""/, 'string.delim', '@pop'],
|
||||
],
|
||||
interpolated: [
|
||||
[/\(/, { token: '', switchTo: '@interpolated_compound' }],
|
||||
[/[a-zA-Z_]\w*/, 'identifier'],
|
||||
['', '', '@pop'],
|
||||
],
|
||||
interpolated_compound: [[/\)/, '', '@pop'], { include: '@root' }],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/#=/, 'comment', '@multi_comment'],
|
||||
[/#.*$/, 'comment'],
|
||||
],
|
||||
multi_comment: [
|
||||
[/#=/, 'comment', '@push'],
|
||||
[/=#/, 'comment', '@pop'],
|
||||
[/=(?!#)|#(?!=)/, 'comment'],
|
||||
[/[^#=]+/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,114 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[5062],
|
||||
{
|
||||
78: (e, o, n) => {
|
||||
'use strict';
|
||||
n.r(o), n.d(o, { conf: () => t, language: () => r });
|
||||
var t = {
|
||||
comments: { lineComment: "'" },
|
||||
brackets: [
|
||||
['(', ')'],
|
||||
['[', ']'],
|
||||
['If', 'EndIf'],
|
||||
['While', 'EndWhile'],
|
||||
['For', 'EndFor'],
|
||||
['Sub', 'EndSub'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
],
|
||||
},
|
||||
r = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.sb',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ token: 'delimiter.array', open: '[', close: ']' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'keyword.tag-if', open: 'If', close: 'EndIf' },
|
||||
{ token: 'keyword.tag-while', open: 'While', close: 'EndWhile' },
|
||||
{ token: 'keyword.tag-for', open: 'For', close: 'EndFor' },
|
||||
{ token: 'keyword.tag-sub', open: 'Sub', close: 'EndSub' },
|
||||
],
|
||||
keywords: [
|
||||
'Else',
|
||||
'ElseIf',
|
||||
'EndFor',
|
||||
'EndIf',
|
||||
'EndSub',
|
||||
'EndWhile',
|
||||
'For',
|
||||
'Goto',
|
||||
'If',
|
||||
'Step',
|
||||
'Sub',
|
||||
'Then',
|
||||
'To',
|
||||
'While',
|
||||
],
|
||||
tagwords: ['If', 'Sub', 'While', 'For'],
|
||||
operators: [
|
||||
'>',
|
||||
'<',
|
||||
'<>',
|
||||
'<=',
|
||||
'>=',
|
||||
'And',
|
||||
'Or',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'=',
|
||||
],
|
||||
identifier: /[a-zA-Z_][\w]*/,
|
||||
symbols: /[=><:+\-*\/%\.,]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
[/(@identifier)(?=[.])/, 'type'],
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@operators': 'operator',
|
||||
'@default': 'variable.name',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/([.])(@identifier)/,
|
||||
{ cases: { $2: ['delimiter', 'type.member'], '@default': '' } },
|
||||
],
|
||||
[/\d*\.\d+/, 'number.float'],
|
||||
[/\d+/, 'number'],
|
||||
[/[()\[\]]/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: { '@operators': 'operator', '@default': 'delimiter' },
|
||||
},
|
||||
],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/(\').*$/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"C?/, 'string', '@pop'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-293
@@ -1,293 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[525],
|
||||
{
|
||||
90525: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => i });
|
||||
var o = {
|
||||
wordPattern: /(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,
|
||||
comments: { blockComment: ['/*', '*/'], lineComment: '//' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/'),
|
||||
end: new RegExp('^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/'),
|
||||
},
|
||||
},
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.scss',
|
||||
ws: '[ \t\n\r\f]*',
|
||||
identifier:
|
||||
'-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*',
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.bracket' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
tokenizer: {
|
||||
root: [{ include: '@selector' }],
|
||||
selector: [
|
||||
{ include: '@comments' },
|
||||
{ include: '@import' },
|
||||
{ include: '@variabledeclaration' },
|
||||
{ include: '@warndebug' },
|
||||
[
|
||||
'[@](include)',
|
||||
{ token: 'keyword', next: '@includedeclaration' },
|
||||
],
|
||||
[
|
||||
'[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)',
|
||||
{ token: 'keyword', next: '@keyframedeclaration' },
|
||||
],
|
||||
[
|
||||
'[@](page|content|font-face|-moz-document)',
|
||||
{ token: 'keyword' },
|
||||
],
|
||||
[
|
||||
'[@](charset|namespace)',
|
||||
{ token: 'keyword', next: '@declarationbody' },
|
||||
],
|
||||
[
|
||||
'[@](function)',
|
||||
{ token: 'keyword', next: '@functiondeclaration' },
|
||||
],
|
||||
['[@](mixin)', { token: 'keyword', next: '@mixindeclaration' }],
|
||||
[
|
||||
'url(\\-prefix)?\\(',
|
||||
{ token: 'meta', next: '@urldeclaration' },
|
||||
],
|
||||
{ include: '@controlstatement' },
|
||||
{ include: '@selectorname' },
|
||||
['[&\\*]', 'tag'],
|
||||
['[>\\+,]', 'delimiter'],
|
||||
[
|
||||
'\\[',
|
||||
{ token: 'delimiter.bracket', next: '@selectorattribute' },
|
||||
],
|
||||
['{', { token: 'delimiter.curly', next: '@selectorbody' }],
|
||||
],
|
||||
selectorbody: [
|
||||
[
|
||||
'[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))',
|
||||
'attribute.name',
|
||||
'@rulevalue',
|
||||
],
|
||||
{ include: '@selector' },
|
||||
['[@](extend)', { token: 'keyword', next: '@extendbody' }],
|
||||
['[@](return)', { token: 'keyword', next: '@declarationbody' }],
|
||||
['}', { token: 'delimiter.curly', next: '@pop' }],
|
||||
],
|
||||
selectorname: [
|
||||
['#{', { token: 'meta', next: '@variableinterpolation' }],
|
||||
['(\\.|#(?=[^{])|%|(@identifier)|:)+', 'tag'],
|
||||
],
|
||||
selectorattribute: [
|
||||
{ include: '@term' },
|
||||
[']', { token: 'delimiter.bracket', next: '@pop' }],
|
||||
],
|
||||
term: [
|
||||
{ include: '@comments' },
|
||||
[
|
||||
'url(\\-prefix)?\\(',
|
||||
{ token: 'meta', next: '@urldeclaration' },
|
||||
],
|
||||
{ include: '@functioninvocation' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@variablereference' },
|
||||
['(and\\b|or\\b|not\\b)', 'operator'],
|
||||
{ include: '@name' },
|
||||
['([<>=\\+\\-\\*\\/\\^\\|\\~,])', 'operator'],
|
||||
[',', 'delimiter'],
|
||||
['!default', 'literal'],
|
||||
[
|
||||
'\\(',
|
||||
{ token: 'delimiter.parenthesis', next: '@parenthizedterm' },
|
||||
],
|
||||
],
|
||||
rulevalue: [
|
||||
{ include: '@term' },
|
||||
['!important', 'literal'],
|
||||
[';', 'delimiter', '@pop'],
|
||||
['{', { token: 'delimiter.curly', switchTo: '@nestedproperty' }],
|
||||
['(?=})', { token: '', next: '@pop' }],
|
||||
],
|
||||
nestedproperty: [
|
||||
['[*_]?@identifier@ws:', 'attribute.name', '@rulevalue'],
|
||||
{ include: '@comments' },
|
||||
['}', { token: 'delimiter.curly', next: '@pop' }],
|
||||
],
|
||||
warndebug: [
|
||||
[
|
||||
'[@](warn|debug)',
|
||||
{ token: 'keyword', next: '@declarationbody' },
|
||||
],
|
||||
],
|
||||
import: [
|
||||
['[@](import)', { token: 'keyword', next: '@declarationbody' }],
|
||||
],
|
||||
variabledeclaration: [
|
||||
['\\$@identifier@ws:', 'variable.decl', '@declarationbody'],
|
||||
],
|
||||
urldeclaration: [
|
||||
{ include: '@strings' },
|
||||
['[^)\r\n]+', 'string'],
|
||||
['\\)', { token: 'meta', next: '@pop' }],
|
||||
],
|
||||
parenthizedterm: [
|
||||
{ include: '@term' },
|
||||
['\\)', { token: 'delimiter.parenthesis', next: '@pop' }],
|
||||
],
|
||||
declarationbody: [
|
||||
{ include: '@term' },
|
||||
[';', 'delimiter', '@pop'],
|
||||
['(?=})', { token: '', next: '@pop' }],
|
||||
],
|
||||
extendbody: [
|
||||
{ include: '@selectorname' },
|
||||
['!optional', 'literal'],
|
||||
[';', 'delimiter', '@pop'],
|
||||
['(?=})', { token: '', next: '@pop' }],
|
||||
],
|
||||
variablereference: [
|
||||
['\\$@identifier', 'variable.ref'],
|
||||
['\\.\\.\\.', 'operator'],
|
||||
['#{', { token: 'meta', next: '@variableinterpolation' }],
|
||||
],
|
||||
variableinterpolation: [
|
||||
{ include: '@variablereference' },
|
||||
['}', { token: 'meta', next: '@pop' }],
|
||||
],
|
||||
comments: [
|
||||
['\\/\\*', 'comment', '@comment'],
|
||||
['\\/\\/+.*', 'comment'],
|
||||
],
|
||||
comment: [
|
||||
['\\*\\/', 'comment', '@pop'],
|
||||
['.', 'comment'],
|
||||
],
|
||||
name: [['@identifier', 'attribute.value']],
|
||||
numbers: [
|
||||
[
|
||||
'(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?',
|
||||
{ token: 'number', next: '@units' },
|
||||
],
|
||||
['#[0-9a-fA-F_]+(?!\\w)', 'number.hex'],
|
||||
],
|
||||
units: [
|
||||
[
|
||||
'(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?',
|
||||
'number',
|
||||
'@pop',
|
||||
],
|
||||
],
|
||||
functiondeclaration: [
|
||||
[
|
||||
'@identifier@ws\\(',
|
||||
{ token: 'meta', next: '@parameterdeclaration' },
|
||||
],
|
||||
['{', { token: 'delimiter.curly', switchTo: '@functionbody' }],
|
||||
],
|
||||
mixindeclaration: [
|
||||
[
|
||||
'@identifier@ws\\(',
|
||||
{ token: 'meta', next: '@parameterdeclaration' },
|
||||
],
|
||||
['@identifier', 'meta'],
|
||||
['{', { token: 'delimiter.curly', switchTo: '@selectorbody' }],
|
||||
],
|
||||
parameterdeclaration: [
|
||||
['\\$@identifier@ws:', 'variable.decl'],
|
||||
['\\.\\.\\.', 'operator'],
|
||||
[',', 'delimiter'],
|
||||
{ include: '@term' },
|
||||
['\\)', { token: 'meta', next: '@pop' }],
|
||||
],
|
||||
includedeclaration: [
|
||||
{ include: '@functioninvocation' },
|
||||
['@identifier', 'meta'],
|
||||
[';', 'delimiter', '@pop'],
|
||||
['(?=})', { token: '', next: '@pop' }],
|
||||
['{', { token: 'delimiter.curly', switchTo: '@selectorbody' }],
|
||||
],
|
||||
keyframedeclaration: [
|
||||
['@identifier', 'meta'],
|
||||
['{', { token: 'delimiter.curly', switchTo: '@keyframebody' }],
|
||||
],
|
||||
keyframebody: [
|
||||
{ include: '@term' },
|
||||
['{', { token: 'delimiter.curly', next: '@selectorbody' }],
|
||||
['}', { token: 'delimiter.curly', next: '@pop' }],
|
||||
],
|
||||
controlstatement: [
|
||||
[
|
||||
'[@](if|else|for|while|each|media)',
|
||||
{ token: 'keyword.flow', next: '@controlstatementdeclaration' },
|
||||
],
|
||||
],
|
||||
controlstatementdeclaration: [
|
||||
['(in|from|through|if|to)\\b', { token: 'keyword.flow' }],
|
||||
{ include: '@term' },
|
||||
['{', { token: 'delimiter.curly', switchTo: '@selectorbody' }],
|
||||
],
|
||||
functionbody: [
|
||||
['[@](return)', { token: 'keyword' }],
|
||||
{ include: '@variabledeclaration' },
|
||||
{ include: '@term' },
|
||||
{ include: '@controlstatement' },
|
||||
[';', 'delimiter'],
|
||||
['}', { token: 'delimiter.curly', next: '@pop' }],
|
||||
],
|
||||
functioninvocation: [
|
||||
['@identifier\\(', { token: 'meta', next: '@functionarguments' }],
|
||||
],
|
||||
functionarguments: [
|
||||
['\\$@identifier@ws:', 'attribute.name'],
|
||||
['[,]', 'delimiter'],
|
||||
{ include: '@term' },
|
||||
['\\)', { token: 'meta', next: '@pop' }],
|
||||
],
|
||||
strings: [
|
||||
[
|
||||
'~?"',
|
||||
{ token: 'string.delimiter', next: '@stringenddoublequote' },
|
||||
],
|
||||
["~?'", { token: 'string.delimiter', next: '@stringendquote' }],
|
||||
],
|
||||
stringenddoublequote: [
|
||||
['\\\\.', 'string'],
|
||||
['"', { token: 'string.delimiter', next: '@pop' }],
|
||||
['.', 'string'],
|
||||
],
|
||||
stringendquote: [
|
||||
['\\\\.', 'string'],
|
||||
["'", { token: 'string.delimiter', next: '@pop' }],
|
||||
['.', 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-14815
File diff suppressed because one or more lines are too long
@@ -1,177 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[5593],
|
||||
{
|
||||
35593: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => i, language: () => r });
|
||||
var i = {
|
||||
wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,
|
||||
comments: { blockComment: ['/*', '*/'], lineComment: '//' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/'),
|
||||
end: new RegExp('^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/'),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.less',
|
||||
identifier:
|
||||
'-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*',
|
||||
identifierPlus:
|
||||
'-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*',
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.bracket' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@nestedJSBegin' },
|
||||
['[ \\t\\r\\n]+', ''],
|
||||
{ include: '@comments' },
|
||||
{ include: '@keyword' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@numbers' },
|
||||
[
|
||||
'[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))',
|
||||
'attribute.name',
|
||||
'@attribute',
|
||||
],
|
||||
['url(\\-prefix)?\\(', { token: 'tag', next: '@urldeclaration' }],
|
||||
['[{}()\\[\\]]', '@brackets'],
|
||||
['[,:;]', 'delimiter'],
|
||||
['#@identifierPlus', 'tag.id'],
|
||||
['&', 'tag'],
|
||||
['\\.@identifierPlus(?=\\()', 'tag.class', '@attribute'],
|
||||
['\\.@identifierPlus', 'tag.class'],
|
||||
['@identifierPlus', 'tag'],
|
||||
{ include: '@operators' },
|
||||
['@(@identifier(?=[:,\\)]))', 'variable', '@attribute'],
|
||||
['@(@identifier)', 'variable'],
|
||||
['@', 'key', '@atRules'],
|
||||
],
|
||||
nestedJSBegin: [
|
||||
['``', 'delimiter.backtick'],
|
||||
[
|
||||
'`',
|
||||
{
|
||||
token: 'delimiter.backtick',
|
||||
next: '@nestedJSEnd',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
],
|
||||
nestedJSEnd: [
|
||||
[
|
||||
'`',
|
||||
{
|
||||
token: 'delimiter.backtick',
|
||||
next: '@pop',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
],
|
||||
operators: [['[<>=\\+\\-\\*\\/\\^\\|\\~]', 'operator']],
|
||||
keyword: [
|
||||
[
|
||||
'(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b',
|
||||
'keyword',
|
||||
],
|
||||
],
|
||||
urldeclaration: [
|
||||
{ include: '@strings' },
|
||||
['[^)\r\n]+', 'string'],
|
||||
['\\)', { token: 'tag', next: '@pop' }],
|
||||
],
|
||||
attribute: [
|
||||
{ include: '@nestedJSBegin' },
|
||||
{ include: '@comments' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@keyword' },
|
||||
['[a-zA-Z\\-]+(?=\\()', 'attribute.value', '@attribute'],
|
||||
['>', 'operator', '@pop'],
|
||||
['@identifier', 'attribute.value'],
|
||||
{ include: '@operators' },
|
||||
['@(@identifier)', 'variable'],
|
||||
['[)\\}]', '@brackets', '@pop'],
|
||||
['[{}()\\[\\]>]', '@brackets'],
|
||||
['[;]', 'delimiter', '@pop'],
|
||||
['[,=:]', 'delimiter'],
|
||||
['\\s', ''],
|
||||
['.', 'attribute.value'],
|
||||
],
|
||||
comments: [
|
||||
['\\/\\*', 'comment', '@comment'],
|
||||
['\\/\\/+.*', 'comment'],
|
||||
],
|
||||
comment: [
|
||||
['\\*\\/', 'comment', '@pop'],
|
||||
['.', 'comment'],
|
||||
],
|
||||
numbers: [
|
||||
[
|
||||
'(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?',
|
||||
{ token: 'attribute.value.number', next: '@units' },
|
||||
],
|
||||
['#[0-9a-fA-F_]+(?!\\w)', 'attribute.value.hex'],
|
||||
],
|
||||
units: [
|
||||
[
|
||||
'(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?',
|
||||
'attribute.value.unit',
|
||||
'@pop',
|
||||
],
|
||||
],
|
||||
strings: [
|
||||
[
|
||||
'~?"',
|
||||
{ token: 'string.delimiter', next: '@stringsEndDoubleQuote' },
|
||||
],
|
||||
["~?'", { token: 'string.delimiter', next: '@stringsEndQuote' }],
|
||||
],
|
||||
stringsEndDoubleQuote: [
|
||||
['\\\\"', 'string'],
|
||||
['"', { token: 'string.delimiter', next: '@popall' }],
|
||||
['.', 'string'],
|
||||
],
|
||||
stringsEndQuote: [
|
||||
["\\\\'", 'string'],
|
||||
["'", { token: 'string.delimiter', next: '@popall' }],
|
||||
['.', 'string'],
|
||||
],
|
||||
atRules: [
|
||||
{ include: '@comments' },
|
||||
{ include: '@strings' },
|
||||
['[()]', 'delimiter'],
|
||||
['[\\{;]', 'delimiter', '@pop'],
|
||||
['.', 'key'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,430 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[5703],
|
||||
{
|
||||
15703: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => m, language: () => i });
|
||||
var a = n(89587),
|
||||
r = [
|
||||
'area',
|
||||
'base',
|
||||
'br',
|
||||
'col',
|
||||
'embed',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'keygen',
|
||||
'link',
|
||||
'menuitem',
|
||||
'meta',
|
||||
'param',
|
||||
'source',
|
||||
'track',
|
||||
'wbr',
|
||||
],
|
||||
m = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
comments: { blockComment: ['{{!--', '--}}'] },
|
||||
brackets: [
|
||||
['\x3c!--', '--\x3e'],
|
||||
['<', '>'],
|
||||
['{{', '}}'],
|
||||
['{', '}'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'<(?!(?:' +
|
||||
r.join('|') +
|
||||
'))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$',
|
||||
'i'
|
||||
),
|
||||
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||
action: { indentAction: a.Mj.IndentAction.IndentOutdent },
|
||||
},
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'<(?!(?:' +
|
||||
r.join('|') +
|
||||
'))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$',
|
||||
'i'
|
||||
),
|
||||
action: { indentAction: a.Mj.IndentAction.Indent },
|
||||
},
|
||||
],
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/\{\{!--/, 'comment.block.start.handlebars', '@commentBlock'],
|
||||
[/\{\{!/, 'comment.start.handlebars', '@comment'],
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.root',
|
||||
},
|
||||
],
|
||||
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
||||
[/<!--/, 'comment.html', '@commentHtml'],
|
||||
[
|
||||
/(<)(\w+)(\/>)/,
|
||||
['delimiter.html', 'tag.html', 'delimiter.html'],
|
||||
],
|
||||
[
|
||||
/(<)(script)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@script' }],
|
||||
],
|
||||
[
|
||||
/(<)(style)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@style' }],
|
||||
],
|
||||
[
|
||||
/(<)([:\w]+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[
|
||||
/(<\/)(\w+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[/</, 'delimiter.html'],
|
||||
[/\{/, 'delimiter.html'],
|
||||
[/[^<{]+/],
|
||||
],
|
||||
doctype: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.comment',
|
||||
},
|
||||
],
|
||||
[/[^>]+/, 'metatag.content.html'],
|
||||
[/>/, 'metatag.html', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[/\}\}/, 'comment.end.handlebars', '@pop'],
|
||||
[/./, 'comment.content.handlebars'],
|
||||
],
|
||||
commentBlock: [
|
||||
[/--\}\}/, 'comment.block.end.handlebars', '@pop'],
|
||||
[/./, 'comment.content.handlebars'],
|
||||
],
|
||||
commentHtml: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.comment',
|
||||
},
|
||||
],
|
||||
[/-->/, 'comment.html', '@pop'],
|
||||
[/[^-]+/, 'comment.content.html'],
|
||||
[/./, 'comment.content.html'],
|
||||
],
|
||||
otherTag: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.otherTag',
|
||||
},
|
||||
],
|
||||
[/\/?>/, 'delimiter.html', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
],
|
||||
script: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.script',
|
||||
},
|
||||
],
|
||||
[/type/, 'attribute.name', '@scriptAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(script\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
scriptAfterType: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.scriptAfterType',
|
||||
},
|
||||
],
|
||||
[/=/, 'delimiter', '@scriptAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptAfterTypeEquals: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.scriptAfterTypeEquals',
|
||||
},
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptWithCustomType: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.scriptWithCustomType.$S2',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptEmbedded: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInEmbeddedState.scriptEmbedded.$S2',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[
|
||||
/<\/script/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
],
|
||||
style: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.style',
|
||||
},
|
||||
],
|
||||
[/type/, 'attribute.name', '@styleAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(style\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
styleAfterType: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.styleAfterType',
|
||||
},
|
||||
],
|
||||
[/=/, 'delimiter', '@styleAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleAfterTypeEquals: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.styleAfterTypeEquals',
|
||||
},
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleWithCustomType: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInSimpleState.styleWithCustomType.$S2',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleEmbedded: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@handlebarsInEmbeddedState.styleEmbedded.$S2',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[
|
||||
/<\/style/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
],
|
||||
handlebarsInSimpleState: [
|
||||
[/\{\{\{?/, 'delimiter.handlebars'],
|
||||
[
|
||||
/\}\}\}?/,
|
||||
{ token: 'delimiter.handlebars', switchTo: '@$S2.$S3' },
|
||||
],
|
||||
{ include: 'handlebarsRoot' },
|
||||
],
|
||||
handlebarsInEmbeddedState: [
|
||||
[/\{\{\{?/, 'delimiter.handlebars'],
|
||||
[
|
||||
/\}\}\}?/,
|
||||
{
|
||||
token: 'delimiter.handlebars',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3',
|
||||
},
|
||||
],
|
||||
{ include: 'handlebarsRoot' },
|
||||
],
|
||||
handlebarsRoot: [
|
||||
[/"[^"]*"/, 'string.handlebars'],
|
||||
[/[#/][^\s}]+/, 'keyword.helper.handlebars'],
|
||||
[/else\b/, 'keyword.helper.handlebars'],
|
||||
[/[\s]+/],
|
||||
[/[^}]/, 'variable.parameter.handlebars'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,128 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[5849],
|
||||
{
|
||||
25849: (e, s, o) => {
|
||||
'use strict';
|
||||
o.r(s), o.d(s, { conf: () => n, language: () => l });
|
||||
var n = {
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
l = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.dockerfile',
|
||||
variable: /\${?[\w]+}?/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comment' },
|
||||
[/(ONBUILD)(\s+)/, ['keyword', '']],
|
||||
[
|
||||
/(ENV)(\s+)([\w]+)/,
|
||||
['keyword', '', { token: 'variable', next: '@arguments' }],
|
||||
],
|
||||
[
|
||||
/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
|
||||
{ token: 'keyword', next: '@arguments' },
|
||||
],
|
||||
],
|
||||
arguments: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@strings' },
|
||||
[
|
||||
/(@variable)/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'variable', next: '@popall' },
|
||||
'@default': 'variable',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\\/, { cases: { '@eos': '', '@default': '' } }],
|
||||
[
|
||||
/./,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: '', next: '@popall' },
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
whitespace: [
|
||||
[
|
||||
/\s+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: '', next: '@popall' },
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
comment: [[/(^#.*$)/, 'comment', '@popall']],
|
||||
strings: [
|
||||
[/\\'$/, '', '@popall'],
|
||||
[/\\'/, ''],
|
||||
[/'$/, 'string', '@popall'],
|
||||
[/'/, 'string', '@stringBody'],
|
||||
[/"$/, 'string', '@popall'],
|
||||
[/"/, 'string', '@dblStringBody'],
|
||||
],
|
||||
stringBody: [
|
||||
[
|
||||
/[^\\\$']/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\\./, 'string.escape'],
|
||||
[/'$/, 'string', '@popall'],
|
||||
[/'/, 'string', '@pop'],
|
||||
[/(@variable)/, 'variable'],
|
||||
[/\\$/, 'string'],
|
||||
[/$/, 'string', '@popall'],
|
||||
],
|
||||
dblStringBody: [
|
||||
[
|
||||
/[^\\\$"]/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\\./, 'string.escape'],
|
||||
[/"$/, 'string', '@popall'],
|
||||
[/"/, 'string', '@pop'],
|
||||
[/(@variable)/, 'variable'],
|
||||
[/\\$/, 'string'],
|
||||
[/$/, 'string', '@popall'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,237 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6082],
|
||||
{
|
||||
86082: (e, t, o) => {
|
||||
'use strict';
|
||||
o.r(t), o.d(t, { conf: () => r, language: () => n });
|
||||
var r = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['{', '}'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['<', '>'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),
|
||||
end: new RegExp('^\\s*\\{\\$ENDREGION\\}'),
|
||||
},
|
||||
},
|
||||
},
|
||||
n = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.pascal',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
keywords: [
|
||||
'absolute',
|
||||
'abstract',
|
||||
'all',
|
||||
'and_then',
|
||||
'array',
|
||||
'as',
|
||||
'asm',
|
||||
'attribute',
|
||||
'begin',
|
||||
'bindable',
|
||||
'case',
|
||||
'class',
|
||||
'const',
|
||||
'contains',
|
||||
'default',
|
||||
'div',
|
||||
'else',
|
||||
'end',
|
||||
'except',
|
||||
'exports',
|
||||
'external',
|
||||
'far',
|
||||
'file',
|
||||
'finalization',
|
||||
'finally',
|
||||
'forward',
|
||||
'generic',
|
||||
'goto',
|
||||
'if',
|
||||
'implements',
|
||||
'import',
|
||||
'in',
|
||||
'index',
|
||||
'inherited',
|
||||
'initialization',
|
||||
'interrupt',
|
||||
'is',
|
||||
'label',
|
||||
'library',
|
||||
'mod',
|
||||
'module',
|
||||
'name',
|
||||
'near',
|
||||
'not',
|
||||
'object',
|
||||
'of',
|
||||
'on',
|
||||
'only',
|
||||
'operator',
|
||||
'or_else',
|
||||
'otherwise',
|
||||
'override',
|
||||
'package',
|
||||
'packed',
|
||||
'pow',
|
||||
'private',
|
||||
'program',
|
||||
'protected',
|
||||
'public',
|
||||
'published',
|
||||
'interface',
|
||||
'implementation',
|
||||
'qualified',
|
||||
'read',
|
||||
'record',
|
||||
'resident',
|
||||
'requires',
|
||||
'resourcestring',
|
||||
'restricted',
|
||||
'segment',
|
||||
'set',
|
||||
'shl',
|
||||
'shr',
|
||||
'specialize',
|
||||
'stored',
|
||||
'then',
|
||||
'threadvar',
|
||||
'to',
|
||||
'try',
|
||||
'type',
|
||||
'unit',
|
||||
'uses',
|
||||
'var',
|
||||
'view',
|
||||
'virtual',
|
||||
'dynamic',
|
||||
'overload',
|
||||
'reintroduce',
|
||||
'with',
|
||||
'write',
|
||||
'xor',
|
||||
'true',
|
||||
'false',
|
||||
'procedure',
|
||||
'function',
|
||||
'constructor',
|
||||
'destructor',
|
||||
'property',
|
||||
'break',
|
||||
'continue',
|
||||
'exit',
|
||||
'abort',
|
||||
'while',
|
||||
'do',
|
||||
'for',
|
||||
'raise',
|
||||
'repeat',
|
||||
'until',
|
||||
],
|
||||
typeKeywords: [
|
||||
'boolean',
|
||||
'double',
|
||||
'byte',
|
||||
'integer',
|
||||
'shortint',
|
||||
'char',
|
||||
'longint',
|
||||
'float',
|
||||
'string',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'<=',
|
||||
'>=',
|
||||
'<>',
|
||||
':',
|
||||
':=',
|
||||
'and',
|
||||
'or',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'@',
|
||||
'&',
|
||||
'^',
|
||||
'%',
|
||||
],
|
||||
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_][\w]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\$[0-9a-fA-F]{1,16}/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/'/, 'string.invalid'],
|
||||
[/\#\d+/, 'string'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\*\}]+/, 'comment'],
|
||||
[/\}/, 'comment', '@pop'],
|
||||
[/[\{]/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\{/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,212 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6241],
|
||||
{
|
||||
96241: (e, n, t) => {
|
||||
'use strict';
|
||||
t.r(n), t.d(n, { conf: () => s, language: () => i });
|
||||
var s = {
|
||||
comments: { lineComment: '//', blockComment: ['(*', '*)'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)'
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.fs',
|
||||
keywords: [
|
||||
'abstract',
|
||||
'and',
|
||||
'atomic',
|
||||
'as',
|
||||
'assert',
|
||||
'asr',
|
||||
'base',
|
||||
'begin',
|
||||
'break',
|
||||
'checked',
|
||||
'component',
|
||||
'const',
|
||||
'constraint',
|
||||
'constructor',
|
||||
'continue',
|
||||
'class',
|
||||
'default',
|
||||
'delegate',
|
||||
'do',
|
||||
'done',
|
||||
'downcast',
|
||||
'downto',
|
||||
'elif',
|
||||
'else',
|
||||
'end',
|
||||
'exception',
|
||||
'eager',
|
||||
'event',
|
||||
'external',
|
||||
'extern',
|
||||
'false',
|
||||
'finally',
|
||||
'for',
|
||||
'fun',
|
||||
'function',
|
||||
'fixed',
|
||||
'functor',
|
||||
'global',
|
||||
'if',
|
||||
'in',
|
||||
'include',
|
||||
'inherit',
|
||||
'inline',
|
||||
'interface',
|
||||
'internal',
|
||||
'land',
|
||||
'lor',
|
||||
'lsl',
|
||||
'lsr',
|
||||
'lxor',
|
||||
'lazy',
|
||||
'let',
|
||||
'match',
|
||||
'member',
|
||||
'mod',
|
||||
'module',
|
||||
'mutable',
|
||||
'namespace',
|
||||
'method',
|
||||
'mixin',
|
||||
'new',
|
||||
'not',
|
||||
'null',
|
||||
'of',
|
||||
'open',
|
||||
'or',
|
||||
'object',
|
||||
'override',
|
||||
'private',
|
||||
'parallel',
|
||||
'process',
|
||||
'protected',
|
||||
'pure',
|
||||
'public',
|
||||
'rec',
|
||||
'return',
|
||||
'static',
|
||||
'sealed',
|
||||
'struct',
|
||||
'sig',
|
||||
'then',
|
||||
'to',
|
||||
'true',
|
||||
'tailcall',
|
||||
'trait',
|
||||
'try',
|
||||
'type',
|
||||
'upcast',
|
||||
'use',
|
||||
'val',
|
||||
'void',
|
||||
'virtual',
|
||||
'volatile',
|
||||
'when',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
integersuffix: /[uU]?[yslnLI]?/,
|
||||
floatsuffix: /[fFmM]?/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/\[<.*>\]/, 'annotation'],
|
||||
[/^#(if|else|endif)/, 'keyword'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, 'number.float'],
|
||||
[/0x[0-9a-fA-F]+LF/, 'number.float'],
|
||||
[/0x[0-9a-fA-F]+(@integersuffix)/, 'number.hex'],
|
||||
[/0b[0-1]+(@integersuffix)/, 'number.bin'],
|
||||
[/\d+(@integersuffix)/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"""/, 'string', '@string."""'],
|
||||
[/"/, 'string', '@string."'],
|
||||
[/\@"/, { token: 'string.quote', next: '@litstring' }],
|
||||
[/'[^\\']'B?/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\(\*(?!\))/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^*(]+/, 'comment'],
|
||||
[/\*\)/, 'comment', '@pop'],
|
||||
[/\*/, 'comment'],
|
||||
[/\(\*\)/, 'comment'],
|
||||
[/\(/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[
|
||||
/("""|"B?)/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
litstring: [
|
||||
[/[^"]+/, 'string'],
|
||||
[/""/, 'string.escape'],
|
||||
[/"/, { token: 'string.quote', next: '@pop' }],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,572 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6424],
|
||||
{
|
||||
76424: (e, t, r) => {
|
||||
'use strict';
|
||||
r.r(t), r.d(t, { conf: () => m, language: () => n });
|
||||
var o = r(89587),
|
||||
i = [
|
||||
'area',
|
||||
'base',
|
||||
'br',
|
||||
'col',
|
||||
'embed',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'keygen',
|
||||
'link',
|
||||
'menuitem',
|
||||
'meta',
|
||||
'param',
|
||||
'source',
|
||||
'track',
|
||||
'wbr',
|
||||
],
|
||||
m = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
comments: { blockComment: ['\x3c!--', '--\x3e'] },
|
||||
brackets: [
|
||||
['\x3c!--', '--\x3e'],
|
||||
['<', '>'],
|
||||
['{', '}'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' },
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'<(?!(?:' +
|
||||
i.join('|') +
|
||||
'))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$',
|
||||
'i'
|
||||
),
|
||||
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||
action: { indentAction: o.Mj.IndentAction.IndentOutdent },
|
||||
},
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'<(?!(?:' +
|
||||
i.join('|') +
|
||||
'))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$',
|
||||
'i'
|
||||
),
|
||||
action: { indentAction: o.Mj.IndentAction.Indent },
|
||||
},
|
||||
],
|
||||
},
|
||||
n = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/@@/],
|
||||
[
|
||||
/@[^@]/,
|
||||
{ token: '@rematch', switchTo: '@razorInSimpleState.root' },
|
||||
],
|
||||
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
||||
[/<!--/, 'comment.html', '@comment'],
|
||||
[
|
||||
/(<)(\w+)(\/>)/,
|
||||
['delimiter.html', 'tag.html', 'delimiter.html'],
|
||||
],
|
||||
[
|
||||
/(<)(script)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@script' }],
|
||||
],
|
||||
[
|
||||
/(<)(style)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@style' }],
|
||||
],
|
||||
[
|
||||
/(<)([:\w]+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[
|
||||
/(<\/)(\w+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[/</, 'delimiter.html'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/[^<@]+/],
|
||||
],
|
||||
doctype: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{ token: '@rematch', switchTo: '@razorInSimpleState.comment' },
|
||||
],
|
||||
[/[^>]+/, 'metatag.content.html'],
|
||||
[/>/, 'metatag.html', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{ token: '@rematch', switchTo: '@razorInSimpleState.comment' },
|
||||
],
|
||||
[/-->/, 'comment.html', '@pop'],
|
||||
[/[^-]+/, 'comment.content.html'],
|
||||
[/./, 'comment.content.html'],
|
||||
],
|
||||
otherTag: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{ token: '@rematch', switchTo: '@razorInSimpleState.otherTag' },
|
||||
],
|
||||
[/\/?>/, 'delimiter.html', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
],
|
||||
script: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{ token: '@rematch', switchTo: '@razorInSimpleState.script' },
|
||||
],
|
||||
[/type/, 'attribute.name', '@scriptAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(script\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
scriptAfterType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.scriptAfterType',
|
||||
},
|
||||
],
|
||||
[/=/, 'delimiter', '@scriptAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptAfterTypeEquals: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.scriptAfterTypeEquals',
|
||||
},
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptWithCustomType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.scriptWithCustomType.$S2',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptEmbedded: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInEmbeddedState.scriptEmbedded.$S2',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[
|
||||
/<\/script/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
],
|
||||
style: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{ token: '@rematch', switchTo: '@razorInSimpleState.style' },
|
||||
],
|
||||
[/type/, 'attribute.name', '@styleAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(style\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
styleAfterType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.styleAfterType',
|
||||
},
|
||||
],
|
||||
[/=/, 'delimiter', '@styleAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleAfterTypeEquals: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.styleAfterTypeEquals',
|
||||
},
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleWithCustomType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.styleWithCustomType.$S2',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleEmbedded: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInEmbeddedState.styleEmbedded.$S2',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[
|
||||
/<\/style/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
],
|
||||
razorInSimpleState: [
|
||||
[/@\*/, 'comment.cs', '@razorBlockCommentTopLevel'],
|
||||
[/@[{(]/, 'metatag.cs', '@razorRootTopLevel'],
|
||||
[
|
||||
/(@)(\s*[\w]+)/,
|
||||
[
|
||||
'metatag.cs',
|
||||
{ token: 'identifier.cs', switchTo: '@$S2.$S3' },
|
||||
],
|
||||
],
|
||||
[/[})]/, { token: 'metatag.cs', switchTo: '@$S2.$S3' }],
|
||||
[/\*@/, { token: 'comment.cs', switchTo: '@$S2.$S3' }],
|
||||
],
|
||||
razorInEmbeddedState: [
|
||||
[/@\*/, 'comment.cs', '@razorBlockCommentTopLevel'],
|
||||
[/@[{(]/, 'metatag.cs', '@razorRootTopLevel'],
|
||||
[
|
||||
/(@)(\s*[\w]+)/,
|
||||
[
|
||||
'metatag.cs',
|
||||
{
|
||||
token: 'identifier.cs',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3',
|
||||
},
|
||||
],
|
||||
],
|
||||
[
|
||||
/[})]/,
|
||||
{
|
||||
token: 'metatag.cs',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3',
|
||||
},
|
||||
],
|
||||
[
|
||||
/\*@/,
|
||||
{
|
||||
token: 'comment.cs',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3',
|
||||
},
|
||||
],
|
||||
],
|
||||
razorBlockCommentTopLevel: [
|
||||
[/\*@/, '@rematch', '@pop'],
|
||||
[/[^*]+/, 'comment.cs'],
|
||||
[/./, 'comment.cs'],
|
||||
],
|
||||
razorBlockComment: [
|
||||
[/\*@/, 'comment.cs', '@pop'],
|
||||
[/[^*]+/, 'comment.cs'],
|
||||
[/./, 'comment.cs'],
|
||||
],
|
||||
razorRootTopLevel: [
|
||||
[/\{/, 'delimiter.bracket.cs', '@razorRoot'],
|
||||
[/\(/, 'delimiter.parenthesis.cs', '@razorRoot'],
|
||||
[/[})]/, '@rematch', '@pop'],
|
||||
{ include: 'razorCommon' },
|
||||
],
|
||||
razorRoot: [
|
||||
[/\{/, 'delimiter.bracket.cs', '@razorRoot'],
|
||||
[/\(/, 'delimiter.parenthesis.cs', '@razorRoot'],
|
||||
[/\}/, 'delimiter.bracket.cs', '@pop'],
|
||||
[/\)/, 'delimiter.parenthesis.cs', '@pop'],
|
||||
{ include: 'razorCommon' },
|
||||
],
|
||||
razorCommon: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@razorKeywords': { token: 'keyword.cs' },
|
||||
'@default': 'identifier.cs',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[\[\]]/, 'delimiter.array.cs'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/\/\/.*$/, 'comment.cs'],
|
||||
[/@\*/, 'comment.cs', '@razorBlockComment'],
|
||||
[/"([^"]*)"/, 'string.cs'],
|
||||
[/'([^']*)'/, 'string.cs'],
|
||||
[
|
||||
/(<)(\w+)(\/>)/,
|
||||
['delimiter.html', 'tag.html', 'delimiter.html'],
|
||||
],
|
||||
[/(<)(\w+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
[
|
||||
/(<\/)(\w+)(>)/,
|
||||
['delimiter.html', 'tag.html', 'delimiter.html'],
|
||||
],
|
||||
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, 'delimiter.cs'],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float.cs'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float.cs'],
|
||||
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, 'number.hex.cs'],
|
||||
[/0[0-7']*[0-7]/, 'number.octal.cs'],
|
||||
[/0[bB][0-1']*[0-1]/, 'number.binary.cs'],
|
||||
[/\d[\d']*/, 'number.cs'],
|
||||
[/\d/, 'number.cs'],
|
||||
],
|
||||
},
|
||||
razorKeywords: [
|
||||
'abstract',
|
||||
'as',
|
||||
'async',
|
||||
'await',
|
||||
'base',
|
||||
'bool',
|
||||
'break',
|
||||
'by',
|
||||
'byte',
|
||||
'case',
|
||||
'catch',
|
||||
'char',
|
||||
'checked',
|
||||
'class',
|
||||
'const',
|
||||
'continue',
|
||||
'decimal',
|
||||
'default',
|
||||
'delegate',
|
||||
'do',
|
||||
'double',
|
||||
'descending',
|
||||
'explicit',
|
||||
'event',
|
||||
'extern',
|
||||
'else',
|
||||
'enum',
|
||||
'false',
|
||||
'finally',
|
||||
'fixed',
|
||||
'float',
|
||||
'for',
|
||||
'foreach',
|
||||
'from',
|
||||
'goto',
|
||||
'group',
|
||||
'if',
|
||||
'implicit',
|
||||
'in',
|
||||
'int',
|
||||
'interface',
|
||||
'internal',
|
||||
'into',
|
||||
'is',
|
||||
'lock',
|
||||
'long',
|
||||
'nameof',
|
||||
'new',
|
||||
'null',
|
||||
'namespace',
|
||||
'object',
|
||||
'operator',
|
||||
'out',
|
||||
'override',
|
||||
'orderby',
|
||||
'params',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'readonly',
|
||||
'ref',
|
||||
'return',
|
||||
'switch',
|
||||
'struct',
|
||||
'sbyte',
|
||||
'sealed',
|
||||
'short',
|
||||
'sizeof',
|
||||
'stackalloc',
|
||||
'static',
|
||||
'string',
|
||||
'select',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'typeof',
|
||||
'uint',
|
||||
'ulong',
|
||||
'unchecked',
|
||||
'unsafe',
|
||||
'ushort',
|
||||
'using',
|
||||
'var',
|
||||
'virtual',
|
||||
'volatile',
|
||||
'void',
|
||||
'when',
|
||||
'while',
|
||||
'where',
|
||||
'yield',
|
||||
'model',
|
||||
'inject',
|
||||
],
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,804 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6449],
|
||||
{
|
||||
56449: (e, _, t) => {
|
||||
'use strict';
|
||||
t.r(_), t.d(_, { conf: () => r, language: () => i });
|
||||
var r = {
|
||||
comments: { lineComment: '--', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.sql',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
],
|
||||
keywords: [
|
||||
'AES128',
|
||||
'AES256',
|
||||
'ALL',
|
||||
'ALLOWOVERWRITE',
|
||||
'ANALYSE',
|
||||
'ANALYZE',
|
||||
'AND',
|
||||
'ANY',
|
||||
'ARRAY',
|
||||
'AS',
|
||||
'ASC',
|
||||
'AUTHORIZATION',
|
||||
'BACKUP',
|
||||
'BETWEEN',
|
||||
'BINARY',
|
||||
'BLANKSASNULL',
|
||||
'BOTH',
|
||||
'BYTEDICT',
|
||||
'BZIP2',
|
||||
'CASE',
|
||||
'CAST',
|
||||
'CHECK',
|
||||
'COLLATE',
|
||||
'COLUMN',
|
||||
'CONSTRAINT',
|
||||
'CREATE',
|
||||
'CREDENTIALS',
|
||||
'CROSS',
|
||||
'CURRENT_DATE',
|
||||
'CURRENT_TIME',
|
||||
'CURRENT_TIMESTAMP',
|
||||
'CURRENT_USER',
|
||||
'CURRENT_USER_ID',
|
||||
'DEFAULT',
|
||||
'DEFERRABLE',
|
||||
'DEFLATE',
|
||||
'DEFRAG',
|
||||
'DELTA',
|
||||
'DELTA32K',
|
||||
'DESC',
|
||||
'DISABLE',
|
||||
'DISTINCT',
|
||||
'DO',
|
||||
'ELSE',
|
||||
'EMPTYASNULL',
|
||||
'ENABLE',
|
||||
'ENCODE',
|
||||
'ENCRYPT',
|
||||
'ENCRYPTION',
|
||||
'END',
|
||||
'EXCEPT',
|
||||
'EXPLICIT',
|
||||
'FALSE',
|
||||
'FOR',
|
||||
'FOREIGN',
|
||||
'FREEZE',
|
||||
'FROM',
|
||||
'FULL',
|
||||
'GLOBALDICT256',
|
||||
'GLOBALDICT64K',
|
||||
'GRANT',
|
||||
'GROUP',
|
||||
'GZIP',
|
||||
'HAVING',
|
||||
'IDENTITY',
|
||||
'IGNORE',
|
||||
'ILIKE',
|
||||
'IN',
|
||||
'INITIALLY',
|
||||
'INNER',
|
||||
'INTERSECT',
|
||||
'INTO',
|
||||
'IS',
|
||||
'ISNULL',
|
||||
'JOIN',
|
||||
'LEADING',
|
||||
'LEFT',
|
||||
'LIKE',
|
||||
'LIMIT',
|
||||
'LOCALTIME',
|
||||
'LOCALTIMESTAMP',
|
||||
'LUN',
|
||||
'LUNS',
|
||||
'LZO',
|
||||
'LZOP',
|
||||
'MINUS',
|
||||
'MOSTLY13',
|
||||
'MOSTLY32',
|
||||
'MOSTLY8',
|
||||
'NATURAL',
|
||||
'NEW',
|
||||
'NOT',
|
||||
'NOTNULL',
|
||||
'NULL',
|
||||
'NULLS',
|
||||
'OFF',
|
||||
'OFFLINE',
|
||||
'OFFSET',
|
||||
'OID',
|
||||
'OLD',
|
||||
'ON',
|
||||
'ONLY',
|
||||
'OPEN',
|
||||
'OR',
|
||||
'ORDER',
|
||||
'OUTER',
|
||||
'OVERLAPS',
|
||||
'PARALLEL',
|
||||
'PARTITION',
|
||||
'PERCENT',
|
||||
'PERMISSIONS',
|
||||
'PLACING',
|
||||
'PRIMARY',
|
||||
'RAW',
|
||||
'READRATIO',
|
||||
'RECOVER',
|
||||
'REFERENCES',
|
||||
'RESPECT',
|
||||
'REJECTLOG',
|
||||
'RESORT',
|
||||
'RESTORE',
|
||||
'RIGHT',
|
||||
'SELECT',
|
||||
'SESSION_USER',
|
||||
'SIMILAR',
|
||||
'SNAPSHOT',
|
||||
'SOME',
|
||||
'SYSDATE',
|
||||
'SYSTEM',
|
||||
'TABLE',
|
||||
'TAG',
|
||||
'TDES',
|
||||
'TEXT255',
|
||||
'TEXT32K',
|
||||
'THEN',
|
||||
'TIMESTAMP',
|
||||
'TO',
|
||||
'TOP',
|
||||
'TRAILING',
|
||||
'TRUE',
|
||||
'TRUNCATECOLUMNS',
|
||||
'UNION',
|
||||
'UNIQUE',
|
||||
'USER',
|
||||
'USING',
|
||||
'VERBOSE',
|
||||
'WALLET',
|
||||
'WHEN',
|
||||
'WHERE',
|
||||
'WITH',
|
||||
'WITHOUT',
|
||||
],
|
||||
operators: [
|
||||
'AND',
|
||||
'BETWEEN',
|
||||
'IN',
|
||||
'LIKE',
|
||||
'NOT',
|
||||
'OR',
|
||||
'IS',
|
||||
'NULL',
|
||||
'INTERSECT',
|
||||
'UNION',
|
||||
'INNER',
|
||||
'JOIN',
|
||||
'LEFT',
|
||||
'OUTER',
|
||||
'RIGHT',
|
||||
],
|
||||
builtinFunctions: [
|
||||
'current_schema',
|
||||
'current_schemas',
|
||||
'has_database_privilege',
|
||||
'has_schema_privilege',
|
||||
'has_table_privilege',
|
||||
'age',
|
||||
'current_time',
|
||||
'current_timestamp',
|
||||
'localtime',
|
||||
'isfinite',
|
||||
'now',
|
||||
'ascii',
|
||||
'get_bit',
|
||||
'get_byte',
|
||||
'set_bit',
|
||||
'set_byte',
|
||||
'to_ascii',
|
||||
'approximate percentile_disc',
|
||||
'avg',
|
||||
'count',
|
||||
'listagg',
|
||||
'max',
|
||||
'median',
|
||||
'min',
|
||||
'percentile_cont',
|
||||
'stddev_samp',
|
||||
'stddev_pop',
|
||||
'sum',
|
||||
'var_samp',
|
||||
'var_pop',
|
||||
'bit_and',
|
||||
'bit_or',
|
||||
'bool_and',
|
||||
'bool_or',
|
||||
'cume_dist',
|
||||
'first_value',
|
||||
'lag',
|
||||
'last_value',
|
||||
'lead',
|
||||
'nth_value',
|
||||
'ratio_to_report',
|
||||
'dense_rank',
|
||||
'ntile',
|
||||
'percent_rank',
|
||||
'rank',
|
||||
'row_number',
|
||||
'case',
|
||||
'coalesce',
|
||||
'decode',
|
||||
'greatest',
|
||||
'least',
|
||||
'nvl',
|
||||
'nvl2',
|
||||
'nullif',
|
||||
'add_months',
|
||||
'at time zone',
|
||||
'convert_timezone',
|
||||
'current_date',
|
||||
'date_cmp',
|
||||
'date_cmp_timestamp',
|
||||
'date_cmp_timestamptz',
|
||||
'date_part_year',
|
||||
'dateadd',
|
||||
'datediff',
|
||||
'date_part',
|
||||
'date_trunc',
|
||||
'extract',
|
||||
'getdate',
|
||||
'interval_cmp',
|
||||
'last_day',
|
||||
'months_between',
|
||||
'next_day',
|
||||
'sysdate',
|
||||
'timeofday',
|
||||
'timestamp_cmp',
|
||||
'timestamp_cmp_date',
|
||||
'timestamp_cmp_timestamptz',
|
||||
'timestamptz_cmp',
|
||||
'timestamptz_cmp_date',
|
||||
'timestamptz_cmp_timestamp',
|
||||
'timezone',
|
||||
'to_timestamp',
|
||||
'trunc',
|
||||
'abs',
|
||||
'acos',
|
||||
'asin',
|
||||
'atan',
|
||||
'atan2',
|
||||
'cbrt',
|
||||
'ceil',
|
||||
'ceiling',
|
||||
'checksum',
|
||||
'cos',
|
||||
'cot',
|
||||
'degrees',
|
||||
'dexp',
|
||||
'dlog1',
|
||||
'dlog10',
|
||||
'exp',
|
||||
'floor',
|
||||
'ln',
|
||||
'log',
|
||||
'mod',
|
||||
'pi',
|
||||
'power',
|
||||
'radians',
|
||||
'random',
|
||||
'round',
|
||||
'sin',
|
||||
'sign',
|
||||
'sqrt',
|
||||
'tan',
|
||||
'to_hex',
|
||||
'bpcharcmp',
|
||||
'btrim',
|
||||
'bttext_pattern_cmp',
|
||||
'char_length',
|
||||
'character_length',
|
||||
'charindex',
|
||||
'chr',
|
||||
'concat',
|
||||
'crc32',
|
||||
'func_sha1',
|
||||
'initcap',
|
||||
'left and rights',
|
||||
'len',
|
||||
'length',
|
||||
'lower',
|
||||
'lpad and rpads',
|
||||
'ltrim',
|
||||
'md5',
|
||||
'octet_length',
|
||||
'position',
|
||||
'quote_ident',
|
||||
'quote_literal',
|
||||
'regexp_count',
|
||||
'regexp_instr',
|
||||
'regexp_replace',
|
||||
'regexp_substr',
|
||||
'repeat',
|
||||
'replace',
|
||||
'replicate',
|
||||
'reverse',
|
||||
'rtrim',
|
||||
'split_part',
|
||||
'strpos',
|
||||
'strtol',
|
||||
'substring',
|
||||
'textlen',
|
||||
'translate',
|
||||
'trim',
|
||||
'upper',
|
||||
'cast',
|
||||
'convert',
|
||||
'to_char',
|
||||
'to_date',
|
||||
'to_number',
|
||||
'json_array_length',
|
||||
'json_extract_array_element_text',
|
||||
'json_extract_path_text',
|
||||
'current_setting',
|
||||
'pg_cancel_backend',
|
||||
'pg_terminate_backend',
|
||||
'set_config',
|
||||
'current_database',
|
||||
'current_user',
|
||||
'current_user_id',
|
||||
'pg_backend_pid',
|
||||
'pg_last_copy_count',
|
||||
'pg_last_copy_id',
|
||||
'pg_last_query_id',
|
||||
'pg_last_unload_count',
|
||||
'session_user',
|
||||
'slice_num',
|
||||
'user',
|
||||
'version',
|
||||
'abbrev',
|
||||
'acosd',
|
||||
'any',
|
||||
'area',
|
||||
'array_agg',
|
||||
'array_append',
|
||||
'array_cat',
|
||||
'array_dims',
|
||||
'array_fill',
|
||||
'array_length',
|
||||
'array_lower',
|
||||
'array_ndims',
|
||||
'array_position',
|
||||
'array_positions',
|
||||
'array_prepend',
|
||||
'array_remove',
|
||||
'array_replace',
|
||||
'array_to_json',
|
||||
'array_to_string',
|
||||
'array_to_tsvector',
|
||||
'array_upper',
|
||||
'asind',
|
||||
'atan2d',
|
||||
'atand',
|
||||
'bit',
|
||||
'bit_length',
|
||||
'bound_box',
|
||||
'box',
|
||||
'brin_summarize_new_values',
|
||||
'broadcast',
|
||||
'cardinality',
|
||||
'center',
|
||||
'circle',
|
||||
'clock_timestamp',
|
||||
'col_description',
|
||||
'concat_ws',
|
||||
'convert_from',
|
||||
'convert_to',
|
||||
'corr',
|
||||
'cosd',
|
||||
'cotd',
|
||||
'covar_pop',
|
||||
'covar_samp',
|
||||
'current_catalog',
|
||||
'current_query',
|
||||
'current_role',
|
||||
'currval',
|
||||
'cursor_to_xml',
|
||||
'diameter',
|
||||
'div',
|
||||
'encode',
|
||||
'enum_first',
|
||||
'enum_last',
|
||||
'enum_range',
|
||||
'every',
|
||||
'family',
|
||||
'format',
|
||||
'format_type',
|
||||
'generate_series',
|
||||
'generate_subscripts',
|
||||
'get_current_ts_config',
|
||||
'gin_clean_pending_list',
|
||||
'grouping',
|
||||
'has_any_column_privilege',
|
||||
'has_column_privilege',
|
||||
'has_foreign_data_wrapper_privilege',
|
||||
'has_function_privilege',
|
||||
'has_language_privilege',
|
||||
'has_sequence_privilege',
|
||||
'has_server_privilege',
|
||||
'has_tablespace_privilege',
|
||||
'has_type_privilege',
|
||||
'height',
|
||||
'host',
|
||||
'hostmask',
|
||||
'inet_client_addr',
|
||||
'inet_client_port',
|
||||
'inet_merge',
|
||||
'inet_same_family',
|
||||
'inet_server_addr',
|
||||
'inet_server_port',
|
||||
'isclosed',
|
||||
'isempty',
|
||||
'isopen',
|
||||
'json_agg',
|
||||
'json_object',
|
||||
'json_object_agg',
|
||||
'json_populate_record',
|
||||
'json_populate_recordset',
|
||||
'json_to_record',
|
||||
'json_to_recordset',
|
||||
'jsonb_agg',
|
||||
'jsonb_object_agg',
|
||||
'justify_days',
|
||||
'justify_hours',
|
||||
'justify_interval',
|
||||
'lastval',
|
||||
'left',
|
||||
'line',
|
||||
'localtimestamp',
|
||||
'lower_inc',
|
||||
'lower_inf',
|
||||
'lpad',
|
||||
'lseg',
|
||||
'make_date',
|
||||
'make_interval',
|
||||
'make_time',
|
||||
'make_timestamp',
|
||||
'make_timestamptz',
|
||||
'masklen',
|
||||
'mode',
|
||||
'netmask',
|
||||
'network',
|
||||
'nextval',
|
||||
'npoints',
|
||||
'num_nonnulls',
|
||||
'num_nulls',
|
||||
'numnode',
|
||||
'obj_description',
|
||||
'overlay',
|
||||
'parse_ident',
|
||||
'path',
|
||||
'pclose',
|
||||
'percentile_disc',
|
||||
'pg_advisory_lock',
|
||||
'pg_advisory_lock_shared',
|
||||
'pg_advisory_unlock',
|
||||
'pg_advisory_unlock_all',
|
||||
'pg_advisory_unlock_shared',
|
||||
'pg_advisory_xact_lock',
|
||||
'pg_advisory_xact_lock_shared',
|
||||
'pg_backup_start_time',
|
||||
'pg_blocking_pids',
|
||||
'pg_client_encoding',
|
||||
'pg_collation_is_visible',
|
||||
'pg_column_size',
|
||||
'pg_conf_load_time',
|
||||
'pg_control_checkpoint',
|
||||
'pg_control_init',
|
||||
'pg_control_recovery',
|
||||
'pg_control_system',
|
||||
'pg_conversion_is_visible',
|
||||
'pg_create_logical_replication_slot',
|
||||
'pg_create_physical_replication_slot',
|
||||
'pg_create_restore_point',
|
||||
'pg_current_xlog_flush_location',
|
||||
'pg_current_xlog_insert_location',
|
||||
'pg_current_xlog_location',
|
||||
'pg_database_size',
|
||||
'pg_describe_object',
|
||||
'pg_drop_replication_slot',
|
||||
'pg_export_snapshot',
|
||||
'pg_filenode_relation',
|
||||
'pg_function_is_visible',
|
||||
'pg_get_constraintdef',
|
||||
'pg_get_expr',
|
||||
'pg_get_function_arguments',
|
||||
'pg_get_function_identity_arguments',
|
||||
'pg_get_function_result',
|
||||
'pg_get_functiondef',
|
||||
'pg_get_indexdef',
|
||||
'pg_get_keywords',
|
||||
'pg_get_object_address',
|
||||
'pg_get_owned_sequence',
|
||||
'pg_get_ruledef',
|
||||
'pg_get_serial_sequence',
|
||||
'pg_get_triggerdef',
|
||||
'pg_get_userbyid',
|
||||
'pg_get_viewdef',
|
||||
'pg_has_role',
|
||||
'pg_identify_object',
|
||||
'pg_identify_object_as_address',
|
||||
'pg_index_column_has_property',
|
||||
'pg_index_has_property',
|
||||
'pg_indexam_has_property',
|
||||
'pg_indexes_size',
|
||||
'pg_is_in_backup',
|
||||
'pg_is_in_recovery',
|
||||
'pg_is_other_temp_schema',
|
||||
'pg_is_xlog_replay_paused',
|
||||
'pg_last_committed_xact',
|
||||
'pg_last_xact_replay_timestamp',
|
||||
'pg_last_xlog_receive_location',
|
||||
'pg_last_xlog_replay_location',
|
||||
'pg_listening_channels',
|
||||
'pg_logical_emit_message',
|
||||
'pg_logical_slot_get_binary_changes',
|
||||
'pg_logical_slot_get_changes',
|
||||
'pg_logical_slot_peek_binary_changes',
|
||||
'pg_logical_slot_peek_changes',
|
||||
'pg_ls_dir',
|
||||
'pg_my_temp_schema',
|
||||
'pg_notification_queue_usage',
|
||||
'pg_opclass_is_visible',
|
||||
'pg_operator_is_visible',
|
||||
'pg_opfamily_is_visible',
|
||||
'pg_options_to_table',
|
||||
'pg_postmaster_start_time',
|
||||
'pg_read_binary_file',
|
||||
'pg_read_file',
|
||||
'pg_relation_filenode',
|
||||
'pg_relation_filepath',
|
||||
'pg_relation_size',
|
||||
'pg_reload_conf',
|
||||
'pg_replication_origin_create',
|
||||
'pg_replication_origin_drop',
|
||||
'pg_replication_origin_oid',
|
||||
'pg_replication_origin_progress',
|
||||
'pg_replication_origin_session_is_setup',
|
||||
'pg_replication_origin_session_progress',
|
||||
'pg_replication_origin_session_reset',
|
||||
'pg_replication_origin_session_setup',
|
||||
'pg_replication_origin_xact_reset',
|
||||
'pg_replication_origin_xact_setup',
|
||||
'pg_rotate_logfile',
|
||||
'pg_size_bytes',
|
||||
'pg_size_pretty',
|
||||
'pg_sleep',
|
||||
'pg_sleep_for',
|
||||
'pg_sleep_until',
|
||||
'pg_start_backup',
|
||||
'pg_stat_file',
|
||||
'pg_stop_backup',
|
||||
'pg_switch_xlog',
|
||||
'pg_table_is_visible',
|
||||
'pg_table_size',
|
||||
'pg_tablespace_databases',
|
||||
'pg_tablespace_location',
|
||||
'pg_tablespace_size',
|
||||
'pg_total_relation_size',
|
||||
'pg_trigger_depth',
|
||||
'pg_try_advisory_lock',
|
||||
'pg_try_advisory_lock_shared',
|
||||
'pg_try_advisory_xact_lock',
|
||||
'pg_try_advisory_xact_lock_shared',
|
||||
'pg_ts_config_is_visible',
|
||||
'pg_ts_dict_is_visible',
|
||||
'pg_ts_parser_is_visible',
|
||||
'pg_ts_template_is_visible',
|
||||
'pg_type_is_visible',
|
||||
'pg_typeof',
|
||||
'pg_xact_commit_timestamp',
|
||||
'pg_xlog_location_diff',
|
||||
'pg_xlog_replay_pause',
|
||||
'pg_xlog_replay_resume',
|
||||
'pg_xlogfile_name',
|
||||
'pg_xlogfile_name_offset',
|
||||
'phraseto_tsquery',
|
||||
'plainto_tsquery',
|
||||
'point',
|
||||
'polygon',
|
||||
'popen',
|
||||
'pqserverversion',
|
||||
'query_to_xml',
|
||||
'querytree',
|
||||
'quote_nullable',
|
||||
'radius',
|
||||
'range_merge',
|
||||
'regexp_matches',
|
||||
'regexp_split_to_array',
|
||||
'regexp_split_to_table',
|
||||
'regr_avgx',
|
||||
'regr_avgy',
|
||||
'regr_count',
|
||||
'regr_intercept',
|
||||
'regr_r2',
|
||||
'regr_slope',
|
||||
'regr_sxx',
|
||||
'regr_sxy',
|
||||
'regr_syy',
|
||||
'right',
|
||||
'row_security_active',
|
||||
'row_to_json',
|
||||
'rpad',
|
||||
'scale',
|
||||
'set_masklen',
|
||||
'setseed',
|
||||
'setval',
|
||||
'setweight',
|
||||
'shobj_description',
|
||||
'sind',
|
||||
'sprintf',
|
||||
'statement_timestamp',
|
||||
'stddev',
|
||||
'string_agg',
|
||||
'string_to_array',
|
||||
'strip',
|
||||
'substr',
|
||||
'table_to_xml',
|
||||
'table_to_xml_and_xmlschema',
|
||||
'tand',
|
||||
'text',
|
||||
'to_json',
|
||||
'to_regclass',
|
||||
'to_regnamespace',
|
||||
'to_regoper',
|
||||
'to_regoperator',
|
||||
'to_regproc',
|
||||
'to_regprocedure',
|
||||
'to_regrole',
|
||||
'to_regtype',
|
||||
'to_tsquery',
|
||||
'to_tsvector',
|
||||
'transaction_timestamp',
|
||||
'ts_debug',
|
||||
'ts_delete',
|
||||
'ts_filter',
|
||||
'ts_headline',
|
||||
'ts_lexize',
|
||||
'ts_parse',
|
||||
'ts_rank',
|
||||
'ts_rank_cd',
|
||||
'ts_rewrite',
|
||||
'ts_stat',
|
||||
'ts_token_type',
|
||||
'tsquery_phrase',
|
||||
'tsvector_to_array',
|
||||
'tsvector_update_trigger',
|
||||
'tsvector_update_trigger_column',
|
||||
'txid_current',
|
||||
'txid_current_snapshot',
|
||||
'txid_snapshot_xip',
|
||||
'txid_snapshot_xmax',
|
||||
'txid_snapshot_xmin',
|
||||
'txid_visible_in_snapshot',
|
||||
'unnest',
|
||||
'upper_inc',
|
||||
'upper_inf',
|
||||
'variance',
|
||||
'width',
|
||||
'width_bucket',
|
||||
'xml_is_well_formed',
|
||||
'xml_is_well_formed_content',
|
||||
'xml_is_well_formed_document',
|
||||
'xmlagg',
|
||||
'xmlcomment',
|
||||
'xmlconcat',
|
||||
'xmlelement',
|
||||
'xmlexists',
|
||||
'xmlforest',
|
||||
'xmlparse',
|
||||
'xmlpi',
|
||||
'xmlroot',
|
||||
'xmlserialize',
|
||||
'xpath',
|
||||
'xpath_exists',
|
||||
],
|
||||
builtinVariables: [],
|
||||
pseudoColumns: [],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@comments' },
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@pseudoColumns' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@complexIdentifiers' },
|
||||
{ include: '@scopes' },
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/[()]/, '@brackets'],
|
||||
[
|
||||
/[\w@#$]+/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@operators': 'operator',
|
||||
'@builtinVariables': 'predefined',
|
||||
'@builtinFunctions': 'predefined',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[<>=!%&+\-*/|~^]/, 'operator'],
|
||||
],
|
||||
whitespace: [[/\s+/, 'white']],
|
||||
comments: [
|
||||
[/--+.*/, 'comment'],
|
||||
[/\/\*/, { token: 'comment.quote', next: '@comment' }],
|
||||
],
|
||||
comment: [
|
||||
[/[^*/]+/, 'comment'],
|
||||
[/\*\//, { token: 'comment.quote', next: '@pop' }],
|
||||
[/./, 'comment'],
|
||||
],
|
||||
pseudoColumns: [
|
||||
[
|
||||
/[$][A-Za-z_][\w@#$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@pseudoColumns': 'predefined',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
numbers: [
|
||||
[/0[xX][0-9a-fA-F]*/, 'number'],
|
||||
[/[$][+-]*\d*(\.\d*)?/, 'number'],
|
||||
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, 'number'],
|
||||
],
|
||||
strings: [[/'/, { token: 'string', next: '@string' }]],
|
||||
string: [
|
||||
[/[^']+/, 'string'],
|
||||
[/''/, 'string'],
|
||||
[/'/, { token: 'string', next: '@pop' }],
|
||||
],
|
||||
complexIdentifiers: [
|
||||
[/"/, { token: 'identifier.quote', next: '@quotedIdentifier' }],
|
||||
],
|
||||
quotedIdentifier: [
|
||||
[/[^"]+/, 'identifier'],
|
||||
[/""/, 'identifier'],
|
||||
[/"/, { token: 'identifier.quote', next: '@pop' }],
|
||||
],
|
||||
scopes: [],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,154 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6489],
|
||||
{
|
||||
66489: (e, n, t) => {
|
||||
'use strict';
|
||||
t.r(n), t.d(n, { conf: () => o, language: () => s });
|
||||
var o = {
|
||||
comments: { lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"""', close: '"""', notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"""', close: '"""' },
|
||||
{ open: '"', close: '"' },
|
||||
],
|
||||
folding: { offSide: !0 },
|
||||
},
|
||||
s = {
|
||||
defaultToken: 'invalid',
|
||||
tokenPostfix: '.gql',
|
||||
keywords: [
|
||||
'null',
|
||||
'true',
|
||||
'false',
|
||||
'query',
|
||||
'mutation',
|
||||
'subscription',
|
||||
'extend',
|
||||
'schema',
|
||||
'directive',
|
||||
'scalar',
|
||||
'type',
|
||||
'interface',
|
||||
'union',
|
||||
'enum',
|
||||
'input',
|
||||
'implements',
|
||||
'fragment',
|
||||
'on',
|
||||
],
|
||||
typeKeywords: ['Int', 'Float', 'String', 'Boolean', 'ID'],
|
||||
directiveLocations: [
|
||||
'SCHEMA',
|
||||
'SCALAR',
|
||||
'OBJECT',
|
||||
'FIELD_DEFINITION',
|
||||
'ARGUMENT_DEFINITION',
|
||||
'INTERFACE',
|
||||
'UNION',
|
||||
'ENUM',
|
||||
'ENUM_VALUE',
|
||||
'INPUT_OBJECT',
|
||||
'INPUT_FIELD_DEFINITION',
|
||||
'QUERY',
|
||||
'MUTATION',
|
||||
'SUBSCRIPTION',
|
||||
'FIELD',
|
||||
'FRAGMENT_DEFINITION',
|
||||
'FRAGMENT_SPREAD',
|
||||
'INLINE_FRAGMENT',
|
||||
'VARIABLE_DEFINITION',
|
||||
],
|
||||
operators: ['=', '!', '?', ':', '&', '|'],
|
||||
symbols: /[=!?:&|]+/,
|
||||
escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-z_][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'key.identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/[$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'argument.identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/[A-Z][\w\$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@typeKeywords': 'keyword',
|
||||
'@default': 'type.identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'operator', '@default': '' } },
|
||||
],
|
||||
[
|
||||
/@\s*[a-zA-Z_\$][\w\$]*/,
|
||||
{ token: 'annotation', log: 'annotation token: $0' },
|
||||
],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[
|
||||
/"""/,
|
||||
{
|
||||
token: 'string',
|
||||
next: '@mlstring',
|
||||
nextEmbedded: 'markdown',
|
||||
},
|
||||
],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[
|
||||
/"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@string' },
|
||||
],
|
||||
],
|
||||
mlstring: [
|
||||
[/[^"]+/, 'string'],
|
||||
['"""', { token: 'string', next: '@pop', nextEmbedded: '@pop' }],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/#.*$/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,421 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6587],
|
||||
{
|
||||
75458: (e, n, o) => {
|
||||
'use strict';
|
||||
o.r(n), o.d(n, { conf: () => t, language: () => r });
|
||||
var t = {
|
||||
comments: { lineComment: '//', blockComment: ['(*', '*)'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['var', 'end_var'],
|
||||
['var_input', 'end_var'],
|
||||
['var_output', 'end_var'],
|
||||
['var_in_out', 'end_var'],
|
||||
['var_temp', 'end_var'],
|
||||
['var_global', 'end_var'],
|
||||
['var_access', 'end_var'],
|
||||
['var_external', 'end_var'],
|
||||
['type', 'end_type'],
|
||||
['struct', 'end_struct'],
|
||||
['program', 'end_program'],
|
||||
['function', 'end_function'],
|
||||
['function_block', 'end_function_block'],
|
||||
['action', 'end_action'],
|
||||
['step', 'end_step'],
|
||||
['initial_step', 'end_step'],
|
||||
['transaction', 'end_transaction'],
|
||||
['configuration', 'end_configuration'],
|
||||
['tcp', 'end_tcp'],
|
||||
['recource', 'end_recource'],
|
||||
['channel', 'end_channel'],
|
||||
['library', 'end_library'],
|
||||
['folder', 'end_folder'],
|
||||
['binaries', 'end_binaries'],
|
||||
['includes', 'end_includes'],
|
||||
['sources', 'end_sources'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '/*', close: '*/' },
|
||||
{ open: "'", close: "'", notIn: ['string_sq'] },
|
||||
{ open: '"', close: '"', notIn: ['string_dq'] },
|
||||
{ open: 'var_input', close: 'end_var' },
|
||||
{ open: 'var_output', close: 'end_var' },
|
||||
{ open: 'var_in_out', close: 'end_var' },
|
||||
{ open: 'var_temp', close: 'end_var' },
|
||||
{ open: 'var_global', close: 'end_var' },
|
||||
{ open: 'var_access', close: 'end_var' },
|
||||
{ open: 'var_external', close: 'end_var' },
|
||||
{ open: 'type', close: 'end_type' },
|
||||
{ open: 'struct', close: 'end_struct' },
|
||||
{ open: 'program', close: 'end_program' },
|
||||
{ open: 'function', close: 'end_function' },
|
||||
{ open: 'function_block', close: 'end_function_block' },
|
||||
{ open: 'action', close: 'end_action' },
|
||||
{ open: 'step', close: 'end_step' },
|
||||
{ open: 'initial_step', close: 'end_step' },
|
||||
{ open: 'transaction', close: 'end_transaction' },
|
||||
{ open: 'configuration', close: 'end_configuration' },
|
||||
{ open: 'tcp', close: 'end_tcp' },
|
||||
{ open: 'recource', close: 'end_recource' },
|
||||
{ open: 'channel', close: 'end_channel' },
|
||||
{ open: 'library', close: 'end_library' },
|
||||
{ open: 'folder', close: 'end_folder' },
|
||||
{ open: 'binaries', close: 'end_binaries' },
|
||||
{ open: 'includes', close: 'end_includes' },
|
||||
{ open: 'sources', close: 'end_sources' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: 'var', close: 'end_var' },
|
||||
{ open: 'var_input', close: 'end_var' },
|
||||
{ open: 'var_output', close: 'end_var' },
|
||||
{ open: 'var_in_out', close: 'end_var' },
|
||||
{ open: 'var_temp', close: 'end_var' },
|
||||
{ open: 'var_global', close: 'end_var' },
|
||||
{ open: 'var_access', close: 'end_var' },
|
||||
{ open: 'var_external', close: 'end_var' },
|
||||
{ open: 'type', close: 'end_type' },
|
||||
{ open: 'struct', close: 'end_struct' },
|
||||
{ open: 'program', close: 'end_program' },
|
||||
{ open: 'function', close: 'end_function' },
|
||||
{ open: 'function_block', close: 'end_function_block' },
|
||||
{ open: 'action', close: 'end_action' },
|
||||
{ open: 'step', close: 'end_step' },
|
||||
{ open: 'initial_step', close: 'end_step' },
|
||||
{ open: 'transaction', close: 'end_transaction' },
|
||||
{ open: 'configuration', close: 'end_configuration' },
|
||||
{ open: 'tcp', close: 'end_tcp' },
|
||||
{ open: 'recource', close: 'end_recource' },
|
||||
{ open: 'channel', close: 'end_channel' },
|
||||
{ open: 'library', close: 'end_library' },
|
||||
{ open: 'folder', close: 'end_folder' },
|
||||
{ open: 'binaries', close: 'end_binaries' },
|
||||
{ open: 'includes', close: 'end_includes' },
|
||||
{ open: 'sources', close: 'end_sources' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*#pragma\\s+region\\b'),
|
||||
end: new RegExp('^\\s*#pragma\\s+endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.st',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
],
|
||||
keywords: [
|
||||
'if',
|
||||
'end_if',
|
||||
'elsif',
|
||||
'else',
|
||||
'case',
|
||||
'of',
|
||||
'to',
|
||||
'__try',
|
||||
'__catch',
|
||||
'__finally',
|
||||
'do',
|
||||
'with',
|
||||
'by',
|
||||
'while',
|
||||
'repeat',
|
||||
'end_while',
|
||||
'end_repeat',
|
||||
'end_case',
|
||||
'for',
|
||||
'end_for',
|
||||
'task',
|
||||
'retain',
|
||||
'non_retain',
|
||||
'constant',
|
||||
'with',
|
||||
'at',
|
||||
'exit',
|
||||
'return',
|
||||
'interval',
|
||||
'priority',
|
||||
'address',
|
||||
'port',
|
||||
'on_channel',
|
||||
'then',
|
||||
'iec',
|
||||
'file',
|
||||
'uses',
|
||||
'version',
|
||||
'packagetype',
|
||||
'displayname',
|
||||
'copyright',
|
||||
'summary',
|
||||
'vendor',
|
||||
'common_source',
|
||||
'from',
|
||||
'extends',
|
||||
],
|
||||
constant: ['false', 'true', 'null'],
|
||||
defineKeywords: [
|
||||
'var',
|
||||
'var_input',
|
||||
'var_output',
|
||||
'var_in_out',
|
||||
'var_temp',
|
||||
'var_global',
|
||||
'var_access',
|
||||
'var_external',
|
||||
'end_var',
|
||||
'type',
|
||||
'end_type',
|
||||
'struct',
|
||||
'end_struct',
|
||||
'program',
|
||||
'end_program',
|
||||
'function',
|
||||
'end_function',
|
||||
'function_block',
|
||||
'end_function_block',
|
||||
'interface',
|
||||
'end_interface',
|
||||
'method',
|
||||
'end_method',
|
||||
'property',
|
||||
'end_property',
|
||||
'namespace',
|
||||
'end_namespace',
|
||||
'configuration',
|
||||
'end_configuration',
|
||||
'tcp',
|
||||
'end_tcp',
|
||||
'resource',
|
||||
'end_resource',
|
||||
'channel',
|
||||
'end_channel',
|
||||
'library',
|
||||
'end_library',
|
||||
'folder',
|
||||
'end_folder',
|
||||
'binaries',
|
||||
'end_binaries',
|
||||
'includes',
|
||||
'end_includes',
|
||||
'sources',
|
||||
'end_sources',
|
||||
'action',
|
||||
'end_action',
|
||||
'step',
|
||||
'initial_step',
|
||||
'end_step',
|
||||
'transaction',
|
||||
'end_transaction',
|
||||
],
|
||||
typeKeywords: [
|
||||
'int',
|
||||
'sint',
|
||||
'dint',
|
||||
'lint',
|
||||
'usint',
|
||||
'uint',
|
||||
'udint',
|
||||
'ulint',
|
||||
'real',
|
||||
'lreal',
|
||||
'time',
|
||||
'date',
|
||||
'time_of_day',
|
||||
'date_and_time',
|
||||
'string',
|
||||
'bool',
|
||||
'byte',
|
||||
'word',
|
||||
'dword',
|
||||
'array',
|
||||
'pointer',
|
||||
'lword',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
':',
|
||||
':=',
|
||||
'<=',
|
||||
'>=',
|
||||
'<>',
|
||||
'&',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'**',
|
||||
'MOD',
|
||||
'^',
|
||||
'or',
|
||||
'and',
|
||||
'not',
|
||||
'xor',
|
||||
'abs',
|
||||
'acos',
|
||||
'asin',
|
||||
'atan',
|
||||
'cos',
|
||||
'exp',
|
||||
'expt',
|
||||
'ln',
|
||||
'log',
|
||||
'sin',
|
||||
'sqrt',
|
||||
'tan',
|
||||
'sel',
|
||||
'max',
|
||||
'min',
|
||||
'limit',
|
||||
'mux',
|
||||
'shl',
|
||||
'shr',
|
||||
'rol',
|
||||
'ror',
|
||||
'indexof',
|
||||
'sizeof',
|
||||
'adr',
|
||||
'adrinst',
|
||||
'bitadr',
|
||||
'is_valid',
|
||||
'ref',
|
||||
'ref_to',
|
||||
],
|
||||
builtinVariables: [],
|
||||
builtinFunctions: [
|
||||
'sr',
|
||||
'rs',
|
||||
'tp',
|
||||
'ton',
|
||||
'tof',
|
||||
'eq',
|
||||
'ge',
|
||||
'le',
|
||||
'lt',
|
||||
'ne',
|
||||
'round',
|
||||
'trunc',
|
||||
'ctd',
|
||||
'сtu',
|
||||
'ctud',
|
||||
'r_trig',
|
||||
'f_trig',
|
||||
'move',
|
||||
'concat',
|
||||
'delete',
|
||||
'find',
|
||||
'insert',
|
||||
'left',
|
||||
'len',
|
||||
'replace',
|
||||
'right',
|
||||
'rtc',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/(\.\.)/, 'delimiter'],
|
||||
[/\b(16#[0-9A-Fa-f\_]*)+\b/, 'number.hex'],
|
||||
[/\b(2#[01\_]+)+\b/, 'number.binary'],
|
||||
[/\b(8#[0-9\_]*)+\b/, 'number.octal'],
|
||||
[/\b\d*\.\d+([eE][\-+]?\d+)?\b/, 'number.float'],
|
||||
[/\b(L?REAL)#[0-9\_\.e]+\b/, 'number.float'],
|
||||
[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/, 'number'],
|
||||
[/\d+/, 'number'],
|
||||
[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, 'tag'],
|
||||
[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, 'tag'],
|
||||
[/\%(I|Q|M)[0-9\.]*/, 'tag'],
|
||||
[/\b[A-Za-z]{1,6}#[0-9]+\b/, 'tag'],
|
||||
[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, 'predefined'],
|
||||
[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/, 'predefined'],
|
||||
[/[;]/, 'delimiter'],
|
||||
[/[.]/, { token: 'delimiter', next: '@params' }],
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operators',
|
||||
'@keywords': 'keyword',
|
||||
'@typeKeywords': 'type',
|
||||
'@defineKeywords': 'variable',
|
||||
'@constant': 'constant',
|
||||
'@builtinVariables': 'predefined',
|
||||
'@builtinFunctions': 'predefined',
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[
|
||||
/"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@string_dq' },
|
||||
],
|
||||
[
|
||||
/'/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@string_sq' },
|
||||
],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
params: [
|
||||
[
|
||||
/\b[A-Za-z0-9_]+\b(?=\()/,
|
||||
{ token: 'identifier', next: '@pop' },
|
||||
],
|
||||
[/\b[A-Za-z0-9_]+\b/, 'variable.name', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\/\*/, 'comment', '@push'],
|
||||
['\\*/', 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
comment2: [
|
||||
[/[^\(*]+/, 'comment'],
|
||||
[/\(\*/, 'comment', '@push'],
|
||||
['\\*\\)', 'comment', '@pop'],
|
||||
[/[\(*]/, 'comment'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\(\*/, 'comment', '@comment2'],
|
||||
],
|
||||
string_dq: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
string_sq: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,322 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[6717],
|
||||
{
|
||||
96717: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => i, language: () => r });
|
||||
var o = n(89587),
|
||||
i = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
||||
afterText: /^\s*\*\/$/,
|
||||
action: {
|
||||
indentAction: o.Mj.IndentAction.IndentOutdent,
|
||||
appendText: ' * ',
|
||||
},
|
||||
},
|
||||
{
|
||||
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
||||
action: {
|
||||
indentAction: o.Mj.IndentAction.None,
|
||||
appendText: ' * ',
|
||||
},
|
||||
},
|
||||
{
|
||||
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
||||
action: {
|
||||
indentAction: o.Mj.IndentAction.None,
|
||||
appendText: '* ',
|
||||
},
|
||||
},
|
||||
{
|
||||
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
||||
action: { indentAction: o.Mj.IndentAction.None, removeText: 1 },
|
||||
},
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
||||
{ open: '/**', close: ' */', notIn: ['string'] },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*//\\s*#?region\\b'),
|
||||
end: new RegExp('^\\s*//\\s*#?endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
r = {
|
||||
defaultToken: 'invalid',
|
||||
tokenPostfix: '.ts',
|
||||
keywords: [
|
||||
'abstract',
|
||||
'any',
|
||||
'as',
|
||||
'asserts',
|
||||
'bigint',
|
||||
'boolean',
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'class',
|
||||
'continue',
|
||||
'const',
|
||||
'constructor',
|
||||
'debugger',
|
||||
'declare',
|
||||
'default',
|
||||
'delete',
|
||||
'do',
|
||||
'else',
|
||||
'enum',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'finally',
|
||||
'for',
|
||||
'from',
|
||||
'function',
|
||||
'get',
|
||||
'if',
|
||||
'implements',
|
||||
'import',
|
||||
'in',
|
||||
'infer',
|
||||
'instanceof',
|
||||
'interface',
|
||||
'is',
|
||||
'keyof',
|
||||
'let',
|
||||
'module',
|
||||
'namespace',
|
||||
'never',
|
||||
'new',
|
||||
'null',
|
||||
'number',
|
||||
'object',
|
||||
'package',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'readonly',
|
||||
'require',
|
||||
'global',
|
||||
'return',
|
||||
'set',
|
||||
'static',
|
||||
'string',
|
||||
'super',
|
||||
'switch',
|
||||
'symbol',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'type',
|
||||
'typeof',
|
||||
'undefined',
|
||||
'unique',
|
||||
'unknown',
|
||||
'var',
|
||||
'void',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
'async',
|
||||
'await',
|
||||
'of',
|
||||
],
|
||||
operators: [
|
||||
'<=',
|
||||
'>=',
|
||||
'==',
|
||||
'!=',
|
||||
'===',
|
||||
'!==',
|
||||
'=>',
|
||||
'+',
|
||||
'-',
|
||||
'**',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'++',
|
||||
'--',
|
||||
'<<',
|
||||
'</',
|
||||
'>>',
|
||||
'>>>',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'!',
|
||||
'~',
|
||||
'&&',
|
||||
'||',
|
||||
'??',
|
||||
'?',
|
||||
':',
|
||||
'=',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'**=',
|
||||
'/=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'@',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
||||
tokenizer: {
|
||||
root: [[/[{}]/, 'delimiter.bracket'], { include: 'common' }],
|
||||
common: [
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{ cases: { '@keywords': 'keyword', '@default': 'identifier' } },
|
||||
],
|
||||
[/[A-Z][\w\$]*/, 'type.identifier'],
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
||||
{ token: 'regexp', bracket: '@open', next: '@regexp' },
|
||||
],
|
||||
[/[()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/!(?=([^=]|$))/, 'delimiter'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/(@digits)[eE]([\-+]?(@digits))?/, 'number.float'],
|
||||
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, 'number.float'],
|
||||
[/0[xX](@hexdigits)n?/, 'number.hex'],
|
||||
[/0[oO]?(@octaldigits)n?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)n?/, 'number.binary'],
|
||||
[/(@digits)n?/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string_double'],
|
||||
[/'/, 'string', '@string_single'],
|
||||
[/`/, 'string', '@string_backtick'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@jsdoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
jsdoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
regexp: [
|
||||
[
|
||||
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||
[
|
||||
'regexp.escape.control',
|
||||
'regexp.escape.control',
|
||||
'regexp.escape.control',
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
||||
[
|
||||
'regexp.escape.control',
|
||||
{ token: 'regexp.escape.control', next: '@regexrange' },
|
||||
],
|
||||
],
|
||||
[
|
||||
/(\()(\?:|\?=|\?!)/,
|
||||
['regexp.escape.control', 'regexp.escape.control'],
|
||||
],
|
||||
[/[()]/, 'regexp.escape.control'],
|
||||
[/@regexpctl/, 'regexp.escape.control'],
|
||||
[/[^\\\/]/, 'regexp'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/\\\./, 'regexp.invalid'],
|
||||
[
|
||||
/(\/)([gimsuy]*)/,
|
||||
[
|
||||
{ token: 'regexp', bracket: '@close', next: '@pop' },
|
||||
'keyword.other',
|
||||
],
|
||||
],
|
||||
],
|
||||
regexrange: [
|
||||
[/-/, 'regexp.escape.control'],
|
||||
[/\^/, 'regexp.invalid'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/[^\]]/, 'regexp'],
|
||||
[
|
||||
/\]/,
|
||||
{
|
||||
token: 'regexp.escape.control',
|
||||
next: '@pop',
|
||||
bracket: '@close',
|
||||
},
|
||||
],
|
||||
],
|
||||
string_double: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
string_single: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, 'string', '@pop'],
|
||||
],
|
||||
string_backtick: [
|
||||
[
|
||||
/\$\{/,
|
||||
{ token: 'delimiter.bracket', next: '@bracketCounting' },
|
||||
],
|
||||
[/[^\\`$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/`/, 'string', '@pop'],
|
||||
],
|
||||
bracketCounting: [
|
||||
[/\{/, 'delimiter.bracket', '@bracketCounting'],
|
||||
[/\}/, 'delimiter.bracket', '@pop'],
|
||||
{ include: 'common' },
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-32211
File diff suppressed because it is too large
Load Diff
@@ -1,207 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[7043],
|
||||
{
|
||||
17043: (e, t, o) => {
|
||||
'use strict';
|
||||
o.r(t), o.d(t, { conf: () => s, language: () => i });
|
||||
var s = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))'
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.java',
|
||||
keywords: [
|
||||
'abstract',
|
||||
'continue',
|
||||
'for',
|
||||
'new',
|
||||
'switch',
|
||||
'assert',
|
||||
'default',
|
||||
'goto',
|
||||
'package',
|
||||
'synchronized',
|
||||
'boolean',
|
||||
'do',
|
||||
'if',
|
||||
'private',
|
||||
'this',
|
||||
'break',
|
||||
'double',
|
||||
'implements',
|
||||
'protected',
|
||||
'throw',
|
||||
'byte',
|
||||
'else',
|
||||
'import',
|
||||
'public',
|
||||
'throws',
|
||||
'case',
|
||||
'enum',
|
||||
'instanceof',
|
||||
'return',
|
||||
'transient',
|
||||
'catch',
|
||||
'extends',
|
||||
'int',
|
||||
'short',
|
||||
'try',
|
||||
'char',
|
||||
'final',
|
||||
'interface',
|
||||
'static',
|
||||
'void',
|
||||
'class',
|
||||
'finally',
|
||||
'long',
|
||||
'strictfp',
|
||||
'volatile',
|
||||
'const',
|
||||
'float',
|
||||
'native',
|
||||
'super',
|
||||
'while',
|
||||
'true',
|
||||
'false',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'!',
|
||||
'~',
|
||||
'?',
|
||||
':',
|
||||
'==',
|
||||
'<=',
|
||||
'>=',
|
||||
'!=',
|
||||
'&&',
|
||||
'||',
|
||||
'++',
|
||||
'--',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'%',
|
||||
'<<',
|
||||
'>>',
|
||||
'>>>',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>=',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/@\s*[a-zA-Z_\$][\w\$]*/, 'annotation'],
|
||||
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, 'number.float'],
|
||||
[
|
||||
/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,
|
||||
'number.float',
|
||||
],
|
||||
[/0[xX](@hexdigits)[Ll]?/, 'number.hex'],
|
||||
[/0(@octaldigits)[Ll]?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)[Ll]?/, 'number.binary'],
|
||||
[/(@digits)[fFdD]/, 'number.float'],
|
||||
[/(@digits)[lL]?/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid'],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@javadoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
javadoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\/\*/, 'comment.doc.invalid'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-6390
File diff suppressed because it is too large
Load Diff
@@ -1,244 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[7287],
|
||||
{
|
||||
37287: (e, n, s) => {
|
||||
'use strict';
|
||||
s.r(n), s.d(n, { conf: () => r, language: () => i });
|
||||
var t = s(89587),
|
||||
r = {
|
||||
comments: { lineComment: '#', blockComment: ["'''", "'''"] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: new RegExp(
|
||||
'^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$'
|
||||
),
|
||||
action: { indentAction: t.Mj.IndentAction.Indent },
|
||||
},
|
||||
],
|
||||
folding: {
|
||||
offSide: !0,
|
||||
markers: {
|
||||
start: new RegExp('^\\s*#region\\b'),
|
||||
end: new RegExp('^\\s*#endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.python',
|
||||
keywords: [
|
||||
'False',
|
||||
'None',
|
||||
'True',
|
||||
'and',
|
||||
'as',
|
||||
'assert',
|
||||
'async',
|
||||
'await',
|
||||
'break',
|
||||
'class',
|
||||
'continue',
|
||||
'def',
|
||||
'del',
|
||||
'elif',
|
||||
'else',
|
||||
'except',
|
||||
'exec',
|
||||
'finally',
|
||||
'for',
|
||||
'from',
|
||||
'global',
|
||||
'if',
|
||||
'import',
|
||||
'in',
|
||||
'is',
|
||||
'lambda',
|
||||
'nonlocal',
|
||||
'not',
|
||||
'or',
|
||||
'pass',
|
||||
'print',
|
||||
'raise',
|
||||
'return',
|
||||
'try',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
'int',
|
||||
'float',
|
||||
'long',
|
||||
'complex',
|
||||
'hex',
|
||||
'abs',
|
||||
'all',
|
||||
'any',
|
||||
'apply',
|
||||
'basestring',
|
||||
'bin',
|
||||
'bool',
|
||||
'buffer',
|
||||
'bytearray',
|
||||
'callable',
|
||||
'chr',
|
||||
'classmethod',
|
||||
'cmp',
|
||||
'coerce',
|
||||
'compile',
|
||||
'complex',
|
||||
'delattr',
|
||||
'dict',
|
||||
'dir',
|
||||
'divmod',
|
||||
'enumerate',
|
||||
'eval',
|
||||
'execfile',
|
||||
'file',
|
||||
'filter',
|
||||
'format',
|
||||
'frozenset',
|
||||
'getattr',
|
||||
'globals',
|
||||
'hasattr',
|
||||
'hash',
|
||||
'help',
|
||||
'id',
|
||||
'input',
|
||||
'intern',
|
||||
'isinstance',
|
||||
'issubclass',
|
||||
'iter',
|
||||
'len',
|
||||
'locals',
|
||||
'list',
|
||||
'map',
|
||||
'max',
|
||||
'memoryview',
|
||||
'min',
|
||||
'next',
|
||||
'object',
|
||||
'oct',
|
||||
'open',
|
||||
'ord',
|
||||
'pow',
|
||||
'print',
|
||||
'property',
|
||||
'reversed',
|
||||
'range',
|
||||
'raw_input',
|
||||
'reduce',
|
||||
'reload',
|
||||
'repr',
|
||||
'reversed',
|
||||
'round',
|
||||
'self',
|
||||
'set',
|
||||
'setattr',
|
||||
'slice',
|
||||
'sorted',
|
||||
'staticmethod',
|
||||
'str',
|
||||
'sum',
|
||||
'super',
|
||||
'tuple',
|
||||
'type',
|
||||
'unichr',
|
||||
'unicode',
|
||||
'vars',
|
||||
'xrange',
|
||||
'zip',
|
||||
'__dict__',
|
||||
'__methods__',
|
||||
'__members__',
|
||||
'__class__',
|
||||
'__bases__',
|
||||
'__name__',
|
||||
'__mro__',
|
||||
'__subclasses__',
|
||||
'__init__',
|
||||
'__import__',
|
||||
],
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.bracket' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
[/[,:;]/, 'delimiter'],
|
||||
[/[{}\[\]()]/, '@brackets'],
|
||||
[/@[a-zA-Z_]\w*/, 'tag'],
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{ cases: { '@keywords': 'keyword', '@default': 'identifier' } },
|
||||
],
|
||||
],
|
||||
whitespace: [
|
||||
[/\s+/, 'white'],
|
||||
[/(^#.*$)/, 'comment'],
|
||||
[/'''/, 'string', '@endDocString'],
|
||||
[/"""/, 'string', '@endDblDocString'],
|
||||
],
|
||||
endDocString: [
|
||||
[/[^']+/, 'string'],
|
||||
[/\\'/, 'string'],
|
||||
[/'''/, 'string', '@popall'],
|
||||
[/'/, 'string'],
|
||||
],
|
||||
endDblDocString: [
|
||||
[/[^"]+/, 'string'],
|
||||
[/\\"/, 'string'],
|
||||
[/"""/, 'string', '@popall'],
|
||||
[/"/, 'string'],
|
||||
],
|
||||
numbers: [
|
||||
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, 'number.hex'],
|
||||
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, 'number'],
|
||||
],
|
||||
strings: [
|
||||
[/'$/, 'string.escape', '@popall'],
|
||||
[/'/, 'string.escape', '@stringBody'],
|
||||
[/"$/, 'string.escape', '@popall'],
|
||||
[/"/, 'string.escape', '@dblStringBody'],
|
||||
],
|
||||
stringBody: [
|
||||
[/[^\\']+$/, 'string', '@popall'],
|
||||
[/[^\\']+/, 'string'],
|
||||
[/\\./, 'string'],
|
||||
[/'/, 'string.escape', '@popall'],
|
||||
[/\\$/, 'string'],
|
||||
],
|
||||
dblStringBody: [
|
||||
[/[^\\"]+$/, 'string', '@popall'],
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/\\./, 'string'],
|
||||
[/"/, 'string.escape', '@popall'],
|
||||
[/\\$/, 'string'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,218 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[7562],
|
||||
{
|
||||
37562: (e, n, s) => {
|
||||
'use strict';
|
||||
s.r(n), s.d(n, { conf: () => t, language: () => o });
|
||||
var t = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '#', blockComment: ['<#', '#>'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*#region\\b'),
|
||||
end: new RegExp('^\\s*#endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
o = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.ps1',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
],
|
||||
keywords: [
|
||||
'begin',
|
||||
'break',
|
||||
'catch',
|
||||
'class',
|
||||
'continue',
|
||||
'data',
|
||||
'define',
|
||||
'do',
|
||||
'dynamicparam',
|
||||
'else',
|
||||
'elseif',
|
||||
'end',
|
||||
'exit',
|
||||
'filter',
|
||||
'finally',
|
||||
'for',
|
||||
'foreach',
|
||||
'from',
|
||||
'function',
|
||||
'if',
|
||||
'in',
|
||||
'param',
|
||||
'process',
|
||||
'return',
|
||||
'switch',
|
||||
'throw',
|
||||
'trap',
|
||||
'try',
|
||||
'until',
|
||||
'using',
|
||||
'var',
|
||||
'while',
|
||||
'workflow',
|
||||
'parallel',
|
||||
'sequence',
|
||||
'inlinescript',
|
||||
'configuration',
|
||||
],
|
||||
helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,
|
||||
symbols: /[=><!~?&%|+\-*\/\^;\.,]+/,
|
||||
escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_][\w-]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/^:\w*/, 'metatag'],
|
||||
[
|
||||
/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,
|
||||
'variable',
|
||||
],
|
||||
[/<#/, 'comment', '@comment'],
|
||||
[/#.*$/, 'comment'],
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, 'number.hex'],
|
||||
[/\d+?/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/\@"/, 'string', '@herestring."'],
|
||||
[/\@'/, 'string', "@herestring.'"],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'string',
|
||||
'@default': { token: 'string', next: '@string."' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/'/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'string',
|
||||
'@default': { token: 'string', next: "@string.'" },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
string: [
|
||||
[
|
||||
/[^"'\$`]+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/@escapes/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string.escape', next: '@popall' },
|
||||
'@default': 'string.escape',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/`./,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'string.escape.invalid', next: '@popall' },
|
||||
'@default': 'string.escape.invalid',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\$[\w]+$/,
|
||||
{
|
||||
cases: {
|
||||
'$S2=="': { token: 'variable', next: '@popall' },
|
||||
'@default': { token: 'string', next: '@popall' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/\$[\w]+/,
|
||||
{ cases: { '$S2=="': 'variable', '@default': 'string' } },
|
||||
],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': {
|
||||
cases: {
|
||||
'@eos': { token: 'string', next: '@popall' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
herestring: [
|
||||
[
|
||||
/^\s*(["'])@/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[^\$`]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/`./, 'string.escape.invalid'],
|
||||
[
|
||||
/\$[\w]+/,
|
||||
{ cases: { '$S2=="': 'variable', '@default': 'string' } },
|
||||
],
|
||||
],
|
||||
comment: [
|
||||
[/[^#\.]+/, 'comment'],
|
||||
[/#>/, 'comment', '@pop'],
|
||||
[/(\.)(@helpKeywords)(?!\w)/, { token: 'comment.keyword.$2' }],
|
||||
[/[\.#]/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,248 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[7637],
|
||||
{
|
||||
57637: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => o, language: () => s });
|
||||
var o = {
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
tokenPostfix: '.tcl',
|
||||
specialFunctions: [
|
||||
'set',
|
||||
'unset',
|
||||
'rename',
|
||||
'variable',
|
||||
'proc',
|
||||
'coroutine',
|
||||
'foreach',
|
||||
'incr',
|
||||
'append',
|
||||
'lappend',
|
||||
'linsert',
|
||||
'lreplace',
|
||||
],
|
||||
mainFunctions: [
|
||||
'if',
|
||||
'then',
|
||||
'elseif',
|
||||
'else',
|
||||
'case',
|
||||
'switch',
|
||||
'while',
|
||||
'for',
|
||||
'break',
|
||||
'continue',
|
||||
'return',
|
||||
'package',
|
||||
'namespace',
|
||||
'catch',
|
||||
'exit',
|
||||
'eval',
|
||||
'expr',
|
||||
'uplevel',
|
||||
'upvar',
|
||||
],
|
||||
builtinFunctions: [
|
||||
'file',
|
||||
'info',
|
||||
'concat',
|
||||
'join',
|
||||
'lindex',
|
||||
'list',
|
||||
'llength',
|
||||
'lrange',
|
||||
'lsearch',
|
||||
'lsort',
|
||||
'split',
|
||||
'array',
|
||||
'parray',
|
||||
'binary',
|
||||
'format',
|
||||
'regexp',
|
||||
'regsub',
|
||||
'scan',
|
||||
'string',
|
||||
'subst',
|
||||
'dict',
|
||||
'cd',
|
||||
'clock',
|
||||
'exec',
|
||||
'glob',
|
||||
'pid',
|
||||
'pwd',
|
||||
'close',
|
||||
'eof',
|
||||
'fblocked',
|
||||
'fconfigure',
|
||||
'fcopy',
|
||||
'fileevent',
|
||||
'flush',
|
||||
'gets',
|
||||
'open',
|
||||
'puts',
|
||||
'read',
|
||||
'seek',
|
||||
'socket',
|
||||
'tell',
|
||||
'interp',
|
||||
'after',
|
||||
'auto_execok',
|
||||
'auto_load',
|
||||
'auto_mkindex',
|
||||
'auto_reset',
|
||||
'bgerror',
|
||||
'error',
|
||||
'global',
|
||||
'history',
|
||||
'load',
|
||||
'source',
|
||||
'time',
|
||||
'trace',
|
||||
'unknown',
|
||||
'unset',
|
||||
'update',
|
||||
'vwait',
|
||||
'winfo',
|
||||
'wm',
|
||||
'bind',
|
||||
'event',
|
||||
'pack',
|
||||
'place',
|
||||
'grid',
|
||||
'font',
|
||||
'bell',
|
||||
'clipboard',
|
||||
'destroy',
|
||||
'focus',
|
||||
'grab',
|
||||
'lower',
|
||||
'option',
|
||||
'raise',
|
||||
'selection',
|
||||
'send',
|
||||
'tk',
|
||||
'tkwait',
|
||||
'tk_bisque',
|
||||
'tk_focusNext',
|
||||
'tk_focusPrev',
|
||||
'tk_focusFollowsMouse',
|
||||
'tk_popup',
|
||||
'tk_setPalette',
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
brackets: [
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
],
|
||||
escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@specialFunctions': {
|
||||
token: 'keyword.flow',
|
||||
next: '@specialFunc',
|
||||
},
|
||||
'@mainFunctions': 'keyword',
|
||||
'@builtinFunctions': 'variable',
|
||||
'@default': 'operator.scss',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\s+\-+(?!\d|\.)\w*|{\*}/, 'metatag'],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/@symbols/, 'operator'],
|
||||
[
|
||||
/\$+(?:\:\:)?\{/,
|
||||
{ token: 'identifier', next: '@nestedVariable' },
|
||||
],
|
||||
[/@variables/, 'type.identifier'],
|
||||
[/\.(?!\d|\.)[\w\-]*/, 'operator.sql'],
|
||||
[/\d+(\.\d+)?/, 'number'],
|
||||
[/\d+/, 'number'],
|
||||
[/;/, 'delimiter'],
|
||||
[
|
||||
/"/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@dstring' },
|
||||
],
|
||||
[
|
||||
/'/,
|
||||
{ token: 'string.quote', bracket: '@open', next: '@sstring' },
|
||||
],
|
||||
],
|
||||
dstring: [
|
||||
[/\[/, { token: '@brackets', next: '@nestedCall' }],
|
||||
[
|
||||
/\$+(?:\:\:)?\{/,
|
||||
{ token: 'identifier', next: '@nestedVariable' },
|
||||
],
|
||||
[/@variables/, 'type.identifier'],
|
||||
[/[^\\$\[\]"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
sstring: [
|
||||
[/\[/, { token: '@brackets', next: '@nestedCall' }],
|
||||
[
|
||||
/\$+(?:\:\:)?\{/,
|
||||
{ token: 'identifier', next: '@nestedVariable' },
|
||||
],
|
||||
[/@variables/, 'type.identifier'],
|
||||
[/[^\\$\[\]']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/'/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/#.*\\$/, { token: 'comment', next: '@newlineComment' }],
|
||||
[/#.*(?!\\)$/, 'comment'],
|
||||
],
|
||||
newlineComment: [
|
||||
[/.*\\$/, 'comment'],
|
||||
[/.*(?!\\)$/, { token: 'comment', next: '@pop' }],
|
||||
],
|
||||
nestedVariable: [
|
||||
[/[^\{\}\$]+/, 'type.identifier'],
|
||||
[/\}/, { token: 'identifier', next: '@pop' }],
|
||||
],
|
||||
nestedCall: [
|
||||
[/\[/, { token: '@brackets', next: '@nestedCall' }],
|
||||
[/\]/, { token: '@brackets', next: '@pop' }],
|
||||
{ include: 'root' },
|
||||
],
|
||||
specialFunc: [
|
||||
[/"/, { token: 'string', next: '@dstring' }],
|
||||
[/'/, { token: 'string', next: '@sstring' }],
|
||||
[/\S+/, { token: 'type', next: '@pop' }],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-1363
File diff suppressed because it is too large
Load Diff
@@ -1,516 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[7835],
|
||||
{
|
||||
47835: (e, t, p) => {
|
||||
'use strict';
|
||||
p.r(t), p.d(t, { conf: () => n, language: () => i });
|
||||
var n = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { lineComment: '//', blockComment: ['/*', '*/'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}', notIn: ['string'] },
|
||||
{ open: '[', close: ']', notIn: ['string'] },
|
||||
{ open: '(', close: ')', notIn: ['string'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*(#|//)region\\b'),
|
||||
end: new RegExp('^\\s*(#|//)endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{ token: '@rematch', switchTo: '@phpInSimpleState.root' },
|
||||
],
|
||||
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
||||
[/<!--/, 'comment.html', '@comment'],
|
||||
[
|
||||
/(<)(\w+)(\/>)/,
|
||||
['delimiter.html', 'tag.html', 'delimiter.html'],
|
||||
],
|
||||
[
|
||||
/(<)(script)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@script' }],
|
||||
],
|
||||
[
|
||||
/(<)(style)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@style' }],
|
||||
],
|
||||
[
|
||||
/(<)([:\w]+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[
|
||||
/(<\/)(\w+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[/</, 'delimiter.html'],
|
||||
[/[^<]+/],
|
||||
],
|
||||
doctype: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{ token: '@rematch', switchTo: '@phpInSimpleState.comment' },
|
||||
],
|
||||
[/[^>]+/, 'metatag.content.html'],
|
||||
[/>/, 'metatag.html', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{ token: '@rematch', switchTo: '@phpInSimpleState.comment' },
|
||||
],
|
||||
[/-->/, 'comment.html', '@pop'],
|
||||
[/[^-]+/, 'comment.content.html'],
|
||||
[/./, 'comment.content.html'],
|
||||
],
|
||||
otherTag: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{ token: '@rematch', switchTo: '@phpInSimpleState.otherTag' },
|
||||
],
|
||||
[/\/?>/, 'delimiter.html', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
],
|
||||
script: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{ token: '@rematch', switchTo: '@phpInSimpleState.script' },
|
||||
],
|
||||
[/type/, 'attribute.name', '@scriptAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(script\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
scriptAfterType: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInSimpleState.scriptAfterType',
|
||||
},
|
||||
],
|
||||
[/=/, 'delimiter', '@scriptAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptAfterTypeEquals: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInSimpleState.scriptAfterTypeEquals',
|
||||
},
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptWithCustomType: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInSimpleState.scriptWithCustomType.$S2',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptEmbedded: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInEmbeddedState.scriptEmbedded.$S2',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[
|
||||
/<\/script/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
],
|
||||
style: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{ token: '@rematch', switchTo: '@phpInSimpleState.style' },
|
||||
],
|
||||
[/type/, 'attribute.name', '@styleAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(style\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
styleAfterType: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInSimpleState.styleAfterType',
|
||||
},
|
||||
],
|
||||
[/=/, 'delimiter', '@styleAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleAfterTypeEquals: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInSimpleState.styleAfterTypeEquals',
|
||||
},
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleWithCustomType: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInSimpleState.styleWithCustomType.$S2',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleEmbedded: [
|
||||
[
|
||||
/<\?((php)|=)?/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@phpInEmbeddedState.styleEmbedded.$S2',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
],
|
||||
[
|
||||
/<\/style/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
],
|
||||
phpInSimpleState: [
|
||||
[/<\?((php)|=)?/, 'metatag.php'],
|
||||
[/\?>/, { token: 'metatag.php', switchTo: '@$S2.$S3' }],
|
||||
{ include: 'phpRoot' },
|
||||
],
|
||||
phpInEmbeddedState: [
|
||||
[/<\?((php)|=)?/, 'metatag.php'],
|
||||
[
|
||||
/\?>/,
|
||||
{
|
||||
token: 'metatag.php',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3',
|
||||
},
|
||||
],
|
||||
{ include: 'phpRoot' },
|
||||
],
|
||||
phpRoot: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@phpKeywords': { token: 'keyword.php' },
|
||||
'@phpCompileTimeConstants': { token: 'constant.php' },
|
||||
'@default': 'identifier.php',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/[$a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@phpPreDefinedVariables': {
|
||||
token: 'variable.predefined.php',
|
||||
},
|
||||
'@default': 'variable.php',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[{}]/, 'delimiter.bracket.php'],
|
||||
[/[\[\]]/, 'delimiter.array.php'],
|
||||
[/[()]/, 'delimiter.parenthesis.php'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/(#|\/\/)$/, 'comment.php'],
|
||||
[/(#|\/\/)/, 'comment.php', '@phpLineComment'],
|
||||
[/\/\*/, 'comment.php', '@phpComment'],
|
||||
[/"/, 'string.php', '@phpDoubleQuoteString'],
|
||||
[/'/, 'string.php', '@phpSingleQuoteString'],
|
||||
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, 'delimiter.php'],
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float.php'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float.php'],
|
||||
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, 'number.hex.php'],
|
||||
[/0[0-7']*[0-7]/, 'number.octal.php'],
|
||||
[/0[bB][0-1']*[0-1]/, 'number.binary.php'],
|
||||
[/\d[\d']*/, 'number.php'],
|
||||
[/\d/, 'number.php'],
|
||||
],
|
||||
phpComment: [
|
||||
[/\*\//, 'comment.php', '@pop'],
|
||||
[/[^*]+/, 'comment.php'],
|
||||
[/./, 'comment.php'],
|
||||
],
|
||||
phpLineComment: [
|
||||
[/\?>/, { token: '@rematch', next: '@pop' }],
|
||||
[/.$/, 'comment.php', '@pop'],
|
||||
[/[^?]+$/, 'comment.php', '@pop'],
|
||||
[/[^?]+/, 'comment.php'],
|
||||
[/./, 'comment.php'],
|
||||
],
|
||||
phpDoubleQuoteString: [
|
||||
[/[^\\"]+/, 'string.php'],
|
||||
[/@escapes/, 'string.escape.php'],
|
||||
[/\\./, 'string.escape.invalid.php'],
|
||||
[/"/, 'string.php', '@pop'],
|
||||
],
|
||||
phpSingleQuoteString: [
|
||||
[/[^\\']+/, 'string.php'],
|
||||
[/@escapes/, 'string.escape.php'],
|
||||
[/\\./, 'string.escape.invalid.php'],
|
||||
[/'/, 'string.php', '@pop'],
|
||||
],
|
||||
},
|
||||
phpKeywords: [
|
||||
'abstract',
|
||||
'and',
|
||||
'array',
|
||||
'as',
|
||||
'break',
|
||||
'callable',
|
||||
'case',
|
||||
'catch',
|
||||
'cfunction',
|
||||
'class',
|
||||
'clone',
|
||||
'const',
|
||||
'continue',
|
||||
'declare',
|
||||
'default',
|
||||
'do',
|
||||
'else',
|
||||
'elseif',
|
||||
'enddeclare',
|
||||
'endfor',
|
||||
'endforeach',
|
||||
'endif',
|
||||
'endswitch',
|
||||
'endwhile',
|
||||
'extends',
|
||||
'false',
|
||||
'final',
|
||||
'for',
|
||||
'foreach',
|
||||
'function',
|
||||
'global',
|
||||
'goto',
|
||||
'if',
|
||||
'implements',
|
||||
'interface',
|
||||
'instanceof',
|
||||
'insteadof',
|
||||
'namespace',
|
||||
'new',
|
||||
'null',
|
||||
'object',
|
||||
'old_function',
|
||||
'or',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'resource',
|
||||
'static',
|
||||
'switch',
|
||||
'throw',
|
||||
'trait',
|
||||
'try',
|
||||
'true',
|
||||
'use',
|
||||
'var',
|
||||
'while',
|
||||
'xor',
|
||||
'die',
|
||||
'echo',
|
||||
'empty',
|
||||
'exit',
|
||||
'eval',
|
||||
'include',
|
||||
'include_once',
|
||||
'isset',
|
||||
'list',
|
||||
'require',
|
||||
'require_once',
|
||||
'return',
|
||||
'print',
|
||||
'unset',
|
||||
'yield',
|
||||
'__construct',
|
||||
],
|
||||
phpCompileTimeConstants: [
|
||||
'__CLASS__',
|
||||
'__DIR__',
|
||||
'__FILE__',
|
||||
'__LINE__',
|
||||
'__NAMESPACE__',
|
||||
'__METHOD__',
|
||||
'__FUNCTION__',
|
||||
'__TRAIT__',
|
||||
],
|
||||
phpPreDefinedVariables: [
|
||||
'$GLOBALS',
|
||||
'$_SERVER',
|
||||
'$_GET',
|
||||
'$_POST',
|
||||
'$_FILES',
|
||||
'$_REQUEST',
|
||||
'$_SESSION',
|
||||
'$_ENV',
|
||||
'$_COOKIE',
|
||||
'$php_errormsg',
|
||||
'$HTTP_RAW_POST_DATA',
|
||||
'$http_response_header',
|
||||
'$argc',
|
||||
'$argv',
|
||||
],
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,676 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[8070],
|
||||
{
|
||||
8070: (e, t, s) => {
|
||||
'use strict';
|
||||
s.r(t), s.d(t, { conf: () => r, language: () => i });
|
||||
var r = {
|
||||
comments: { lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
},
|
||||
i = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.perl',
|
||||
brackets: [
|
||||
{ token: 'delimiter.bracket', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
],
|
||||
keywords: [
|
||||
'__DATA__',
|
||||
'else',
|
||||
'lock',
|
||||
'__END__',
|
||||
'elsif',
|
||||
'lt',
|
||||
'__FILE__',
|
||||
'eq',
|
||||
'__LINE__',
|
||||
'exp',
|
||||
'ne',
|
||||
'sub',
|
||||
'__PACKAGE__',
|
||||
'for',
|
||||
'no',
|
||||
'and',
|
||||
'foreach',
|
||||
'or',
|
||||
'unless',
|
||||
'cmp',
|
||||
'ge',
|
||||
'package',
|
||||
'until',
|
||||
'continue',
|
||||
'gt',
|
||||
'while',
|
||||
'CORE',
|
||||
'if',
|
||||
'xor',
|
||||
'do',
|
||||
'le',
|
||||
'__DIE__',
|
||||
'__WARN__',
|
||||
],
|
||||
builtinFunctions: [
|
||||
'-A',
|
||||
'END',
|
||||
'length',
|
||||
'setpgrp',
|
||||
'-B',
|
||||
'endgrent',
|
||||
'link',
|
||||
'setpriority',
|
||||
'-b',
|
||||
'endhostent',
|
||||
'listen',
|
||||
'setprotoent',
|
||||
'-C',
|
||||
'endnetent',
|
||||
'local',
|
||||
'setpwent',
|
||||
'-c',
|
||||
'endprotoent',
|
||||
'localtime',
|
||||
'setservent',
|
||||
'-d',
|
||||
'endpwent',
|
||||
'log',
|
||||
'setsockopt',
|
||||
'-e',
|
||||
'endservent',
|
||||
'lstat',
|
||||
'shift',
|
||||
'-f',
|
||||
'eof',
|
||||
'map',
|
||||
'shmctl',
|
||||
'-g',
|
||||
'eval',
|
||||
'mkdir',
|
||||
'shmget',
|
||||
'-k',
|
||||
'exec',
|
||||
'msgctl',
|
||||
'shmread',
|
||||
'-l',
|
||||
'exists',
|
||||
'msgget',
|
||||
'shmwrite',
|
||||
'-M',
|
||||
'exit',
|
||||
'msgrcv',
|
||||
'shutdown',
|
||||
'-O',
|
||||
'fcntl',
|
||||
'msgsnd',
|
||||
'sin',
|
||||
'-o',
|
||||
'fileno',
|
||||
'my',
|
||||
'sleep',
|
||||
'-p',
|
||||
'flock',
|
||||
'next',
|
||||
'socket',
|
||||
'-r',
|
||||
'fork',
|
||||
'not',
|
||||
'socketpair',
|
||||
'-R',
|
||||
'format',
|
||||
'oct',
|
||||
'sort',
|
||||
'-S',
|
||||
'formline',
|
||||
'open',
|
||||
'splice',
|
||||
'-s',
|
||||
'getc',
|
||||
'opendir',
|
||||
'split',
|
||||
'-T',
|
||||
'getgrent',
|
||||
'ord',
|
||||
'sprintf',
|
||||
'-t',
|
||||
'getgrgid',
|
||||
'our',
|
||||
'sqrt',
|
||||
'-u',
|
||||
'getgrnam',
|
||||
'pack',
|
||||
'srand',
|
||||
'-w',
|
||||
'gethostbyaddr',
|
||||
'pipe',
|
||||
'stat',
|
||||
'-W',
|
||||
'gethostbyname',
|
||||
'pop',
|
||||
'state',
|
||||
'-X',
|
||||
'gethostent',
|
||||
'pos',
|
||||
'study',
|
||||
'-x',
|
||||
'getlogin',
|
||||
'print',
|
||||
'substr',
|
||||
'-z',
|
||||
'getnetbyaddr',
|
||||
'printf',
|
||||
'symlink',
|
||||
'abs',
|
||||
'getnetbyname',
|
||||
'prototype',
|
||||
'syscall',
|
||||
'accept',
|
||||
'getnetent',
|
||||
'push',
|
||||
'sysopen',
|
||||
'alarm',
|
||||
'getpeername',
|
||||
'quotemeta',
|
||||
'sysread',
|
||||
'atan2',
|
||||
'getpgrp',
|
||||
'rand',
|
||||
'sysseek',
|
||||
'AUTOLOAD',
|
||||
'getppid',
|
||||
'read',
|
||||
'system',
|
||||
'BEGIN',
|
||||
'getpriority',
|
||||
'readdir',
|
||||
'syswrite',
|
||||
'bind',
|
||||
'getprotobyname',
|
||||
'readline',
|
||||
'tell',
|
||||
'binmode',
|
||||
'getprotobynumber',
|
||||
'readlink',
|
||||
'telldir',
|
||||
'bless',
|
||||
'getprotoent',
|
||||
'readpipe',
|
||||
'tie',
|
||||
'break',
|
||||
'getpwent',
|
||||
'recv',
|
||||
'tied',
|
||||
'caller',
|
||||
'getpwnam',
|
||||
'redo',
|
||||
'time',
|
||||
'chdir',
|
||||
'getpwuid',
|
||||
'ref',
|
||||
'times',
|
||||
'CHECK',
|
||||
'getservbyname',
|
||||
'rename',
|
||||
'truncate',
|
||||
'chmod',
|
||||
'getservbyport',
|
||||
'require',
|
||||
'uc',
|
||||
'chomp',
|
||||
'getservent',
|
||||
'reset',
|
||||
'ucfirst',
|
||||
'chop',
|
||||
'getsockname',
|
||||
'return',
|
||||
'umask',
|
||||
'chown',
|
||||
'getsockopt',
|
||||
'reverse',
|
||||
'undef',
|
||||
'chr',
|
||||
'glob',
|
||||
'rewinddir',
|
||||
'UNITCHECK',
|
||||
'chroot',
|
||||
'gmtime',
|
||||
'rindex',
|
||||
'unlink',
|
||||
'close',
|
||||
'goto',
|
||||
'rmdir',
|
||||
'unpack',
|
||||
'closedir',
|
||||
'grep',
|
||||
'say',
|
||||
'unshift',
|
||||
'connect',
|
||||
'hex',
|
||||
'scalar',
|
||||
'untie',
|
||||
'cos',
|
||||
'index',
|
||||
'seek',
|
||||
'use',
|
||||
'crypt',
|
||||
'INIT',
|
||||
'seekdir',
|
||||
'utime',
|
||||
'dbmclose',
|
||||
'int',
|
||||
'select',
|
||||
'values',
|
||||
'dbmopen',
|
||||
'ioctl',
|
||||
'semctl',
|
||||
'vec',
|
||||
'defined',
|
||||
'join',
|
||||
'semget',
|
||||
'wait',
|
||||
'delete',
|
||||
'keys',
|
||||
'semop',
|
||||
'waitpid',
|
||||
'DESTROY',
|
||||
'kill',
|
||||
'send',
|
||||
'wantarray',
|
||||
'die',
|
||||
'last',
|
||||
'setgrent',
|
||||
'warn',
|
||||
'dump',
|
||||
'lc',
|
||||
'sethostent',
|
||||
'write',
|
||||
'each',
|
||||
'lcfirst',
|
||||
'setnetent',
|
||||
],
|
||||
builtinFileHandlers: [
|
||||
'ARGV',
|
||||
'STDERR',
|
||||
'STDOUT',
|
||||
'ARGVOUT',
|
||||
'STDIN',
|
||||
'ENV',
|
||||
],
|
||||
builtinVariables: [
|
||||
'$!',
|
||||
'$^RE_TRIE_MAXBUF',
|
||||
'$LAST_REGEXP_CODE_RESULT',
|
||||
'$"',
|
||||
'$^S',
|
||||
'$LIST_SEPARATOR',
|
||||
'$#',
|
||||
'$^T',
|
||||
'$MATCH',
|
||||
'$$',
|
||||
'$^TAINT',
|
||||
'$MULTILINE_MATCHING',
|
||||
'$%',
|
||||
'$^UNICODE',
|
||||
'$NR',
|
||||
'$&',
|
||||
'$^UTF8LOCALE',
|
||||
'$OFMT',
|
||||
"$'",
|
||||
'$^V',
|
||||
'$OFS',
|
||||
'$(',
|
||||
'$^W',
|
||||
'$ORS',
|
||||
'$)',
|
||||
'$^WARNING_BITS',
|
||||
'$OS_ERROR',
|
||||
'$*',
|
||||
'$^WIDE_SYSTEM_CALLS',
|
||||
'$OSNAME',
|
||||
'$+',
|
||||
'$^X',
|
||||
'$OUTPUT_AUTO_FLUSH',
|
||||
'$,',
|
||||
'$_',
|
||||
'$OUTPUT_FIELD_SEPARATOR',
|
||||
'$-',
|
||||
'$`',
|
||||
'$OUTPUT_RECORD_SEPARATOR',
|
||||
'$.',
|
||||
'$a',
|
||||
'$PERL_VERSION',
|
||||
'$/',
|
||||
'$ACCUMULATOR',
|
||||
'$PERLDB',
|
||||
'$0',
|
||||
'$ARG',
|
||||
'$PID',
|
||||
'$:',
|
||||
'$ARGV',
|
||||
'$POSTMATCH',
|
||||
'$;',
|
||||
'$b',
|
||||
'$PREMATCH',
|
||||
'$<',
|
||||
'$BASETIME',
|
||||
'$PROCESS_ID',
|
||||
'$=',
|
||||
'$CHILD_ERROR',
|
||||
'$PROGRAM_NAME',
|
||||
'$>',
|
||||
'$COMPILING',
|
||||
'$REAL_GROUP_ID',
|
||||
'$?',
|
||||
'$DEBUGGING',
|
||||
'$REAL_USER_ID',
|
||||
'$@',
|
||||
'$EFFECTIVE_GROUP_ID',
|
||||
'$RS',
|
||||
'$[',
|
||||
'$EFFECTIVE_USER_ID',
|
||||
'$SUBSCRIPT_SEPARATOR',
|
||||
'$\\',
|
||||
'$EGID',
|
||||
'$SUBSEP',
|
||||
'$]',
|
||||
'$ERRNO',
|
||||
'$SYSTEM_FD_MAX',
|
||||
'$^',
|
||||
'$EUID',
|
||||
'$UID',
|
||||
'$^A',
|
||||
'$EVAL_ERROR',
|
||||
'$WARNING',
|
||||
'$^C',
|
||||
'$EXCEPTIONS_BEING_CAUGHT',
|
||||
'$|',
|
||||
'$^CHILD_ERROR_NATIVE',
|
||||
'$EXECUTABLE_NAME',
|
||||
'$~',
|
||||
'$^D',
|
||||
'$EXTENDED_OS_ERROR',
|
||||
'%!',
|
||||
'$^E',
|
||||
'$FORMAT_FORMFEED',
|
||||
'%^H',
|
||||
'$^ENCODING',
|
||||
'$FORMAT_LINE_BREAK_CHARACTERS',
|
||||
'%ENV',
|
||||
'$^F',
|
||||
'$FORMAT_LINES_LEFT',
|
||||
'%INC',
|
||||
'$^H',
|
||||
'$FORMAT_LINES_PER_PAGE',
|
||||
'%OVERLOAD',
|
||||
'$^I',
|
||||
'$FORMAT_NAME',
|
||||
'%SIG',
|
||||
'$^L',
|
||||
'$FORMAT_PAGE_NUMBER',
|
||||
'@+',
|
||||
'$^M',
|
||||
'$FORMAT_TOP_NAME',
|
||||
'@-',
|
||||
'$^N',
|
||||
'$GID',
|
||||
'@_',
|
||||
'$^O',
|
||||
'$INPLACE_EDIT',
|
||||
'@ARGV',
|
||||
'$^OPEN',
|
||||
'$INPUT_LINE_NUMBER',
|
||||
'@INC',
|
||||
'$^P',
|
||||
'$INPUT_RECORD_SEPARATOR',
|
||||
'@LAST_MATCH_START',
|
||||
'$^R',
|
||||
'$LAST_MATCH_END',
|
||||
'$^RE_DEBUG_FLAGS',
|
||||
'$LAST_PAREN_MATCH',
|
||||
],
|
||||
symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
|
||||
quoteLikeOps: ['qr', 'm', 's', 'q', 'qq', 'qx', 'qw', 'tr', 'y'],
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/[a-zA-Z\-_][\w\-_]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@builtinFunctions': 'type.identifier',
|
||||
'@builtinFileHandlers': 'variable.predefined',
|
||||
'@quoteLikeOps': {
|
||||
token: '@rematch',
|
||||
next: 'quotedConstructs',
|
||||
},
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,
|
||||
{
|
||||
cases: {
|
||||
'@builtinVariables': 'variable.predefined',
|
||||
'@default': 'variable',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@strings' },
|
||||
{ include: '@dblStrings' },
|
||||
{ include: '@perldoc' },
|
||||
{ include: '@heredoc' },
|
||||
[/[{}\[\]()]/, '@brackets'],
|
||||
[
|
||||
/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,
|
||||
'regexp',
|
||||
],
|
||||
[/@symbols/, 'operators'],
|
||||
{ include: '@numbers' },
|
||||
[/[,;]/, 'delimiter'],
|
||||
],
|
||||
whitespace: [
|
||||
[/\s+/, 'white'],
|
||||
[/(^#!.*$)/, 'metatag'],
|
||||
[/(^#.*$)/, 'comment'],
|
||||
],
|
||||
numbers: [
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
],
|
||||
strings: [[/'/, 'string', '@stringBody']],
|
||||
stringBody: [
|
||||
[/'/, 'string', '@popall'],
|
||||
[/\\'/, 'string.escape'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
dblStrings: [[/"/, 'string', '@dblStringBody']],
|
||||
dblStringBody: [
|
||||
[/"/, 'string', '@popall'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
{ include: '@variables' },
|
||||
[/./, 'string'],
|
||||
],
|
||||
quotedConstructs: [
|
||||
[
|
||||
/(q|qw|tr|y)\s*\(/,
|
||||
{ token: 'string.delim', switchTo: '@qstring.(.)' },
|
||||
],
|
||||
[
|
||||
/(q|qw|tr|y)\s*\[/,
|
||||
{ token: 'string.delim', switchTo: '@qstring.[.]' },
|
||||
],
|
||||
[
|
||||
/(q|qw|tr|y)\s*\{/,
|
||||
{ token: 'string.delim', switchTo: '@qstring.{.}' },
|
||||
],
|
||||
[
|
||||
/(q|qw|tr|y)\s*</,
|
||||
{ token: 'string.delim', switchTo: '@qstring.<.>' },
|
||||
],
|
||||
[
|
||||
/(q|qw|tr|y)#/,
|
||||
{ token: 'string.delim', switchTo: '@qstring.#.#' },
|
||||
],
|
||||
[
|
||||
/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,
|
||||
{ token: 'string.delim', switchTo: '@qstring.$2.$2' },
|
||||
],
|
||||
[
|
||||
/(q|qw|tr|y)\s+(\w)/,
|
||||
{ token: 'string.delim', switchTo: '@qstring.$2.$2' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)\s*\(/,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.(.)' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)\s*\[/,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.[.]' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)\s*\{/,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.{.}' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)\s*</,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.<.>' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)#/,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.#.#' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.$2.$2' },
|
||||
],
|
||||
[
|
||||
/(qr|m|s)\s+(\w)/,
|
||||
{ token: 'regexp.delim', switchTo: '@qregexp.$2.$2' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)\s*\(/,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.(.)' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)\s*\[/,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.[.]' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)\s*\{/,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.{.}' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)\s*</,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.<.>' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)#/,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.#.#' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)\s*([^A-Za-z0-9#\s])/,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.$2.$2' },
|
||||
],
|
||||
[
|
||||
/(qq|qx)\s+(\w)/,
|
||||
{ token: 'string.delim', switchTo: '@qqstring.$2.$2' },
|
||||
],
|
||||
],
|
||||
qstring: [
|
||||
[/\\./, 'string.escape'],
|
||||
[
|
||||
/./,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S3': { token: 'string.delim', next: '@pop' },
|
||||
'$#==$S2': { token: 'string.delim', next: '@push' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
qregexp: [
|
||||
{ include: '@variables' },
|
||||
[/\\./, 'regexp.escape'],
|
||||
[
|
||||
/./,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S3': {
|
||||
token: 'regexp.delim',
|
||||
next: '@regexpModifiers',
|
||||
},
|
||||
'$#==$S2': { token: 'regexp.delim', next: '@push' },
|
||||
'@default': 'regexp',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
regexpModifiers: [
|
||||
[
|
||||
/[msixpodualngcer]+/,
|
||||
{ token: 'regexp.modifier', next: '@popall' },
|
||||
],
|
||||
],
|
||||
qqstring: [{ include: '@variables' }, { include: '@qstring' }],
|
||||
heredoc: [
|
||||
[
|
||||
/<<\s*['"`]?([\w\-]+)['"`]?/,
|
||||
{ token: 'string.heredoc.delimiter', next: '@heredocBody.$1' },
|
||||
],
|
||||
],
|
||||
heredocBody: [
|
||||
[
|
||||
/^([\w\-]+)$/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': [
|
||||
{ token: 'string.heredoc.delimiter', next: '@popall' },
|
||||
],
|
||||
'@default': 'string.heredoc',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/./, 'string.heredoc'],
|
||||
],
|
||||
perldoc: [[/^=\w/, 'comment.doc', '@perldocBody']],
|
||||
perldocBody: [
|
||||
[/^=cut\b/, 'type.identifier', '@popall'],
|
||||
[/./, 'comment.doc'],
|
||||
],
|
||||
variables: [
|
||||
[/\$\w+/, 'variable'],
|
||||
[/@\w+/, 'variable'],
|
||||
[/%\w+/, 'variable'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,151 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[8084],
|
||||
{
|
||||
98084: (e, o, n) => {
|
||||
'use strict';
|
||||
n.r(o), n.d(o, { conf: () => t, language: () => s });
|
||||
var t = {
|
||||
comments: { lineComment: '//', blockComment: ['(*', '*)'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['<', '>'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
},
|
||||
s = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.pascaligo',
|
||||
ignoreCase: !0,
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
keywords: [
|
||||
'begin',
|
||||
'block',
|
||||
'case',
|
||||
'const',
|
||||
'else',
|
||||
'end',
|
||||
'fail',
|
||||
'for',
|
||||
'from',
|
||||
'function',
|
||||
'if',
|
||||
'is',
|
||||
'nil',
|
||||
'of',
|
||||
'remove',
|
||||
'return',
|
||||
'skip',
|
||||
'then',
|
||||
'type',
|
||||
'var',
|
||||
'while',
|
||||
'with',
|
||||
'option',
|
||||
'None',
|
||||
'transaction',
|
||||
],
|
||||
typeKeywords: [
|
||||
'bool',
|
||||
'int',
|
||||
'list',
|
||||
'map',
|
||||
'nat',
|
||||
'record',
|
||||
'string',
|
||||
'unit',
|
||||
'address',
|
||||
'map',
|
||||
'mtz',
|
||||
'xtz',
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'<=',
|
||||
'>=',
|
||||
'<>',
|
||||
':',
|
||||
':=',
|
||||
'and',
|
||||
'mod',
|
||||
'or',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'@',
|
||||
'&',
|
||||
'^',
|
||||
'%',
|
||||
],
|
||||
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[
|
||||
/[a-zA-Z_][\w]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{ cases: { '@operators': 'delimiter', '@default': '' } },
|
||||
],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\$[0-9a-fA-F]{1,16}/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'/, 'string', '@string'],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/'/, 'string.invalid'],
|
||||
[/\#\d+/, 'string'],
|
||||
],
|
||||
comment: [
|
||||
[/[^\(\*]+/, 'comment'],
|
||||
[/\*\)/, 'comment', '@pop'],
|
||||
[/\(\*/, 'comment'],
|
||||
],
|
||||
string: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, { token: 'string.quote', bracket: '@close', next: '@pop' }],
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\(\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,516 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[8180],
|
||||
{
|
||||
48180: (e, t, n) => {
|
||||
'use strict';
|
||||
n.r(t), n.d(t, { conf: () => i, language: () => o });
|
||||
var i = {
|
||||
comments: { lineComment: '//', blockComment: ['(*', '*)'] },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['<', '>'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] },
|
||||
{ open: '{', close: '}', notIn: ['string', 'comment'] },
|
||||
{ open: '[', close: ']', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')', notIn: ['string', 'comment'] },
|
||||
],
|
||||
},
|
||||
o = {
|
||||
tokenPostfix: '.pats',
|
||||
defaultToken: 'invalid',
|
||||
keywords: [
|
||||
'abstype',
|
||||
'abst0ype',
|
||||
'absprop',
|
||||
'absview',
|
||||
'absvtype',
|
||||
'absviewtype',
|
||||
'absvt0ype',
|
||||
'absviewt0ype',
|
||||
'as',
|
||||
'and',
|
||||
'assume',
|
||||
'begin',
|
||||
'classdec',
|
||||
'datasort',
|
||||
'datatype',
|
||||
'dataprop',
|
||||
'dataview',
|
||||
'datavtype',
|
||||
'dataviewtype',
|
||||
'do',
|
||||
'end',
|
||||
'extern',
|
||||
'extype',
|
||||
'extvar',
|
||||
'exception',
|
||||
'fn',
|
||||
'fnx',
|
||||
'fun',
|
||||
'prfn',
|
||||
'prfun',
|
||||
'praxi',
|
||||
'castfn',
|
||||
'if',
|
||||
'then',
|
||||
'else',
|
||||
'ifcase',
|
||||
'in',
|
||||
'infix',
|
||||
'infixl',
|
||||
'infixr',
|
||||
'prefix',
|
||||
'postfix',
|
||||
'implmnt',
|
||||
'implement',
|
||||
'primplmnt',
|
||||
'primplement',
|
||||
'import',
|
||||
'let',
|
||||
'local',
|
||||
'macdef',
|
||||
'macrodef',
|
||||
'nonfix',
|
||||
'symelim',
|
||||
'symintr',
|
||||
'overload',
|
||||
'of',
|
||||
'op',
|
||||
'rec',
|
||||
'sif',
|
||||
'scase',
|
||||
'sortdef',
|
||||
'sta',
|
||||
'stacst',
|
||||
'stadef',
|
||||
'static',
|
||||
'staload',
|
||||
'dynload',
|
||||
'try',
|
||||
'tkindef',
|
||||
'typedef',
|
||||
'propdef',
|
||||
'viewdef',
|
||||
'vtypedef',
|
||||
'viewtypedef',
|
||||
'prval',
|
||||
'var',
|
||||
'prvar',
|
||||
'when',
|
||||
'where',
|
||||
'with',
|
||||
'withtype',
|
||||
'withprop',
|
||||
'withview',
|
||||
'withvtype',
|
||||
'withviewtype',
|
||||
],
|
||||
keywords_dlr: [
|
||||
'$delay',
|
||||
'$ldelay',
|
||||
'$arrpsz',
|
||||
'$arrptrsize',
|
||||
'$d2ctype',
|
||||
'$effmask',
|
||||
'$effmask_ntm',
|
||||
'$effmask_exn',
|
||||
'$effmask_ref',
|
||||
'$effmask_wrt',
|
||||
'$effmask_all',
|
||||
'$extern',
|
||||
'$extkind',
|
||||
'$extype',
|
||||
'$extype_struct',
|
||||
'$extval',
|
||||
'$extfcall',
|
||||
'$extmcall',
|
||||
'$literal',
|
||||
'$myfilename',
|
||||
'$mylocation',
|
||||
'$myfunction',
|
||||
'$lst',
|
||||
'$lst_t',
|
||||
'$lst_vt',
|
||||
'$list',
|
||||
'$list_t',
|
||||
'$list_vt',
|
||||
'$rec',
|
||||
'$rec_t',
|
||||
'$rec_vt',
|
||||
'$record',
|
||||
'$record_t',
|
||||
'$record_vt',
|
||||
'$tup',
|
||||
'$tup_t',
|
||||
'$tup_vt',
|
||||
'$tuple',
|
||||
'$tuple_t',
|
||||
'$tuple_vt',
|
||||
'$break',
|
||||
'$continue',
|
||||
'$raise',
|
||||
'$showtype',
|
||||
'$vcopyenv_v',
|
||||
'$vcopyenv_vt',
|
||||
'$tempenver',
|
||||
'$solver_assert',
|
||||
'$solver_verify',
|
||||
],
|
||||
keywords_srp: [
|
||||
'#if',
|
||||
'#ifdef',
|
||||
'#ifndef',
|
||||
'#then',
|
||||
'#elif',
|
||||
'#elifdef',
|
||||
'#elifndef',
|
||||
'#else',
|
||||
'#endif',
|
||||
'#error',
|
||||
'#prerr',
|
||||
'#print',
|
||||
'#assert',
|
||||
'#undef',
|
||||
'#define',
|
||||
'#include',
|
||||
'#require',
|
||||
'#pragma',
|
||||
'#codegen2',
|
||||
'#codegen3',
|
||||
],
|
||||
irregular_keyword_list: [
|
||||
'val+',
|
||||
'val-',
|
||||
'val',
|
||||
'case+',
|
||||
'case-',
|
||||
'case',
|
||||
'addr@',
|
||||
'addr',
|
||||
'fold@',
|
||||
'free@',
|
||||
'fix@',
|
||||
'fix',
|
||||
'lam@',
|
||||
'lam',
|
||||
'llam@',
|
||||
'llam',
|
||||
'viewt@ype+',
|
||||
'viewt@ype-',
|
||||
'viewt@ype',
|
||||
'viewtype+',
|
||||
'viewtype-',
|
||||
'viewtype',
|
||||
'view+',
|
||||
'view-',
|
||||
'view@',
|
||||
'view',
|
||||
'type+',
|
||||
'type-',
|
||||
'type',
|
||||
'vtype+',
|
||||
'vtype-',
|
||||
'vtype',
|
||||
'vt@ype+',
|
||||
'vt@ype-',
|
||||
'vt@ype',
|
||||
'viewt@ype+',
|
||||
'viewt@ype-',
|
||||
'viewt@ype',
|
||||
'viewtype+',
|
||||
'viewtype-',
|
||||
'viewtype',
|
||||
'prop+',
|
||||
'prop-',
|
||||
'prop',
|
||||
'type+',
|
||||
'type-',
|
||||
'type',
|
||||
't@ype',
|
||||
't@ype+',
|
||||
't@ype-',
|
||||
'abst@ype',
|
||||
'abstype',
|
||||
'absviewt@ype',
|
||||
'absvt@ype',
|
||||
'for*',
|
||||
'for',
|
||||
'while*',
|
||||
'while',
|
||||
],
|
||||
keywords_types: [
|
||||
'bool',
|
||||
'double',
|
||||
'byte',
|
||||
'int',
|
||||
'short',
|
||||
'char',
|
||||
'void',
|
||||
'unit',
|
||||
'long',
|
||||
'float',
|
||||
'string',
|
||||
'strptr',
|
||||
],
|
||||
keywords_effects: [
|
||||
'0',
|
||||
'fun',
|
||||
'clo',
|
||||
'prf',
|
||||
'funclo',
|
||||
'cloptr',
|
||||
'cloref',
|
||||
'ref',
|
||||
'ntm',
|
||||
'1',
|
||||
],
|
||||
operators: [
|
||||
'@',
|
||||
'!',
|
||||
'|',
|
||||
'`',
|
||||
':',
|
||||
'$',
|
||||
'.',
|
||||
'=',
|
||||
'#',
|
||||
'~',
|
||||
'..',
|
||||
'...',
|
||||
'=>',
|
||||
'=<>',
|
||||
'=/=>',
|
||||
'=>>',
|
||||
'=/=>>',
|
||||
'<',
|
||||
'>',
|
||||
'><',
|
||||
'.<',
|
||||
'>.',
|
||||
'.<>.',
|
||||
'->',
|
||||
'-<>',
|
||||
],
|
||||
brackets: [
|
||||
{ open: ',(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '`(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '%(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: "'(", close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: "'{", close: '}', token: 'delimiter.parenthesis' },
|
||||
{ open: '@(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '@{', close: '}', token: 'delimiter.brace' },
|
||||
{ open: '@[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '#[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
IDENTFST: /[a-zA-Z_]/,
|
||||
IDENTRST: /[a-zA-Z0-9_'$]/,
|
||||
symbolic: /[%&+-./:=@~`^|*!$#?<>]/,
|
||||
digit: /[0-9]/,
|
||||
digitseq0: /@digit*/,
|
||||
xdigit: /[0-9A-Za-z]/,
|
||||
xdigitseq0: /@xdigit*/,
|
||||
INTSP: /[lLuU]/,
|
||||
FLOATSP: /[fFlL]/,
|
||||
fexponent: /[eE][+-]?[0-9]+/,
|
||||
fexponent_bin: /[pP][+-]?[0-9]+/,
|
||||
deciexp: /\.[0-9]*@fexponent?/,
|
||||
hexiexp: /\.[0-9a-zA-Z]*@fexponent_bin?/,
|
||||
irregular_keywords: /val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,
|
||||
ESCHAR: /[ntvbrfa\\\?'"\(\[\{]/,
|
||||
start: 'root',
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ regex: /[ \t\r\n]+/, action: { token: '' } },
|
||||
{ regex: /\(\*\)/, action: { token: 'invalid' } },
|
||||
{
|
||||
regex: /\(\*/,
|
||||
action: { token: 'comment', next: 'lexing_COMMENT_block_ml' },
|
||||
},
|
||||
{ regex: /\(/, action: '@brackets' },
|
||||
{ regex: /\)/, action: '@brackets' },
|
||||
{ regex: /\[/, action: '@brackets' },
|
||||
{ regex: /\]/, action: '@brackets' },
|
||||
{ regex: /\{/, action: '@brackets' },
|
||||
{ regex: /\}/, action: '@brackets' },
|
||||
{ regex: /,\(/, action: '@brackets' },
|
||||
{ regex: /,/, action: { token: 'delimiter.comma' } },
|
||||
{ regex: /;/, action: { token: 'delimiter.semicolon' } },
|
||||
{ regex: /@\(/, action: '@brackets' },
|
||||
{ regex: /@\[/, action: '@brackets' },
|
||||
{ regex: /@\{/, action: '@brackets' },
|
||||
{
|
||||
regex: /:</,
|
||||
action: { token: 'keyword', next: '@lexing_EFFECT_commaseq0' },
|
||||
},
|
||||
{ regex: /\.@symbolic+/, action: { token: 'identifier.sym' } },
|
||||
{
|
||||
regex: /\.@digit*@fexponent@FLOATSP*/,
|
||||
action: { token: 'number.float' },
|
||||
},
|
||||
{ regex: /\.@digit+/, action: { token: 'number.float' } },
|
||||
{
|
||||
regex: /\$@IDENTFST@IDENTRST*/,
|
||||
action: {
|
||||
cases: {
|
||||
'@keywords_dlr': { token: 'keyword.dlr' },
|
||||
'@default': { token: 'namespace' },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
regex: /\#@IDENTFST@IDENTRST*/,
|
||||
action: {
|
||||
cases: {
|
||||
'@keywords_srp': { token: 'keyword.srp' },
|
||||
'@default': { token: 'identifier' },
|
||||
},
|
||||
},
|
||||
},
|
||||
{ regex: /%\(/, action: { token: 'delimiter.parenthesis' } },
|
||||
{
|
||||
regex: /^%{(#|\^|\$)?/,
|
||||
action: {
|
||||
token: 'keyword',
|
||||
next: '@lexing_EXTCODE',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
},
|
||||
{ regex: /^%}/, action: { token: 'keyword' } },
|
||||
{ regex: /'\(/, action: { token: 'delimiter.parenthesis' } },
|
||||
{ regex: /'\[/, action: { token: 'delimiter.bracket' } },
|
||||
{ regex: /'\{/, action: { token: 'delimiter.brace' } },
|
||||
[
|
||||
/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,
|
||||
['string', 'string.escape', 'string'],
|
||||
],
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/"/, 'string.quote', '@lexing_DQUOTE'],
|
||||
{ regex: /`\(/, action: '@brackets' },
|
||||
{ regex: /\\/, action: { token: 'punctuation' } },
|
||||
{
|
||||
regex: /@irregular_keywords(?!@IDENTRST)/,
|
||||
action: { token: 'keyword' },
|
||||
},
|
||||
{
|
||||
regex: /@IDENTFST@IDENTRST*[<!\[]?/,
|
||||
action: {
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword' },
|
||||
'@keywords_types': { token: 'type' },
|
||||
'@default': { token: 'identifier' },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
regex: /\/\/\/\//,
|
||||
action: { token: 'comment', next: '@lexing_COMMENT_rest' },
|
||||
},
|
||||
{ regex: /\/\/.*$/, action: { token: 'comment' } },
|
||||
{
|
||||
regex: /\/\*/,
|
||||
action: { token: 'comment', next: '@lexing_COMMENT_block_c' },
|
||||
},
|
||||
{
|
||||
regex: /-<|=</,
|
||||
action: { token: 'keyword', next: '@lexing_EFFECT_commaseq0' },
|
||||
},
|
||||
{
|
||||
regex: /@symbolic+/,
|
||||
action: {
|
||||
cases: { '@operators': 'keyword', '@default': 'operator' },
|
||||
},
|
||||
},
|
||||
{
|
||||
regex: /0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,
|
||||
action: { token: 'number.float' },
|
||||
},
|
||||
{
|
||||
regex: /0[xX]@xdigit+@INTSP*/,
|
||||
action: { token: 'number.hex' },
|
||||
},
|
||||
{
|
||||
regex: /0[0-7]+(?![0-9])@INTSP*/,
|
||||
action: { token: 'number.octal' },
|
||||
},
|
||||
{
|
||||
regex: /@digit+(@fexponent|@deciexp)@FLOATSP*/,
|
||||
action: { token: 'number.float' },
|
||||
},
|
||||
{
|
||||
regex: /@digit@digitseq0@INTSP*/,
|
||||
action: { token: 'number.decimal' },
|
||||
},
|
||||
{ regex: /@digit+@INTSP*/, action: { token: 'number' } },
|
||||
],
|
||||
lexing_COMMENT_block_ml: [
|
||||
[/[^\(\*]+/, 'comment'],
|
||||
[/\(\*/, 'comment', '@push'],
|
||||
[/\(\*/, 'comment.invalid'],
|
||||
[/\*\)/, 'comment', '@pop'],
|
||||
[/\*/, 'comment'],
|
||||
],
|
||||
lexing_COMMENT_block_c: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment'],
|
||||
],
|
||||
lexing_COMMENT_rest: [
|
||||
[/$/, 'comment', '@pop'],
|
||||
[/.*/, 'comment'],
|
||||
],
|
||||
lexing_EFFECT_commaseq0: [
|
||||
{
|
||||
regex: /@IDENTFST@IDENTRST+|@digit+/,
|
||||
action: {
|
||||
cases: {
|
||||
'@keywords_effects': { token: 'type.effect' },
|
||||
'@default': { token: 'identifier' },
|
||||
},
|
||||
},
|
||||
},
|
||||
{ regex: /,/, action: { token: 'punctuation' } },
|
||||
{ regex: />/, action: { token: '@rematch', next: '@pop' } },
|
||||
],
|
||||
lexing_EXTCODE: [
|
||||
{
|
||||
regex: /^%}/,
|
||||
action: {
|
||||
token: '@rematch',
|
||||
next: '@pop',
|
||||
nextEmbedded: '@pop',
|
||||
},
|
||||
},
|
||||
{ regex: /[^%]+/, action: '' },
|
||||
],
|
||||
lexing_DQUOTE: [
|
||||
{ regex: /"/, action: { token: 'string.quote', next: '@pop' } },
|
||||
{
|
||||
regex: /(\{\$)(@IDENTFST@IDENTRST*)(\})/,
|
||||
action: [
|
||||
{ token: 'string.escape' },
|
||||
{ token: 'identifier' },
|
||||
{ token: 'string.escape' },
|
||||
],
|
||||
},
|
||||
{ regex: /\\$/, action: { token: 'string.escape' } },
|
||||
{
|
||||
regex: /\\(@ESCHAR|[xX]@xdigit+|@digit+)/,
|
||||
action: { token: 'string.escape' },
|
||||
},
|
||||
{ regex: /[^\\"]+/, action: { token: 'string' } },
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-1697
File diff suppressed because it is too large
Load Diff
@@ -1,367 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[8424],
|
||||
{
|
||||
98424: (t, e, i) => {
|
||||
'use strict';
|
||||
i.r(e), i.d(e, { conf: () => r, language: () => m });
|
||||
var r = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
comments: { blockComment: ['{#', '#}'] },
|
||||
brackets: [
|
||||
['{#', '#}'],
|
||||
['{%', '%}'],
|
||||
['{{', '}}'],
|
||||
['(', ')'],
|
||||
['[', ']'],
|
||||
['\x3c!--', '--\x3e'],
|
||||
['<', '>'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{# ', close: ' #}' },
|
||||
{ open: '{% ', close: ' %}' },
|
||||
{ open: '{{ ', close: ' }}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' },
|
||||
],
|
||||
},
|
||||
m = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
ignoreCase: !0,
|
||||
keywords: [
|
||||
'apply',
|
||||
'autoescape',
|
||||
'block',
|
||||
'deprecated',
|
||||
'do',
|
||||
'embed',
|
||||
'extends',
|
||||
'flush',
|
||||
'for',
|
||||
'from',
|
||||
'if',
|
||||
'import',
|
||||
'include',
|
||||
'macro',
|
||||
'sandbox',
|
||||
'set',
|
||||
'use',
|
||||
'verbatim',
|
||||
'with',
|
||||
'endapply',
|
||||
'endautoescape',
|
||||
'endblock',
|
||||
'endembed',
|
||||
'endfor',
|
||||
'endif',
|
||||
'endmacro',
|
||||
'endsandbox',
|
||||
'endset',
|
||||
'endwith',
|
||||
'true',
|
||||
'false',
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/\s+/],
|
||||
[/{#/, 'comment.twig', '@commentState'],
|
||||
[/{%[-~]?/, 'delimiter.twig', '@blockState'],
|
||||
[/{{[-~]?/, 'delimiter.twig', '@variableState'],
|
||||
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
||||
[/<!--/, 'comment.html', '@comment'],
|
||||
[
|
||||
/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,
|
||||
['delimiter.html', 'tag.html', '', 'delimiter.html'],
|
||||
],
|
||||
[
|
||||
/(<)(script)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@script' }],
|
||||
],
|
||||
[
|
||||
/(<)(style)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@style' }],
|
||||
],
|
||||
[
|
||||
/(<)((?:[\w\-]+:)?[\w\-]+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[
|
||||
/(<\/)((?:[\w\-]+:)?[\w\-]+)/,
|
||||
['delimiter.html', { token: 'tag.html', next: '@otherTag' }],
|
||||
],
|
||||
[/</, 'delimiter.html'],
|
||||
[/[^<]+/],
|
||||
],
|
||||
commentState: [
|
||||
[/#}/, 'comment.twig', '@pop'],
|
||||
[/./, 'comment.twig'],
|
||||
],
|
||||
blockState: [
|
||||
[/[-~]?%}/, 'delimiter.twig', '@pop'],
|
||||
[/\s+/],
|
||||
[
|
||||
/(verbatim)(\s*)([-~]?%})/,
|
||||
[
|
||||
'keyword.twig',
|
||||
'',
|
||||
{ token: 'delimiter.twig', next: '@rawDataState' },
|
||||
],
|
||||
],
|
||||
{ include: 'expression' },
|
||||
],
|
||||
rawDataState: [
|
||||
[
|
||||
/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
|
||||
[
|
||||
'delimiter.twig',
|
||||
'',
|
||||
'keyword.twig',
|
||||
'',
|
||||
{ token: 'delimiter.twig', next: '@popall' },
|
||||
],
|
||||
],
|
||||
[/./, 'string.twig'],
|
||||
],
|
||||
variableState: [
|
||||
[/[-~]?}}/, 'delimiter.twig', '@pop'],
|
||||
{ include: 'expression' },
|
||||
],
|
||||
stringState: [
|
||||
[/"/, 'string.twig', '@pop'],
|
||||
[/#{\s*/, 'string.twig', '@interpolationState'],
|
||||
[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, 'string.twig'],
|
||||
],
|
||||
interpolationState: [
|
||||
[/}/, 'string.twig', '@pop'],
|
||||
{ include: 'expression' },
|
||||
],
|
||||
expression: [
|
||||
[/\s+/],
|
||||
[/\+|-|\/{1,2}|%|\*{1,2}/, 'operators.twig'],
|
||||
[/(and|or|not|b-and|b-xor|b-or)(\s+)/, ['operators.twig', '']],
|
||||
[/==|!=|<|>|>=|<=/, 'operators.twig'],
|
||||
[/(starts with|ends with|matches)(\s+)/, ['operators.twig', '']],
|
||||
[/(in)(\s+)/, ['operators.twig', '']],
|
||||
[/(is)(\s+)/, ['operators.twig', '']],
|
||||
[/\||~|:|\.{1,2}|\?{1,2}/, 'operators.twig'],
|
||||
[
|
||||
/[^\W\d][\w]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword.twig',
|
||||
'@default': 'variable.twig',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/\d+(\.\d+)?/, 'number.twig'],
|
||||
[/\(|\)|\[|\]|{|}|,/, 'delimiter.twig'],
|
||||
[
|
||||
/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,
|
||||
'string.twig',
|
||||
],
|
||||
[/"/, 'string.twig', '@stringState'],
|
||||
[/=>/, 'operators.twig'],
|
||||
[/=/, 'operators.twig'],
|
||||
],
|
||||
doctype: [
|
||||
[/[^>]+/, 'metatag.content.html'],
|
||||
[/>/, 'metatag.html', '@pop'],
|
||||
],
|
||||
comment: [
|
||||
[/-->/, 'comment.html', '@pop'],
|
||||
[/[^-]+/, 'comment.content.html'],
|
||||
[/./, 'comment.content.html'],
|
||||
],
|
||||
otherTag: [
|
||||
[/\/?>/, 'delimiter.html', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value.html'],
|
||||
[/'([^']*)'/, 'attribute.value.html'],
|
||||
[/[\w\-]+/, 'attribute.name.html'],
|
||||
[/=/, 'delimiter.html'],
|
||||
[/[ \t\r\n]+/],
|
||||
],
|
||||
script: [
|
||||
[/type/, 'attribute.name.html', '@scriptAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value.html'],
|
||||
[/'([^']*)'/, 'attribute.value.html'],
|
||||
[/[\w\-]+/, 'attribute.name.html'],
|
||||
[/=/, 'delimiter.html'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(script\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
scriptAfterType: [
|
||||
[/=/, 'delimiter.html', '@scriptAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptAfterTypeEquals: [
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value.html',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value.html',
|
||||
switchTo: '@scriptWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded',
|
||||
nextEmbedded: 'text/javascript',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptWithCustomType: [
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value.html'],
|
||||
[/'([^']*)'/, 'attribute.value.html'],
|
||||
[/[\w\-]+/, 'attribute.name.html'],
|
||||
[/=/, 'delimiter.html'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
scriptEmbedded: [
|
||||
[
|
||||
/<\/script/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
[/[^<]+/, ''],
|
||||
],
|
||||
style: [
|
||||
[/type/, 'attribute.name.html', '@styleAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value.html'],
|
||||
[/'([^']*)'/, 'attribute.value.html'],
|
||||
[/[\w\-]+/, 'attribute.name.html'],
|
||||
[/=/, 'delimiter.html'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(style\s*)(>)/,
|
||||
[
|
||||
'delimiter.html',
|
||||
'tag.html',
|
||||
{ token: 'delimiter.html', next: '@pop' },
|
||||
],
|
||||
],
|
||||
],
|
||||
styleAfterType: [
|
||||
[/=/, 'delimiter.html', '@styleAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleAfterTypeEquals: [
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value.html',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value.html',
|
||||
switchTo: '@styleWithCustomType.$1',
|
||||
},
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded',
|
||||
nextEmbedded: 'text/css',
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleWithCustomType: [
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.$S2',
|
||||
nextEmbedded: '$S2',
|
||||
},
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value.html'],
|
||||
[/'([^']*)'/, 'attribute.value.html'],
|
||||
[/[\w\-]+/, 'attribute.name.html'],
|
||||
[/=/, 'delimiter.html'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }],
|
||||
],
|
||||
styleEmbedded: [
|
||||
[
|
||||
/<\/style/,
|
||||
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
||||
],
|
||||
[/[^<]+/, ''],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
-1110
File diff suppressed because it is too large
Load Diff
-195
@@ -1,195 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[854],
|
||||
{
|
||||
60854: (e, t, r) => {
|
||||
'use strict';
|
||||
r.r(t), r.d(t, { conf: () => s, language: () => n });
|
||||
var s = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
||||
comments: { blockComment: ['###', '###'], lineComment: '#' },
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*#region\\b'),
|
||||
end: new RegExp('^\\s*#endregion\\b'),
|
||||
},
|
||||
},
|
||||
},
|
||||
n = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !1,
|
||||
tokenPostfix: '.mips',
|
||||
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
||||
keywords: [
|
||||
'.data',
|
||||
'.text',
|
||||
'syscall',
|
||||
'trap',
|
||||
'add',
|
||||
'addu',
|
||||
'addi',
|
||||
'addiu',
|
||||
'and',
|
||||
'andi',
|
||||
'div',
|
||||
'divu',
|
||||
'mult',
|
||||
'multu',
|
||||
'nor',
|
||||
'or',
|
||||
'ori',
|
||||
'sll',
|
||||
'slv',
|
||||
'sra',
|
||||
'srav',
|
||||
'srl',
|
||||
'srlv',
|
||||
'sub',
|
||||
'subu',
|
||||
'xor',
|
||||
'xori',
|
||||
'lhi',
|
||||
'lho',
|
||||
'lhi',
|
||||
'llo',
|
||||
'slt',
|
||||
'slti',
|
||||
'sltu',
|
||||
'sltiu',
|
||||
'beq',
|
||||
'bgtz',
|
||||
'blez',
|
||||
'bne',
|
||||
'j',
|
||||
'jal',
|
||||
'jalr',
|
||||
'jr',
|
||||
'lb',
|
||||
'lbu',
|
||||
'lh',
|
||||
'lhu',
|
||||
'lw',
|
||||
'li',
|
||||
'la',
|
||||
'sb',
|
||||
'sh',
|
||||
'sw',
|
||||
'mfhi',
|
||||
'mflo',
|
||||
'mthi',
|
||||
'mtlo',
|
||||
'move',
|
||||
],
|
||||
symbols: /[\.,\:]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/\$[a-zA-Z_]\w*/, 'variable.predefined'],
|
||||
[
|
||||
/[.a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
this: 'variable.predefined',
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/#.*$/, 'comment'],
|
||||
['///', { token: 'regexp', next: '@hereregexp' }],
|
||||
[/^(\s*)(@regEx)/, ['', 'regexp']],
|
||||
[/(\,)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/(\:)(\s*)(@regEx)/, ['delimiter', '', 'regexp']],
|
||||
[/@symbols/, 'delimiter'],
|
||||
[/\d+[eE]([\-+]?\d+)?/, 'number.float'],
|
||||
[/\d+\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/0[0-7]+(?!\d)/, 'number.octal'],
|
||||
[/\d+/, 'number'],
|
||||
[/[,.]/, 'delimiter'],
|
||||
[/"""/, 'string', '@herestring."""'],
|
||||
[/'''/, 'string', "@herestring.'''"],
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'string',
|
||||
'@default': { token: 'string', next: '@string."' },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/'/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': 'string',
|
||||
'@default': { token: 'string', next: "@string.'" },
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
string: [
|
||||
[/[^"'\#\\]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\./, 'string.escape.invalid'],
|
||||
[/\./, 'string.escape.invalid'],
|
||||
[
|
||||
/#{/,
|
||||
{
|
||||
cases: {
|
||||
'$S2=="': {
|
||||
token: 'string',
|
||||
next: 'root.interpolatedstring',
|
||||
},
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
/["']/,
|
||||
{
|
||||
cases: {
|
||||
'$#==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/#/, 'string'],
|
||||
],
|
||||
herestring: [
|
||||
[
|
||||
/("""|''')/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': { token: 'string', next: '@pop' },
|
||||
'@default': 'string',
|
||||
},
|
||||
},
|
||||
],
|
||||
[/[^#\\'"]+/, 'string'],
|
||||
[/['"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\./, 'string.escape.invalid'],
|
||||
[
|
||||
/#{/,
|
||||
{ token: 'string.quote', next: 'root.interpolatedstring' },
|
||||
],
|
||||
[/#/, 'string'],
|
||||
],
|
||||
comment: [
|
||||
[/[^#]+/, 'comment'],
|
||||
[/#/, 'comment'],
|
||||
],
|
||||
hereregexp: [
|
||||
[/[^\\\/#]+/, 'regexp'],
|
||||
[/\\./, 'regexp'],
|
||||
[/#.*$/, 'comment'],
|
||||
['///[igm]*', { token: 'regexp', next: '@pop' }],
|
||||
[/\//, 'regexp'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
@@ -1,220 +0,0 @@
|
||||
(self.webpackChunkmermaid_live_editor =
|
||||
self.webpackChunkmermaid_live_editor || []).push([
|
||||
[8670],
|
||||
{
|
||||
88670: (e, r, i) => {
|
||||
'use strict';
|
||||
i.r(r), i.d(r, { conf: () => o, language: () => t });
|
||||
var o = {
|
||||
comments: { lineComment: '#' },
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '`', close: '`' },
|
||||
],
|
||||
},
|
||||
t = {
|
||||
defaultToken: '',
|
||||
ignoreCase: !0,
|
||||
tokenPostfix: '.shell',
|
||||
brackets: [
|
||||
{ token: 'delimiter.bracket', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
],
|
||||
keywords: [
|
||||
'if',
|
||||
'then',
|
||||
'do',
|
||||
'else',
|
||||
'elif',
|
||||
'while',
|
||||
'until',
|
||||
'for',
|
||||
'in',
|
||||
'esac',
|
||||
'fi',
|
||||
'fin',
|
||||
'fil',
|
||||
'done',
|
||||
'exit',
|
||||
'set',
|
||||
'unset',
|
||||
'export',
|
||||
'function',
|
||||
],
|
||||
builtins: [
|
||||
'ab',
|
||||
'awk',
|
||||
'bash',
|
||||
'beep',
|
||||
'cat',
|
||||
'cc',
|
||||
'cd',
|
||||
'chown',
|
||||
'chmod',
|
||||
'chroot',
|
||||
'clear',
|
||||
'cp',
|
||||
'curl',
|
||||
'cut',
|
||||
'diff',
|
||||
'echo',
|
||||
'find',
|
||||
'gawk',
|
||||
'gcc',
|
||||
'get',
|
||||
'git',
|
||||
'grep',
|
||||
'hg',
|
||||
'kill',
|
||||
'killall',
|
||||
'ln',
|
||||
'ls',
|
||||
'make',
|
||||
'mkdir',
|
||||
'openssl',
|
||||
'mv',
|
||||
'nc',
|
||||
'node',
|
||||
'npm',
|
||||
'ping',
|
||||
'ps',
|
||||
'restart',
|
||||
'rm',
|
||||
'rmdir',
|
||||
'sed',
|
||||
'service',
|
||||
'sh',
|
||||
'shopt',
|
||||
'shred',
|
||||
'source',
|
||||
'sort',
|
||||
'sleep',
|
||||
'ssh',
|
||||
'start',
|
||||
'stop',
|
||||
'su',
|
||||
'sudo',
|
||||
'svn',
|
||||
'tee',
|
||||
'telnet',
|
||||
'top',
|
||||
'touch',
|
||||
'vi',
|
||||
'vim',
|
||||
'wall',
|
||||
'wc',
|
||||
'wget',
|
||||
'who',
|
||||
'write',
|
||||
'yes',
|
||||
'zsh',
|
||||
],
|
||||
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/[a-zA-Z]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@builtins': 'type.identifier',
|
||||
'@default': '',
|
||||
},
|
||||
},
|
||||
],
|
||||
{ include: '@strings' },
|
||||
{ include: '@parameters' },
|
||||
{ include: '@heredoc' },
|
||||
[/[{}\[\]()]/, '@brackets'],
|
||||
[/-+\w+/, 'attribute.name'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
{ include: '@numbers' },
|
||||
[/[,;]/, 'delimiter'],
|
||||
],
|
||||
whitespace: [
|
||||
[/\s+/, 'white'],
|
||||
[/(^#!.*$)/, 'metatag'],
|
||||
[/(^#.*$)/, 'comment'],
|
||||
],
|
||||
numbers: [
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
],
|
||||
strings: [
|
||||
[/'/, 'string', '@stringBody'],
|
||||
[/"/, 'string', '@dblStringBody'],
|
||||
],
|
||||
stringBody: [
|
||||
[/'/, 'string', '@popall'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
dblStringBody: [
|
||||
[/"/, 'string', '@popall'],
|
||||
[/./, 'string'],
|
||||
],
|
||||
heredoc: [
|
||||
[
|
||||
/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,
|
||||
[
|
||||
'constants',
|
||||
'white',
|
||||
'string.heredoc.delimiter',
|
||||
'string.heredoc',
|
||||
'string.heredoc.delimiter',
|
||||
],
|
||||
],
|
||||
],
|
||||
parameters: [
|
||||
[/\$\d+/, 'variable.predefined'],
|
||||
[/\$\w+/, 'variable'],
|
||||
[/\$[*@#?\-$!0_]/, 'variable'],
|
||||
[/\$'/, 'variable', '@parameterBodyQuote'],
|
||||
[/\$"/, 'variable', '@parameterBodyDoubleQuote'],
|
||||
[/\$\(/, 'variable', '@parameterBodyParen'],
|
||||
[/\$\{/, 'variable', '@parameterBodyCurlyBrace'],
|
||||
],
|
||||
parameterBodyQuote: [
|
||||
[/[^#:%*@\-!_']+/, 'variable'],
|
||||
[/[#:%*@\-!_]/, 'delimiter'],
|
||||
[/[']/, 'variable', '@pop'],
|
||||
],
|
||||
parameterBodyDoubleQuote: [
|
||||
[/[^#:%*@\-!_"]+/, 'variable'],
|
||||
[/[#:%*@\-!_]/, 'delimiter'],
|
||||
[/["]/, 'variable', '@pop'],
|
||||
],
|
||||
parameterBodyParen: [
|
||||
[/[^#:%*@\-!_)]+/, 'variable'],
|
||||
[/[#:%*@\-!_]/, 'delimiter'],
|
||||
[/[)]/, 'variable', '@pop'],
|
||||
],
|
||||
parameterBodyCurlyBrace: [
|
||||
[/[^#:%*@\-!_}]+/, 'variable'],
|
||||
[/[#:%*@\-!_]/, 'delimiter'],
|
||||
[/[}]/, 'variable', '@pop'],
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user