@distri/react 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globals.css +42 -30
- package/dist/index.cjs +2598 -29616
- package/dist/index.css +42 -30
- package/dist/index.d.cts +194 -5
- package/dist/index.d.ts +194 -5
- package/dist/index.js +1520 -2109
- package/package.json +2 -2
- package/dist/1c-7AW3GV5D.js +0 -147
- package/dist/abap-RZXDBO34.js +0 -6
- package/dist/abnf-LFXKYPTE.js +0 -6
- package/dist/abnf-Z3TAQEJM.js +0 -81
- package/dist/accesslog-ZOOCBMRV.js +0 -103
- package/dist/actionscript-NMEPFW6V.js +0 -6
- package/dist/actionscript-XW26GMAR.js +0 -93
- package/dist/ada-GQX6RQYW.js +0 -154
- package/dist/ada-KAP2BIRN.js +0 -6
- package/dist/agda-LXVI5IVP.js +0 -6
- package/dist/al-IMSCV32T.js +0 -6
- package/dist/angelscript-AMBXX62E.js +0 -125
- package/dist/antlr4-OVLMRHYB.js +0 -6
- package/dist/apache-XZ5RWPDR.js +0 -85
- package/dist/apacheconf-HKQJ5NJO.js +0 -6
- package/dist/apex-LVR5JPPF.js +0 -7
- package/dist/apl-VU6W4QO6.js +0 -6
- package/dist/applescript-6LG66P27.js +0 -6
- package/dist/applescript-YAWUZCIV.js +0 -147
- package/dist/aql-USJOB6TF.js +0 -6
- package/dist/arcade-TO5IZCKQ.js +0 -155
- package/dist/arduino-AZG4BUSE.js +0 -8
- package/dist/arduino-L3JZ66FT.js +0 -431
- package/dist/arff-APNCEISG.js +0 -6
- package/dist/armasm-NCB2R7NX.js +0 -102
- package/dist/asciidoc-46ADNNWO.js +0 -284
- package/dist/asciidoc-QYD5TVDD.js +0 -6
- package/dist/asm6502-BEBRXA7M.js +0 -6
- package/dist/asmatmel-XQIGLRVK.js +0 -6
- package/dist/aspectj-D4Y76SIE.js +0 -162
- package/dist/aspnet-UHTCQSDH.js +0 -7
- package/dist/autohotkey-IIHBJECF.js +0 -6
- package/dist/autohotkey-ZUFB3UUH.js +0 -85
- package/dist/autoit-D6LIFZPB.js +0 -6
- package/dist/autoit-V5NWCIC4.js +0 -169
- package/dist/avisynth-3VCDFKCZ.js +0 -6
- package/dist/avrasm-PGRJU5JU.js +0 -70
- package/dist/avro-idl-FXSGLMXK.js +0 -6
- package/dist/awk-4WPZLZKG.js +0 -75
- package/dist/axapta-WNNTUV55.js +0 -176
- package/dist/bash-5Y6UH3SS.js +0 -6
- package/dist/bash-RRUQWWXM.js +0 -145
- package/dist/basic-NWKGTJOC.js +0 -6
- package/dist/basic-O4LF5G3R.js +0 -55
- package/dist/batch-XKBL5OHU.js +0 -6
- package/dist/bbcode-QPF5GYGO.js +0 -6
- package/dist/bicep-TOQX26UQ.js +0 -6
- package/dist/birb-36ZVMI7E.js +0 -6
- package/dist/bison-IYKBMW4P.js +0 -7
- package/dist/bnf-LDELCAVY.js +0 -6
- package/dist/bnf-RHY5XNKD.js +0 -41
- package/dist/brainfuck-4DRXHKWI.js +0 -49
- package/dist/brainfuck-J4DKROO7.js +0 -6
- package/dist/brightscript-35QVNLUS.js +0 -6
- package/dist/bro-NUVRYFRO.js +0 -6
- package/dist/bsl-QM7MAAHT.js +0 -6
- package/dist/c-DOKPHOFP.js +0 -254
- package/dist/c-TEKQ4DGS.js +0 -6
- package/dist/c-like-Y5QETBOY.js +0 -431
- package/dist/cal-TDJDGX2M.js +0 -102
- package/dist/capnproto-HGWKNXJA.js +0 -63
- package/dist/ceylon-D3HMJW7U.js +0 -74
- package/dist/cfscript-R7KHTNNX.js +0 -6
- package/dist/chaiscript-GJKTRGUM.js +0 -8
- package/dist/chunk-224YY5NT.js +0 -108
- package/dist/chunk-2327UYDO.js +0 -46
- package/dist/chunk-25POKMV6.js +0 -51
- package/dist/chunk-2AV3EFZE.js +0 -79
- package/dist/chunk-2CLX53E2.js +0 -78
- package/dist/chunk-2DN3IOCQ.js +0 -84
- package/dist/chunk-2ERERLEL.js +0 -38
- package/dist/chunk-2FISFK3J.js +0 -47
- package/dist/chunk-2GZAL6UU.js +0 -29
- package/dist/chunk-2JUB4ICW.js +0 -88
- package/dist/chunk-2OZIJ3G7.js +0 -155
- package/dist/chunk-2Q77FUPY.js +0 -39
- package/dist/chunk-2RJEAAD5.js +0 -132
- package/dist/chunk-2WWHQC2T.js +0 -62
- package/dist/chunk-32BGMHI3.js +0 -75
- package/dist/chunk-33ATF6VZ.js +0 -71
- package/dist/chunk-3B6YHKRZ.js +0 -102
- package/dist/chunk-3G4LB4ZS.js +0 -23
- package/dist/chunk-3LFBVHQS.js +0 -41
- package/dist/chunk-3XLN3CQP.js +0 -46
- package/dist/chunk-3XQSRPIY.js +0 -55
- package/dist/chunk-3ZXR46SV.js +0 -59
- package/dist/chunk-44CFNXPV.js +0 -131
- package/dist/chunk-46UDBQ4N.js +0 -44
- package/dist/chunk-4FQ7CIOW.js +0 -55
- package/dist/chunk-4MGSP4TC.js +0 -97
- package/dist/chunk-4PTEB3IM.js +0 -78
- package/dist/chunk-4QNMEJF3.js +0 -59
- package/dist/chunk-4U2VUXPS.js +0 -90
- package/dist/chunk-4VWP7BGD.js +0 -32
- package/dist/chunk-56HGBXBL.js +0 -77
- package/dist/chunk-5BU6V2BX.js +0 -39
- package/dist/chunk-5C74WHTB.js +0 -39
- package/dist/chunk-5EG2VRYF.js +0 -151
- package/dist/chunk-5FRG2PAT.js +0 -33
- package/dist/chunk-5GDFB4UH.js +0 -58
- package/dist/chunk-5HV4RQQT.js +0 -69
- package/dist/chunk-5KUC6XAA.js +0 -166
- package/dist/chunk-5WQRG6G3.js +0 -70
- package/dist/chunk-5YMAHHDK.js +0 -312
- package/dist/chunk-6A7JQBY6.js +0 -54
- package/dist/chunk-6D5CMJVA.js +0 -34
- package/dist/chunk-6QYKEPEB.js +0 -39
- package/dist/chunk-6SCK5FOO.js +0 -33
- package/dist/chunk-6SVXOPAI.js +0 -62
- package/dist/chunk-6TXPHO25.js +0 -45
- package/dist/chunk-6V5ORWUQ.js +0 -59
- package/dist/chunk-72ZMT6AW.js +0 -74
- package/dist/chunk-74JQLVAI.js +0 -53
- package/dist/chunk-7LE5EHO2.js +0 -103
- package/dist/chunk-7VE4EHQE.js +0 -32
- package/dist/chunk-7WCISJEQ.js +0 -39
- package/dist/chunk-A4QKLBGO.js +0 -42
- package/dist/chunk-AAY72PHZ.js +0 -96
- package/dist/chunk-AG5QUY4G.js +0 -205
- package/dist/chunk-AH6RNPD4.js +0 -74
- package/dist/chunk-AKPQ2QSW.js +0 -51
- package/dist/chunk-AL5F2RG6.js +0 -75
- package/dist/chunk-ANJSFC3S.js +0 -139
- package/dist/chunk-ANN6ENLU.js +0 -95
- package/dist/chunk-AQ2A5SM2.js +0 -147
- package/dist/chunk-AQ3MKUYO.js +0 -43
- package/dist/chunk-AQJYYOAC.js +0 -51
- package/dist/chunk-B2OKL64P.js +0 -37
- package/dist/chunk-B3AXIWKC.js +0 -44
- package/dist/chunk-B46PX26X.js +0 -46
- package/dist/chunk-B473FUV4.js +0 -48
- package/dist/chunk-B4R5D6RX.js +0 -61
- package/dist/chunk-B6FTZZUW.js +0 -141
- package/dist/chunk-BADY4QJT.js +0 -108
- package/dist/chunk-BFWT5TFF.js +0 -289
- package/dist/chunk-BMGDNO7Z.js +0 -47
- package/dist/chunk-BMXVOIML.js +0 -68
- package/dist/chunk-BRBFR6ZG.js +0 -63
- package/dist/chunk-BSMFHVLJ.js +0 -27
- package/dist/chunk-BZICFOAT.js +0 -30
- package/dist/chunk-C2AUXPBE.js +0 -197
- package/dist/chunk-C2OQKTHF.js +0 -68
- package/dist/chunk-C42ZRXEU.js +0 -95
- package/dist/chunk-C5GZKZ5Y.js +0 -62
- package/dist/chunk-C6WP5G3P.js +0 -50
- package/dist/chunk-C74WNJ2N.js +0 -36
- package/dist/chunk-CJ3LCOGO.js +0 -54
- package/dist/chunk-CLMBD4JD.js +0 -62
- package/dist/chunk-CMKP4B37.js +0 -114
- package/dist/chunk-CN4R4LEB.js +0 -139
- package/dist/chunk-CNOSY7CM.js +0 -98
- package/dist/chunk-COEBQGAB.js +0 -52
- package/dist/chunk-CXLY5AKA.js +0 -42
- package/dist/chunk-D376GLYK.js +0 -153
- package/dist/chunk-DARM25ZV.js +0 -240
- package/dist/chunk-DB5PI577.js +0 -38
- package/dist/chunk-DCAPJSFU.js +0 -110
- package/dist/chunk-DCJU76MU.js +0 -47
- package/dist/chunk-DCKHR7CW.js +0 -150
- package/dist/chunk-DHUOF54O.js +0 -168
- package/dist/chunk-DIPKDKOW.js +0 -52
- package/dist/chunk-DKZMCKWJ.js +0 -112
- package/dist/chunk-DM4V5JFL.js +0 -146
- package/dist/chunk-DRPQ5HML.js +0 -87
- package/dist/chunk-DVS47EX7.js +0 -71
- package/dist/chunk-DYKZ7WAD.js +0 -122
- package/dist/chunk-E3MMTLT7.js +0 -93
- package/dist/chunk-E4OGXPQD.js +0 -41
- package/dist/chunk-E4WYTZCV.js +0 -27
- package/dist/chunk-E5VEHLSN.js +0 -117
- package/dist/chunk-ECQZQ46F.js +0 -196
- package/dist/chunk-EJSYBCND.js +0 -60
- package/dist/chunk-EJWUQTF5.js +0 -148
- package/dist/chunk-EL5SRABP.js +0 -79
- package/dist/chunk-EQDG6AMZ.js +0 -88
- package/dist/chunk-EQTNSL53.js +0 -101
- package/dist/chunk-EUKMYSUQ.js +0 -46
- package/dist/chunk-EY2HVCBS.js +0 -76
- package/dist/chunk-EYDLVF7H.js +0 -74
- package/dist/chunk-F3IVXEVB.js +0 -66
- package/dist/chunk-F62JS3FM.js +0 -110
- package/dist/chunk-FGIZ2S6U.js +0 -40
- package/dist/chunk-FGMUBJ4A.js +0 -35
- package/dist/chunk-FPVNS6TI.js +0 -36
- package/dist/chunk-FZXXJOLY.js +0 -89
- package/dist/chunk-GAYPKEUG.js +0 -217
- package/dist/chunk-GBJDIK2H.js +0 -942
- package/dist/chunk-GEYTWOXL.js +0 -71
- package/dist/chunk-GHKONZF7.js +0 -43
- package/dist/chunk-GHZQDGEH.js +0 -74
- package/dist/chunk-GIGNBEK3.js +0 -69
- package/dist/chunk-GJM2DZXG.js +0 -47
- package/dist/chunk-GJXZBETM.js +0 -61
- package/dist/chunk-GZZQH4I7.js +0 -67
- package/dist/chunk-H52A7GGB.js +0 -71
- package/dist/chunk-HBQOI7QH.js +0 -382
- package/dist/chunk-HKGVZYQL.js +0 -48
- package/dist/chunk-HPFVUGXV.js +0 -47
- package/dist/chunk-HSNQ3GJK.js +0 -30
- package/dist/chunk-HWOE366M.js +0 -38
- package/dist/chunk-HWZH5O43.js +0 -43
- package/dist/chunk-HXFULKRD.js +0 -98
- package/dist/chunk-I4T33AAE.js +0 -106
- package/dist/chunk-IGHFZEZN.js +0 -187
- package/dist/chunk-IKJLE5M7.js +0 -366
- package/dist/chunk-IR7VL7RD.js +0 -82
- package/dist/chunk-IRD7U5ZU.js +0 -51
- package/dist/chunk-IYFR4CDA.js +0 -44
- package/dist/chunk-J7AEKJ46.js +0 -144
- package/dist/chunk-JEUPR533.js +0 -150
- package/dist/chunk-JX27E7Z7.js +0 -28
- package/dist/chunk-JZBGRMXH.js +0 -137
- package/dist/chunk-K7N3TO3V.js +0 -57
- package/dist/chunk-KDLA7HDC.js +0 -46
- package/dist/chunk-KEWYGECE.js +0 -82
- package/dist/chunk-KFN445LW.js +0 -67
- package/dist/chunk-KKSPKZZM.js +0 -82
- package/dist/chunk-KOMNWMW6.js +0 -50
- package/dist/chunk-KVLLQAIY.js +0 -132
- package/dist/chunk-LAIV7V4D.js +0 -72
- package/dist/chunk-LB3N6HYU.js +0 -60
- package/dist/chunk-LDSSSJQI.js +0 -38
- package/dist/chunk-LKU2HB7I.js +0 -108
- package/dist/chunk-LONXLQIZ.js +0 -66
- package/dist/chunk-LSGY64ZA.js +0 -59
- package/dist/chunk-M36ANKM4.js +0 -63
- package/dist/chunk-M7IOWAP5.js +0 -89
- package/dist/chunk-M7UI667O.js +0 -4903
- package/dist/chunk-MI6VDBLM.js +0 -93
- package/dist/chunk-MRLBYC4E.js +0 -47
- package/dist/chunk-MU3ZP5L5.js +0 -91
- package/dist/chunk-MUOOCQ2U.js +0 -56
- package/dist/chunk-MVYKGSQQ.js +0 -65
- package/dist/chunk-NC6NC3VB.js +0 -94
- package/dist/chunk-NCAE746Z.js +0 -115
- package/dist/chunk-NF3NJF7X.js +0 -162
- package/dist/chunk-NH3HO3D4.js +0 -101
- package/dist/chunk-NMF5JCGX.js +0 -49
- package/dist/chunk-NMYFSUVO.js +0 -106
- package/dist/chunk-NOBI3JZF.js +0 -49
- package/dist/chunk-NQS5H6QB.js +0 -31
- package/dist/chunk-O7AAH5I3.js +0 -45
- package/dist/chunk-OI7FVI7R.js +0 -42
- package/dist/chunk-OIU6EBEL.js +0 -59
- package/dist/chunk-OKSPRUPW.js +0 -64
- package/dist/chunk-OPCW4BZG.js +0 -39
- package/dist/chunk-OTSTAJ2K.js +0 -77
- package/dist/chunk-P5GU767W.js +0 -28
- package/dist/chunk-P5ISSLEN.js +0 -83
- package/dist/chunk-P6E6SOVE.js +0 -43
- package/dist/chunk-PHXLGKXA.js +0 -117
- package/dist/chunk-PHZLT2J6.js +0 -61
- package/dist/chunk-PNSB4ZAL.js +0 -52
- package/dist/chunk-PSILHWIJ.js +0 -84
- package/dist/chunk-PSSNU4KS.js +0 -121
- package/dist/chunk-PU3XOBI7.js +0 -111
- package/dist/chunk-PVUHXI4V.js +0 -123
- package/dist/chunk-Q2EUB6IK.js +0 -41
- package/dist/chunk-Q6JXYTWV.js +0 -115
- package/dist/chunk-QHKGD7XU.js +0 -199
- package/dist/chunk-QK37NBUF.js +0 -68
- package/dist/chunk-QN4RHWLR.js +0 -239
- package/dist/chunk-QOBICMKH.js +0 -83
- package/dist/chunk-QRKZ53CV.js +0 -40
- package/dist/chunk-QU7D23ZR.js +0 -67
- package/dist/chunk-QW4QWRT5.js +0 -96
- package/dist/chunk-QXUKW3CC.js +0 -48
- package/dist/chunk-R2ZTLRVI.js +0 -70
- package/dist/chunk-R4GP4YGH.js +0 -49
- package/dist/chunk-R7OMI6H4.js +0 -91
- package/dist/chunk-RAQSSUDV.js +0 -158
- package/dist/chunk-RCE7QLLU.js +0 -75
- package/dist/chunk-RDF5QBXB.js +0 -44
- package/dist/chunk-RGS24K3W.js +0 -116
- package/dist/chunk-RKDF6JST.js +0 -30
- package/dist/chunk-RM2ULDSD.js +0 -94
- package/dist/chunk-RNK6SZJU.js +0 -47
- package/dist/chunk-RRRLL4DX.js +0 -82
- package/dist/chunk-RRXZFUCR.js +0 -39
- package/dist/chunk-SIUAQ32X.js +0 -53
- package/dist/chunk-SKD2A5KV.js +0 -54
- package/dist/chunk-SROV7A53.js +0 -61
- package/dist/chunk-SRRJNGRB.js +0 -60
- package/dist/chunk-STJVQCXY.js +0 -38
- package/dist/chunk-SWTN5ODE.js +0 -79
- package/dist/chunk-SYQSK3H2.js +0 -46
- package/dist/chunk-TEZZGNU2.js +0 -49
- package/dist/chunk-TK5GU4JT.js +0 -38
- package/dist/chunk-TQ3TRIZB.js +0 -71
- package/dist/chunk-TR5CHC4X.js +0 -427
- package/dist/chunk-U5SCPMNY.js +0 -82
- package/dist/chunk-UDWMCI4M.js +0 -26
- package/dist/chunk-UFBSSE4W.js +0 -112
- package/dist/chunk-UFJ2C45G.js +0 -119
- package/dist/chunk-UFNY555Q.js +0 -136
- package/dist/chunk-UI2KHTYZ.js +0 -60
- package/dist/chunk-UI7KT2WN.js +0 -82
- package/dist/chunk-UNBZUSFM.js +0 -41
- package/dist/chunk-UNYOTTJS.js +0 -97
- package/dist/chunk-UOGIGWWZ.js +0 -40
- package/dist/chunk-UPDA4XPV.js +0 -65
- package/dist/chunk-UPOA7A7K.js +0 -84
- package/dist/chunk-UR3RVG2E.js +0 -47
- package/dist/chunk-UXDI4352.js +0 -238
- package/dist/chunk-UYAK2IKF.js +0 -94
- package/dist/chunk-V6AWCJO5.js +0 -97
- package/dist/chunk-VDMFDRVD.js +0 -67
- package/dist/chunk-VHW7K2YZ.js +0 -1111
- package/dist/chunk-VIBEIY5K.js +0 -73
- package/dist/chunk-VJYOOKEI.js +0 -37
- package/dist/chunk-VRJ72GMO.js +0 -166
- package/dist/chunk-VUCUUNVX.js +0 -30
- package/dist/chunk-W23BPRNS.js +0 -77
- package/dist/chunk-W344P3PI.js +0 -65
- package/dist/chunk-W5UXHXCI.js +0 -71
- package/dist/chunk-WA6NBVF4.js +0 -39
- package/dist/chunk-WC3TRKEX.js +0 -97
- package/dist/chunk-WEJOCBAM.js +0 -41
- package/dist/chunk-WOTM2ZAV.js +0 -27
- package/dist/chunk-WRUJ627J.js +0 -44
- package/dist/chunk-WVU43QNT.js +0 -39
- package/dist/chunk-WY7CUUDW.js +0 -33
- package/dist/chunk-X2UFYMER.js +0 -76
- package/dist/chunk-XJW3ZV3N.js +0 -64
- package/dist/chunk-XUQ4ZZPG.js +0 -118
- package/dist/chunk-XZW7BF6N.js +0 -41
- package/dist/chunk-Y2TQJEJ7.js +0 -40
- package/dist/chunk-Y4NA3I35.js +0 -49
- package/dist/chunk-YGITEW2P.js +0 -41
- package/dist/chunk-YIOEYE2X.js +0 -156
- package/dist/chunk-YNW4BJ45.js +0 -51
- package/dist/chunk-YO7WLWGB.js +0 -75
- package/dist/chunk-YOXZIFQJ.js +0 -62
- package/dist/chunk-YQ6WULUZ.js +0 -50
- package/dist/chunk-YRUKJYF2.js +0 -29
- package/dist/chunk-YXLPUUQE.js +0 -352
- package/dist/chunk-Z7PWFZG5.js +0 -31
- package/dist/chunk-ZFT3ZS7W.js +0 -51
- package/dist/chunk-ZJPNZEZR.js +0 -103
- package/dist/chunk-ZJRUSLCY.js +0 -35
- package/dist/chunk-ZN7VL73E.js +0 -80
- package/dist/chunk-ZNLDDQAM.js +0 -57
- package/dist/chunk-ZVKNGILG.js +0 -31
- package/dist/chunk-ZXGEIR3V.js +0 -130
- package/dist/cil-O326CWQA.js +0 -6
- package/dist/clean-6OVZ7TGQ.js +0 -37
- package/dist/clike-33YPGZVE.js +0 -6
- package/dist/clojure-K2UAB5BZ.js +0 -128
- package/dist/clojure-QXKOOUQF.js +0 -6
- package/dist/clojure-repl-SBX7UJZC.js +0 -27
- package/dist/cmake-4MFUHBSL.js +0 -6
- package/dist/cmake-JTMWHHYS.js +0 -35
- package/dist/cobol-WJFEYT7Q.js +0 -6
- package/dist/coffeescript-4N4QM7GI.js +0 -349
- package/dist/coffeescript-VZJUGYED.js +0 -6
- package/dist/concurnas-BNKK5KQI.js +0 -6
- package/dist/coq-XCIL3AK2.js +0 -6
- package/dist/coq-XPCF633I.js +0 -36
- package/dist/core-AN43BUAS.js +0 -10
- package/dist/core-OM67CLGB.js +0 -1812
- package/dist/cos-TZY7GUR5.js +0 -99
- package/dist/cpp-GCTEAWAA.js +0 -7
- package/dist/cpp-SAHJ7F7B.js +0 -410
- package/dist/crmsh-N4M5XFKQ.js +0 -98
- package/dist/crystal-4G4I3J74.js +0 -323
- package/dist/crystal-XBTNSQ5K.js +0 -7
- package/dist/csharp-DIBIDG36.js +0 -6
- package/dist/csharp-YSQBTLLS.js +0 -439
- package/dist/cshtml-7B6DGO76.js +0 -7
- package/dist/csp-5Y7ET6AB.js +0 -35
- package/dist/csp-XIZL4EBX.js +0 -6
- package/dist/css-RWDL67C4.js +0 -6
- package/dist/css-XMZ4N74J.js +0 -598
- package/dist/css-extras-CWTWKDVC.js +0 -6
- package/dist/csv-VMGEWQNY.js +0 -6
- package/dist/cypher-XQEB4CZZ.js +0 -6
- package/dist/d-6ACCZLPX.js +0 -122
- package/dist/d-LWBSC7CC.js +0 -6
- package/dist/dart-GOFOUVNC.js +0 -190
- package/dist/dart-MFIM6VAZ.js +0 -6
- package/dist/dataweave-7CVQMOMN.js +0 -6
- package/dist/dax-AAT6BTH4.js +0 -6
- package/dist/delphi-L3QM36MP.js +0 -119
- package/dist/dhall-HZ5MHEIB.js +0 -6
- package/dist/diff-FLIDNR5Z.js +0 -6
- package/dist/diff-OKX6DFC7.js +0 -86
- package/dist/django-RFMPVXTB.js +0 -7
- package/dist/django-RPTOQCW7.js +0 -58
- package/dist/dns-77IP2XFY.js +0 -46
- package/dist/dns-zone-file-2RL5U2PY.js +0 -6
- package/dist/docker-4XHXGDH7.js +0 -6
- package/dist/dockerfile-MIETANCG.js +0 -34
- package/dist/dos-BBAJZVGU.js +0 -62
- package/dist/dot-TR6BGNXO.js +0 -6
- package/dist/dsconfig-KFCMOYPJ.js +0 -67
- package/dist/dts-NUYXJ7FG.js +0 -145
- package/dist/dust-6XDJNOJC.js +0 -45
- package/dist/ebnf-F7FBQHHH.js +0 -52
- package/dist/ebnf-R75FBZIX.js +0 -6
- package/dist/editorconfig-VPA6JQ6B.js +0 -6
- package/dist/eiffel-VXV62L3M.js +0 -6
- package/dist/ejs-WGAN7C6O.js +0 -7
- package/dist/elixir-7HTA4EKT.js +0 -261
- package/dist/elixir-Y5Z7CTDD.js +0 -6
- package/dist/elm-3YBGBCGD.js +0 -6
- package/dist/elm-JDDJBWMC.js +0 -121
- package/dist/erb-BTPSGKBC.js +0 -28
- package/dist/erb-HSTW4R5K.js +0 -8
- package/dist/erlang-CG22ZL7A.js +0 -6
- package/dist/erlang-PUNSB4KR.js +0 -193
- package/dist/erlang-repl-PKI3CJB6.js +0 -71
- package/dist/etlua-BMQWGYG7.js +0 -8
- package/dist/excel-N35KGQKQ.js +0 -70
- package/dist/excel-formula-EA6D7XXV.js +0 -6
- package/dist/factor-QSPSTCRL.js +0 -6
- package/dist/false-HYKKPCZZ.js +0 -6
- package/dist/firestore-security-rules-BX3L2HCR.js +0 -6
- package/dist/fix-MTQQED3W.js +0 -41
- package/dist/flix-ATCRKO3C.js +0 -52
- package/dist/flow-NLGHRL25.js +0 -6
- package/dist/fortran-4BLBSZTY.js +0 -103
- package/dist/fortran-BV3N5E6Z.js +0 -6
- package/dist/fsharp-IO3NGHVH.js +0 -6
- package/dist/fsharp-YAKEQOUL.js +0 -80
- package/dist/ftl-UUJQPJEN.js +0 -7
- package/dist/gams-TKSKQ363.js +0 -178
- package/dist/gap-2YXVXYOT.js +0 -6
- package/dist/gauss-NP233ZOP.js +0 -207
- package/dist/gcode-R2KUXWWM.js +0 -6
- package/dist/gcode-YNACDETH.js +0 -89
- package/dist/gdscript-N7LTKIOX.js +0 -6
- package/dist/gedcom-7ORO7C4C.js +0 -6
- package/dist/gherkin-BEOBZ2TP.js +0 -52
- package/dist/gherkin-L7GTFBNK.js +0 -6
- package/dist/git-63YFQSQE.js +0 -6
- package/dist/glsl-A472JJRK.js +0 -7
- package/dist/glsl-CC6BRQ4R.js +0 -40
- package/dist/gml-CU3CTZVM.js +0 -6
- package/dist/gml-YN66WFSY.js +0 -33
- package/dist/gn-3P2WYUAT.js +0 -6
- package/dist/go-4O5XDJ22.js +0 -70
- package/dist/go-FBMSLERD.js +0 -6
- package/dist/go-module-XRAEATKG.js +0 -6
- package/dist/golo-Y36VOWUK.js +0 -30
- package/dist/gradle-R2TYEFOT.js +0 -29
- package/dist/graphql-WKLI57K6.js +0 -6
- package/dist/groovy-7JQ74JSK.js +0 -148
- package/dist/groovy-VD3K5JSR.js +0 -6
- package/dist/haml-4SORDJJF.js +0 -118
- package/dist/haml-HUBZW3CC.js +0 -7
- package/dist/handlebars-BKAMNV3T.js +0 -271
- package/dist/handlebars-D6N24VL6.js +0 -7
- package/dist/haskell-HYPGBX2X.js +0 -6
- package/dist/haskell-OXNBLMTA.js +0 -164
- package/dist/haxe-JTSZSCAJ.js +0 -163
- package/dist/haxe-L7I5OYJ2.js +0 -6
- package/dist/hcl-KIS5AZ7Z.js +0 -6
- package/dist/hlsl-2DTDMOY7.js +0 -7
- package/dist/hoon-AL5K7USY.js +0 -6
- package/dist/hpkp-EKQKSNVB.js +0 -6
- package/dist/hsp-UF2OSXNE.js +0 -63
- package/dist/hsts-EJXOSKVQ.js +0 -6
- package/dist/htmlbars-42ZOC2D6.js +0 -279
- package/dist/http-2MRRAID3.js +0 -6
- package/dist/http-OGE25RBR.js +0 -107
- package/dist/hy-YV4X3GBV.js +0 -83
- package/dist/ichigojam-NXT7F7X3.js +0 -6
- package/dist/icon-4ADGUCRV.js +0 -6
- package/dist/icu-message-format-VO54B5YP.js +0 -6
- package/dist/idris-ZF6WGDMZ.js +0 -7
- package/dist/iecst-WNULMFOZ.js +0 -6
- package/dist/ignore-CYPT7YDE.js +0 -6
- package/dist/inform7-6UXJUDWJ.js +0 -67
- package/dist/inform7-CDLT2WLA.js +0 -6
- package/dist/ini-RKNKROPR.js +0 -6
- package/dist/ini-WRUPK6GQ.js +0 -149
- package/dist/io-3XBLIY2S.js +0 -6
- package/dist/irpf90-OE4SIADT.js +0 -82
- package/dist/isbl-YATA2TPX.js +0 -269
- package/dist/j-UVZBTOG6.js +0 -6
- package/dist/java-GQAOFJIC.js +0 -6
- package/dist/java-VSMB3XJ4.js +0 -178
- package/dist/javadoc-TTVWJC5W.js +0 -8
- package/dist/javadoclike-FHEXEDGQ.js +0 -6
- package/dist/javascript-A6MZHESW.js +0 -553
- package/dist/javascript-THHHQF3V.js +0 -6
- package/dist/javastacktrace-IQU5IHCT.js +0 -6
- package/dist/jboss-cli-IUTBAZJB.js +0 -63
- package/dist/jexl-BAWIHKKY.js +0 -6
- package/dist/jolie-SQNWFOWN.js +0 -6
- package/dist/jq-S5UQHNRW.js +0 -6
- package/dist/js-extras-UUET4H75.js +0 -6
- package/dist/js-templates-FZ6V73KN.js +0 -6
- package/dist/jsdoc-3SC2P7PN.js +0 -8
- package/dist/json-DZFRIBFX.js +0 -6
- package/dist/json-KBL46RVP.js +0 -66
- package/dist/json5-STBRMQ2S.js +0 -7
- package/dist/jsonp-NBRJS6C6.js +0 -7
- package/dist/jsstacktrace-DHXPZYMF.js +0 -6
- package/dist/jsx-EIXN7WI4.js +0 -6
- package/dist/julia-MU3Z5224.js +0 -357
- package/dist/julia-PE6EVLNM.js +0 -6
- package/dist/julia-repl-X5HSI3TX.js +0 -36
- package/dist/keepalived-MY6EM2C3.js +0 -6
- package/dist/keyman-2YYUBN76.js +0 -6
- package/dist/kotlin-O435RUO6.js +0 -6
- package/dist/kotlin-RIIQVJYL.js +0 -265
- package/dist/kumir-BKQHUTJM.js +0 -6
- package/dist/kusto-DIVZNNWG.js +0 -6
- package/dist/lasso-YQAMZ34U.js +0 -171
- package/dist/latex-446N7AKU.js +0 -260
- package/dist/latex-6KGKRLSM.js +0 -6
- package/dist/latte-N6CW2T72.js +0 -8
- package/dist/ldif-BNNBTMGX.js +0 -46
- package/dist/leaf-QLDKGXC6.js +0 -53
- package/dist/less-OPBIOS4A.js +0 -660
- package/dist/less-W6V4JI42.js +0 -6
- package/dist/lilypond-U73SKNUR.js +0 -7
- package/dist/liquid-L7MISQOA.js +0 -7
- package/dist/lisp-PVLILRLH.js +0 -6
- package/dist/lisp-ZDEG6DX5.js +0 -119
- package/dist/livecodeserver-EVEY2S46.js +0 -120
- package/dist/livescript-RUAKOGHV.js +0 -367
- package/dist/livescript-UPW7JUSD.js +0 -6
- package/dist/llvm-DCNWQNJE.js +0 -101
- package/dist/llvm-RLDKQGUW.js +0 -6
- package/dist/log-55HSC75G.js +0 -6
- package/dist/lolcode-7CO4RSH4.js +0 -6
- package/dist/lsl-P6IYFQNG.js +0 -91
- package/dist/lua-4XIOFYMQ.js +0 -6
- package/dist/lua-HPFSUVUF.js +0 -72
- package/dist/magma-EE3VS3IR.js +0 -6
- package/dist/makefile-CZ4YFTLF.js +0 -6
- package/dist/makefile-DRKGNO3P.js +0 -83
- package/dist/markdown-I3T5BTVH.js +0 -240
- package/dist/markdown-J47CEYKA.js +0 -6
- package/dist/markup-DSVFDWPT.js +0 -6
- package/dist/markup-templating-OAVXWHPK.js +0 -6
- package/dist/mathematica-WKLBTKID.js +0 -6752
- package/dist/matlab-4ANV5ZBM.js +0 -6
- package/dist/matlab-PZCF5O6V.js +0 -88
- package/dist/maxima-PV4BAZWK.js +0 -64
- package/dist/maxscript-F2YC3KDG.js +0 -6
- package/dist/mel-KXZPRQRN.js +0 -36
- package/dist/mel-ZJK6R7PH.js +0 -6
- package/dist/mercury-IGJMIEXB.js +0 -100
- package/dist/mermaid-NEAIHK4Y.js +0 -6
- package/dist/mipsasm-7JNUQAL3.js +0 -86
- package/dist/mizar-2HS25BYN.js +0 -6
- package/dist/mizar-UAHPLIEZ.js +0 -21
- package/dist/mojolicious-2NMQM4MR.js +0 -38
- package/dist/mongodb-JX47Y675.js +0 -6
- package/dist/monkey-LCXHDHMY.js +0 -6
- package/dist/monkey-WX2KGGXI.js +0 -85
- package/dist/moonscript-25QFVA2K.js +0 -6
- package/dist/moonscript-2P6DAOMC.js +0 -149
- package/dist/n1ql-IHNBRAEL.js +0 -6
- package/dist/n1ql-UFCN2QNU.js +0 -57
- package/dist/n4js-XSRAWSLD.js +0 -6
- package/dist/nand2tetris-hdl-IEWHBLUX.js +0 -6
- package/dist/naniscript-MQFBBG75.js +0 -6
- package/dist/nasm-PMJA3GKY.js +0 -6
- package/dist/neon-MC4UIRZV.js +0 -6
- package/dist/nevod-ZYWD7ETJ.js +0 -6
- package/dist/nginx-3RDFSJFY.js +0 -139
- package/dist/nginx-3YO7YUT6.js +0 -6
- package/dist/nim-LEQE2KMR.js +0 -6
- package/dist/nim-VLAOU6CD.js +0 -71
- package/dist/nix-APGWMNL4.js +0 -6
- package/dist/nix-CJKVWX44.js +0 -64
- package/dist/node-repl-4IGO4CVF.js +0 -39
- package/dist/nsis-2SCDB5O5.js +0 -111
- package/dist/nsis-5HBAQIG3.js +0 -6
- package/dist/objectivec-RQEAB6D4.js +0 -7
- package/dist/objectivec-UDZTZPRF.js +0 -97
- package/dist/ocaml-4G6MROKG.js +0 -6
- package/dist/ocaml-WX5ZA7P3.js +0 -75
- package/dist/opencl-EA7CVAZL.js +0 -7
- package/dist/openqasm-R4AD4MRN.js +0 -6
- package/dist/openscad-ICGXMPRT.js +0 -83
- package/dist/oxygene-FZVZLZ6D.js +0 -96
- package/dist/oz-XHFVDUFI.js +0 -6
- package/dist/parigp-4G3KV5LH.js +0 -6
- package/dist/parser-WBFWFAFW.js +0 -6
- package/dist/parser3-E32FK5OC.js +0 -59
- package/dist/pascal-NOHW52AH.js +0 -6
- package/dist/pascaligo-TBYFODYY.js +0 -6
- package/dist/pcaxis-RHKLRFM6.js +0 -6
- package/dist/peoplecode-F3C5MGWM.js +0 -6
- package/dist/perl-HIDQF2O5.js +0 -6
- package/dist/perl-KRJNSWHD.js +0 -481
- package/dist/pf-OJGOPUDV.js +0 -45
- package/dist/pgsql-ECX4EOOW.js +0 -389
- package/dist/php-QDLOSGJT.js +0 -193
- package/dist/php-Z6YMJYGB.js +0 -7
- package/dist/php-extras-SCVXP75V.js +0 -8
- package/dist/php-template-7N4LQKYM.js +0 -56
- package/dist/phpdoc-TH65GVFM.js +0 -9
- package/dist/plaintext-RBZUK7TL.js +0 -22
- package/dist/plsql-NNNDEN5K.js +0 -7
- package/dist/pony-CNQ4KQWJ.js +0 -66
- package/dist/powerquery-RKIODW4Z.js +0 -6
- package/dist/powershell-73ONBPQ7.js +0 -281
- package/dist/powershell-QS4RDJ6J.js +0 -6
- package/dist/processing-5THDN4UV.js +0 -6
- package/dist/processing-YU42ML2I.js +0 -30
- package/dist/profile-BT75NUJL.js +0 -47
- package/dist/prolog-J2HZA653.js +0 -91
- package/dist/prolog-LHLMDDSD.js +0 -6
- package/dist/promql-LUBGY7DJ.js +0 -6
- package/dist/properties-46STONTA.js +0 -83
- package/dist/properties-FOYLMPAV.js +0 -6
- package/dist/protobuf-44TWAD4E.js +0 -6
- package/dist/protobuf-EQVG2QVY.js +0 -52
- package/dist/psl-D72D6EWT.js +0 -6
- package/dist/pug-NWKTYVMK.js +0 -6
- package/dist/puppet-6NUQHRHI.js +0 -122
- package/dist/puppet-UFNEDL2A.js +0 -6
- package/dist/pure-EDP3UYTA.js +0 -6
- package/dist/purebasic-2DOKMFL5.js +0 -71
- package/dist/purebasic-4O7N7T7N.js +0 -6
- package/dist/purescript-J4DSA62W.js +0 -7
- package/dist/python-FTT2PIKP.js +0 -6
- package/dist/python-TS2ACJSS.js +0 -413
- package/dist/python-repl-WUB7RWM6.js +0 -39
- package/dist/q-HJSWPPHV.js +0 -34
- package/dist/q-V4Y7U3JC.js +0 -6
- package/dist/qml-EGPAFLB2.js +0 -6
- package/dist/qml-XKBW6PEL.js +0 -178
- package/dist/qore-XDF7LURG.js +0 -6
- package/dist/qsharp-4XMDREFU.js +0 -6
- package/dist/r-47HXZXMW.js +0 -6
- package/dist/r-6ZKCKBBF.js +0 -176
- package/dist/racket-AU7LDZ4M.js +0 -7
- package/dist/reason-PX5TGG3N.js +0 -6
- package/dist/reasonml-CKV7PRLI.js +0 -295
- package/dist/refractor-B5L4TWLD.js +0 -284
- package/dist/regex-LWDNCFFA.js +0 -6
- package/dist/rego-44E2NRNP.js +0 -6
- package/dist/renpy-AAAKUZWA.js +0 -6
- package/dist/rest-SWCMDFFK.js +0 -6
- package/dist/rib-UVTB2JRB.js +0 -25
- package/dist/rip-F2ISAETZ.js +0 -6
- package/dist/roboconf-KEAQLNBI.js +0 -79
- package/dist/roboconf-X7U7WWM2.js +0 -6
- package/dist/robotframework-CXEO2WAA.js +0 -6
- package/dist/routeros-MVGGIODD.js +0 -164
- package/dist/rsl-3H64A324.js +0 -43
- package/dist/ruby-7SMB66HO.js +0 -347
- package/dist/ruby-BGCJ6MY2.js +0 -6
- package/dist/ruleslanguage-L3WECYZ4.js +0 -41
- package/dist/rust-ISDM6BAM.js +0 -124
- package/dist/rust-NYA4RZRC.js +0 -6
- package/dist/sas-KIQXE2LA.js +0 -6
- package/dist/sas-WJ3ECKBR.js +0 -67
- package/dist/sass-MGXNVRLF.js +0 -6
- package/dist/scala-LT7OL3WW.js +0 -7
- package/dist/scala-ONJJQZS6.js +0 -132
- package/dist/scheme-QPIFL46P.js +0 -160
- package/dist/scheme-W3VZM3UG.js +0 -6
- package/dist/scilab-RXHCT6DB.js +0 -70
- package/dist/scss-RVJCWB2P.js +0 -6
- package/dist/scss-V6XQ4K3L.js +0 -552
- package/dist/shell-JXCZ67JB.js +0 -31
- package/dist/shell-session-XQJ6HMB4.js +0 -7
- package/dist/smali-27UFXI4H.js +0 -6
- package/dist/smali-ALHKOSP2.js +0 -138
- package/dist/smalltalk-5ZD3PYLO.js +0 -6
- package/dist/smalltalk-HHGSBNBT.js +0 -67
- package/dist/smarty-ROILVKM2.js +0 -7
- package/dist/sml-GLD7IQ4J.js +0 -82
- package/dist/sml-UDZ3CU3O.js +0 -6
- package/dist/solidity-NIYEP6QM.js +0 -6
- package/dist/solution-file-755HIYVX.js +0 -6
- package/dist/soy-QVG7HTK3.js +0 -7
- package/dist/sparql-MUWNWIXE.js +0 -7
- package/dist/splunk-spl-6PEDD5P7.js +0 -6
- package/dist/sqf-CAGPEGHC.js +0 -87
- package/dist/sqf-GSS4MTYY.js +0 -6
- package/dist/sql-STBZJVII.js +0 -656
- package/dist/sql-ZHH7ZHBG.js +0 -6
- package/dist/sql_more-XDQGUTAS.js +0 -61
- package/dist/squirrel-C2ZULM5W.js +0 -6
- package/dist/stan-6HIYOY52.js +0 -6
- package/dist/stan-G64IQMIT.js +0 -548
- package/dist/stata-LAGCQQKY.js +0 -55
- package/dist/step21-YQKYAUKD.js +0 -69
- package/dist/stylus-LOSRNKOT.js +0 -606
- package/dist/stylus-NTT2SKYA.js +0 -6
- package/dist/subunit-RVTPQSIA.js +0 -55
- package/dist/swift-MVQRVICC.js +0 -800
- package/dist/swift-RME6R4ZI.js +0 -6
- package/dist/systemd-SAOMEJVZ.js +0 -6
- package/dist/t4-cs-IRI3YXSG.js +0 -8
- package/dist/t4-templating-AIOH6H7T.js +0 -6
- package/dist/t4-vb-URZMJE4Z.js +0 -9
- package/dist/taggerscript-TY57TCFT.js +0 -54
- package/dist/tap-IISM5Q2V.js +0 -7
- package/dist/tap-UKY24LA5.js +0 -57
- package/dist/tcl-5USNUPYZ.js +0 -6
- package/dist/tcl-W5ZQ64HI.js +0 -84
- package/dist/textile-UK3YOALH.js +0 -6
- package/dist/thrift-DO4A2JSZ.js +0 -50
- package/dist/toml-PQ3QO4X7.js +0 -6
- package/dist/tp-IWMEEQ7L.js +0 -92
- package/dist/tremor-V6VFOJ47.js +0 -6
- package/dist/tsx-YAYDDMF6.js +0 -8
- package/dist/tt2-LTMMGNTC.js +0 -7
- package/dist/turtle-GYPQXNJP.js +0 -6
- package/dist/twig-4YZ65GMX.js +0 -7
- package/dist/twig-H6M7SANN.js +0 -71
- package/dist/typescript-FE7OYJ6I.js +0 -629
- package/dist/typescript-QD4UC6QE.js +0 -6
- package/dist/typoscript-IW4JWQN7.js +0 -6
- package/dist/unrealscript-WG3NY6GJ.js +0 -6
- package/dist/uorazor-B72PNPB6.js +0 -6
- package/dist/uri-VM2EXH6W.js +0 -6
- package/dist/v-KQVEVXBZ.js +0 -6
- package/dist/vala-3644SCSM.js +0 -52
- package/dist/vala-NMIZYBSO.js +0 -6
- package/dist/vbnet-HGXLY5ZE.js +0 -7
- package/dist/vbnet-JRCGM6IS.js +0 -165
- package/dist/vbscript-2MZXH4GP.js +0 -69
- package/dist/vbscript-html-G4HCFPPG.js +0 -25
- package/dist/velocity-MCYIEAD4.js +0 -6
- package/dist/verilog-EFP6O6PK.js +0 -6
- package/dist/verilog-IFYMJ3DQ.js +0 -73
- package/dist/vhdl-NLIJ277M.js +0 -52
- package/dist/vhdl-SPJEI32C.js +0 -6
- package/dist/vim-YBYNDJ6Z.js +0 -75
- package/dist/vim-ZQLALH2E.js +0 -6
- package/dist/visual-basic-VUJRVC55.js +0 -6
- package/dist/warpscript-BWN4LRLJ.js +0 -6
- package/dist/wasm-GCFQ2LGI.js +0 -6
- package/dist/web-idl-RKYC74WM.js +0 -6
- package/dist/wiki-NK567JRH.js +0 -6
- package/dist/wolfram-44A7RKCB.js +0 -6
- package/dist/wren-N3KE6W4F.js +0 -6
- package/dist/x86asm-7MDJ6XTG.js +0 -107
- package/dist/xeora-O2NIYWDT.js +0 -6
- package/dist/xl-BESMU7F7.js +0 -78
- package/dist/xml-ZV7IWTI2.js +0 -255
- package/dist/xml-doc-PFDICLXC.js +0 -6
- package/dist/xojo-DFN5PWUN.js +0 -6
- package/dist/xquery-JR7NW4V7.js +0 -162
- package/dist/xquery-M3TN6AON.js +0 -6
- package/dist/yaml-6LWL6NO5.js +0 -6
- package/dist/yaml-RON4M36J.js +0 -174
- package/dist/yang-WEUHSW6K.js +0 -6
- package/dist/zephir-G2ZHEZR7.js +0 -119
- package/dist/zig-TQ37PBJX.js +0 -6
package/dist/swift-MVQRVICC.js
DELETED
|
@@ -1,800 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__commonJS
|
|
4
|
-
} from "./chunk-Z7PWFZG5.js";
|
|
5
|
-
|
|
6
|
-
// ../../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/swift.js
|
|
7
|
-
var require_swift = __commonJS({
|
|
8
|
-
"../../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/swift.js"(exports, module) {
|
|
9
|
-
function source(re) {
|
|
10
|
-
if (!re) return null;
|
|
11
|
-
if (typeof re === "string") return re;
|
|
12
|
-
return re.source;
|
|
13
|
-
}
|
|
14
|
-
function lookahead(re) {
|
|
15
|
-
return concat("(?=", re, ")");
|
|
16
|
-
}
|
|
17
|
-
function concat(...args) {
|
|
18
|
-
const joined = args.map((x) => source(x)).join("");
|
|
19
|
-
return joined;
|
|
20
|
-
}
|
|
21
|
-
function either(...args) {
|
|
22
|
-
const joined = "(" + args.map((x) => source(x)).join("|") + ")";
|
|
23
|
-
return joined;
|
|
24
|
-
}
|
|
25
|
-
var keywordWrapper = (keyword) => concat(
|
|
26
|
-
/\b/,
|
|
27
|
-
keyword,
|
|
28
|
-
/\w$/.test(keyword) ? /\b/ : /\B/
|
|
29
|
-
);
|
|
30
|
-
var dotKeywords = [
|
|
31
|
-
"Protocol",
|
|
32
|
-
// contextual
|
|
33
|
-
"Type"
|
|
34
|
-
// contextual
|
|
35
|
-
].map(keywordWrapper);
|
|
36
|
-
var optionalDotKeywords = [
|
|
37
|
-
"init",
|
|
38
|
-
"self"
|
|
39
|
-
].map(keywordWrapper);
|
|
40
|
-
var keywordTypes = [
|
|
41
|
-
"Any",
|
|
42
|
-
"Self"
|
|
43
|
-
];
|
|
44
|
-
var keywords = [
|
|
45
|
-
// strings below will be fed into the regular `keywords` engine while regex
|
|
46
|
-
// will result in additional modes being created to scan for those keywords to
|
|
47
|
-
// avoid conflicts with other rules
|
|
48
|
-
"associatedtype",
|
|
49
|
-
"async",
|
|
50
|
-
"await",
|
|
51
|
-
/as\?/,
|
|
52
|
-
// operator
|
|
53
|
-
/as!/,
|
|
54
|
-
// operator
|
|
55
|
-
"as",
|
|
56
|
-
// operator
|
|
57
|
-
"break",
|
|
58
|
-
"case",
|
|
59
|
-
"catch",
|
|
60
|
-
"class",
|
|
61
|
-
"continue",
|
|
62
|
-
"convenience",
|
|
63
|
-
// contextual
|
|
64
|
-
"default",
|
|
65
|
-
"defer",
|
|
66
|
-
"deinit",
|
|
67
|
-
"didSet",
|
|
68
|
-
// contextual
|
|
69
|
-
"do",
|
|
70
|
-
"dynamic",
|
|
71
|
-
// contextual
|
|
72
|
-
"else",
|
|
73
|
-
"enum",
|
|
74
|
-
"extension",
|
|
75
|
-
"fallthrough",
|
|
76
|
-
/fileprivate\(set\)/,
|
|
77
|
-
"fileprivate",
|
|
78
|
-
"final",
|
|
79
|
-
// contextual
|
|
80
|
-
"for",
|
|
81
|
-
"func",
|
|
82
|
-
"get",
|
|
83
|
-
// contextual
|
|
84
|
-
"guard",
|
|
85
|
-
"if",
|
|
86
|
-
"import",
|
|
87
|
-
"indirect",
|
|
88
|
-
// contextual
|
|
89
|
-
"infix",
|
|
90
|
-
// contextual
|
|
91
|
-
/init\?/,
|
|
92
|
-
/init!/,
|
|
93
|
-
"inout",
|
|
94
|
-
/internal\(set\)/,
|
|
95
|
-
"internal",
|
|
96
|
-
"in",
|
|
97
|
-
"is",
|
|
98
|
-
// operator
|
|
99
|
-
"lazy",
|
|
100
|
-
// contextual
|
|
101
|
-
"let",
|
|
102
|
-
"mutating",
|
|
103
|
-
// contextual
|
|
104
|
-
"nonmutating",
|
|
105
|
-
// contextual
|
|
106
|
-
/open\(set\)/,
|
|
107
|
-
// contextual
|
|
108
|
-
"open",
|
|
109
|
-
// contextual
|
|
110
|
-
"operator",
|
|
111
|
-
"optional",
|
|
112
|
-
// contextual
|
|
113
|
-
"override",
|
|
114
|
-
// contextual
|
|
115
|
-
"postfix",
|
|
116
|
-
// contextual
|
|
117
|
-
"precedencegroup",
|
|
118
|
-
"prefix",
|
|
119
|
-
// contextual
|
|
120
|
-
/private\(set\)/,
|
|
121
|
-
"private",
|
|
122
|
-
"protocol",
|
|
123
|
-
/public\(set\)/,
|
|
124
|
-
"public",
|
|
125
|
-
"repeat",
|
|
126
|
-
"required",
|
|
127
|
-
// contextual
|
|
128
|
-
"rethrows",
|
|
129
|
-
"return",
|
|
130
|
-
"set",
|
|
131
|
-
// contextual
|
|
132
|
-
"some",
|
|
133
|
-
// contextual
|
|
134
|
-
"static",
|
|
135
|
-
"struct",
|
|
136
|
-
"subscript",
|
|
137
|
-
"super",
|
|
138
|
-
"switch",
|
|
139
|
-
"throws",
|
|
140
|
-
"throw",
|
|
141
|
-
/try\?/,
|
|
142
|
-
// operator
|
|
143
|
-
/try!/,
|
|
144
|
-
// operator
|
|
145
|
-
"try",
|
|
146
|
-
// operator
|
|
147
|
-
"typealias",
|
|
148
|
-
/unowned\(safe\)/,
|
|
149
|
-
// contextual
|
|
150
|
-
/unowned\(unsafe\)/,
|
|
151
|
-
// contextual
|
|
152
|
-
"unowned",
|
|
153
|
-
// contextual
|
|
154
|
-
"var",
|
|
155
|
-
"weak",
|
|
156
|
-
// contextual
|
|
157
|
-
"where",
|
|
158
|
-
"while",
|
|
159
|
-
"willSet"
|
|
160
|
-
// contextual
|
|
161
|
-
];
|
|
162
|
-
var literals = [
|
|
163
|
-
"false",
|
|
164
|
-
"nil",
|
|
165
|
-
"true"
|
|
166
|
-
];
|
|
167
|
-
var precedencegroupKeywords = [
|
|
168
|
-
"assignment",
|
|
169
|
-
"associativity",
|
|
170
|
-
"higherThan",
|
|
171
|
-
"left",
|
|
172
|
-
"lowerThan",
|
|
173
|
-
"none",
|
|
174
|
-
"right"
|
|
175
|
-
];
|
|
176
|
-
var numberSignKeywords = [
|
|
177
|
-
"#colorLiteral",
|
|
178
|
-
"#column",
|
|
179
|
-
"#dsohandle",
|
|
180
|
-
"#else",
|
|
181
|
-
"#elseif",
|
|
182
|
-
"#endif",
|
|
183
|
-
"#error",
|
|
184
|
-
"#file",
|
|
185
|
-
"#fileID",
|
|
186
|
-
"#fileLiteral",
|
|
187
|
-
"#filePath",
|
|
188
|
-
"#function",
|
|
189
|
-
"#if",
|
|
190
|
-
"#imageLiteral",
|
|
191
|
-
"#keyPath",
|
|
192
|
-
"#line",
|
|
193
|
-
"#selector",
|
|
194
|
-
"#sourceLocation",
|
|
195
|
-
"#warn_unqualified_access",
|
|
196
|
-
"#warning"
|
|
197
|
-
];
|
|
198
|
-
var builtIns = [
|
|
199
|
-
"abs",
|
|
200
|
-
"all",
|
|
201
|
-
"any",
|
|
202
|
-
"assert",
|
|
203
|
-
"assertionFailure",
|
|
204
|
-
"debugPrint",
|
|
205
|
-
"dump",
|
|
206
|
-
"fatalError",
|
|
207
|
-
"getVaList",
|
|
208
|
-
"isKnownUniquelyReferenced",
|
|
209
|
-
"max",
|
|
210
|
-
"min",
|
|
211
|
-
"numericCast",
|
|
212
|
-
"pointwiseMax",
|
|
213
|
-
"pointwiseMin",
|
|
214
|
-
"precondition",
|
|
215
|
-
"preconditionFailure",
|
|
216
|
-
"print",
|
|
217
|
-
"readLine",
|
|
218
|
-
"repeatElement",
|
|
219
|
-
"sequence",
|
|
220
|
-
"stride",
|
|
221
|
-
"swap",
|
|
222
|
-
"swift_unboxFromSwiftValueWithType",
|
|
223
|
-
"transcode",
|
|
224
|
-
"type",
|
|
225
|
-
"unsafeBitCast",
|
|
226
|
-
"unsafeDowncast",
|
|
227
|
-
"withExtendedLifetime",
|
|
228
|
-
"withUnsafeMutablePointer",
|
|
229
|
-
"withUnsafePointer",
|
|
230
|
-
"withVaList",
|
|
231
|
-
"withoutActuallyEscaping",
|
|
232
|
-
"zip"
|
|
233
|
-
];
|
|
234
|
-
var operatorHead = either(
|
|
235
|
-
/[/=\-+!*%<>&|^~?]/,
|
|
236
|
-
/[\u00A1-\u00A7]/,
|
|
237
|
-
/[\u00A9\u00AB]/,
|
|
238
|
-
/[\u00AC\u00AE]/,
|
|
239
|
-
/[\u00B0\u00B1]/,
|
|
240
|
-
/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,
|
|
241
|
-
/[\u2016-\u2017]/,
|
|
242
|
-
/[\u2020-\u2027]/,
|
|
243
|
-
/[\u2030-\u203E]/,
|
|
244
|
-
/[\u2041-\u2053]/,
|
|
245
|
-
/[\u2055-\u205E]/,
|
|
246
|
-
/[\u2190-\u23FF]/,
|
|
247
|
-
/[\u2500-\u2775]/,
|
|
248
|
-
/[\u2794-\u2BFF]/,
|
|
249
|
-
/[\u2E00-\u2E7F]/,
|
|
250
|
-
/[\u3001-\u3003]/,
|
|
251
|
-
/[\u3008-\u3020]/,
|
|
252
|
-
/[\u3030]/
|
|
253
|
-
);
|
|
254
|
-
var operatorCharacter = either(
|
|
255
|
-
operatorHead,
|
|
256
|
-
/[\u0300-\u036F]/,
|
|
257
|
-
/[\u1DC0-\u1DFF]/,
|
|
258
|
-
/[\u20D0-\u20FF]/,
|
|
259
|
-
/[\uFE00-\uFE0F]/,
|
|
260
|
-
/[\uFE20-\uFE2F]/
|
|
261
|
-
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
262
|
-
// /[\u{E0100}-\u{E01EF}]/u
|
|
263
|
-
);
|
|
264
|
-
var operator = concat(operatorHead, operatorCharacter, "*");
|
|
265
|
-
var identifierHead = either(
|
|
266
|
-
/[a-zA-Z_]/,
|
|
267
|
-
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
268
|
-
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
269
|
-
/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,
|
|
270
|
-
/[\u1E00-\u1FFF]/,
|
|
271
|
-
/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,
|
|
272
|
-
/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,
|
|
273
|
-
/[\u2C00-\u2DFF\u2E80-\u2FFF]/,
|
|
274
|
-
/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,
|
|
275
|
-
/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,
|
|
276
|
-
/[\uFE47-\uFEFE\uFF00-\uFFFD]/
|
|
277
|
-
// Should be /[\uFE47-\uFFFD]/, but we have to exclude FEFF.
|
|
278
|
-
// The following characters are also allowed, but the regexes aren't supported yet.
|
|
279
|
-
// /[\u{10000}-\u{1FFFD}\u{20000-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}]/u,
|
|
280
|
-
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
|
281
|
-
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
282
|
-
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
283
|
-
);
|
|
284
|
-
var identifierCharacter = either(
|
|
285
|
-
identifierHead,
|
|
286
|
-
/\d/,
|
|
287
|
-
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
288
|
-
);
|
|
289
|
-
var identifier = concat(identifierHead, identifierCharacter, "*");
|
|
290
|
-
var typeIdentifier = concat(/[A-Z]/, identifierCharacter, "*");
|
|
291
|
-
var keywordAttributes = [
|
|
292
|
-
"autoclosure",
|
|
293
|
-
concat(/convention\(/, either("swift", "block", "c"), /\)/),
|
|
294
|
-
"discardableResult",
|
|
295
|
-
"dynamicCallable",
|
|
296
|
-
"dynamicMemberLookup",
|
|
297
|
-
"escaping",
|
|
298
|
-
"frozen",
|
|
299
|
-
"GKInspectable",
|
|
300
|
-
"IBAction",
|
|
301
|
-
"IBDesignable",
|
|
302
|
-
"IBInspectable",
|
|
303
|
-
"IBOutlet",
|
|
304
|
-
"IBSegueAction",
|
|
305
|
-
"inlinable",
|
|
306
|
-
"main",
|
|
307
|
-
"nonobjc",
|
|
308
|
-
"NSApplicationMain",
|
|
309
|
-
"NSCopying",
|
|
310
|
-
"NSManaged",
|
|
311
|
-
concat(/objc\(/, identifier, /\)/),
|
|
312
|
-
"objc",
|
|
313
|
-
"objcMembers",
|
|
314
|
-
"propertyWrapper",
|
|
315
|
-
"requires_stored_property_inits",
|
|
316
|
-
"testable",
|
|
317
|
-
"UIApplicationMain",
|
|
318
|
-
"unknown",
|
|
319
|
-
"usableFromInline"
|
|
320
|
-
];
|
|
321
|
-
var availabilityKeywords = [
|
|
322
|
-
"iOS",
|
|
323
|
-
"iOSApplicationExtension",
|
|
324
|
-
"macOS",
|
|
325
|
-
"macOSApplicationExtension",
|
|
326
|
-
"macCatalyst",
|
|
327
|
-
"macCatalystApplicationExtension",
|
|
328
|
-
"watchOS",
|
|
329
|
-
"watchOSApplicationExtension",
|
|
330
|
-
"tvOS",
|
|
331
|
-
"tvOSApplicationExtension",
|
|
332
|
-
"swift"
|
|
333
|
-
];
|
|
334
|
-
function swift(hljs) {
|
|
335
|
-
const WHITESPACE = {
|
|
336
|
-
match: /\s+/,
|
|
337
|
-
relevance: 0
|
|
338
|
-
};
|
|
339
|
-
const BLOCK_COMMENT = hljs.COMMENT(
|
|
340
|
-
"/\\*",
|
|
341
|
-
"\\*/",
|
|
342
|
-
{
|
|
343
|
-
contains: ["self"]
|
|
344
|
-
}
|
|
345
|
-
);
|
|
346
|
-
const COMMENTS = [
|
|
347
|
-
hljs.C_LINE_COMMENT_MODE,
|
|
348
|
-
BLOCK_COMMENT
|
|
349
|
-
];
|
|
350
|
-
const DOT_KEYWORD = {
|
|
351
|
-
className: "keyword",
|
|
352
|
-
begin: concat(/\./, lookahead(either(...dotKeywords, ...optionalDotKeywords))),
|
|
353
|
-
end: either(...dotKeywords, ...optionalDotKeywords),
|
|
354
|
-
excludeBegin: true
|
|
355
|
-
};
|
|
356
|
-
const KEYWORD_GUARD = {
|
|
357
|
-
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
358
|
-
match: concat(/\./, either(...keywords)),
|
|
359
|
-
relevance: 0
|
|
360
|
-
};
|
|
361
|
-
const PLAIN_KEYWORDS = keywords.filter((kw) => typeof kw === "string").concat(["_|0"]);
|
|
362
|
-
const REGEX_KEYWORDS = keywords.filter((kw) => typeof kw !== "string").concat(keywordTypes).map(keywordWrapper);
|
|
363
|
-
const KEYWORD = {
|
|
364
|
-
variants: [
|
|
365
|
-
{
|
|
366
|
-
className: "keyword",
|
|
367
|
-
match: either(...REGEX_KEYWORDS, ...optionalDotKeywords)
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
|
-
};
|
|
371
|
-
const KEYWORDS = {
|
|
372
|
-
$pattern: either(
|
|
373
|
-
/\b\w+/,
|
|
374
|
-
// regular keywords
|
|
375
|
-
/#\w+/
|
|
376
|
-
// number keywords
|
|
377
|
-
),
|
|
378
|
-
keyword: PLAIN_KEYWORDS.concat(numberSignKeywords),
|
|
379
|
-
literal: literals
|
|
380
|
-
};
|
|
381
|
-
const KEYWORD_MODES = [
|
|
382
|
-
DOT_KEYWORD,
|
|
383
|
-
KEYWORD_GUARD,
|
|
384
|
-
KEYWORD
|
|
385
|
-
];
|
|
386
|
-
const BUILT_IN_GUARD = {
|
|
387
|
-
// Consume .built_in to prevent highlighting properties and methods.
|
|
388
|
-
match: concat(/\./, either(...builtIns)),
|
|
389
|
-
relevance: 0
|
|
390
|
-
};
|
|
391
|
-
const BUILT_IN = {
|
|
392
|
-
className: "built_in",
|
|
393
|
-
match: concat(/\b/, either(...builtIns), /(?=\()/)
|
|
394
|
-
};
|
|
395
|
-
const BUILT_INS = [
|
|
396
|
-
BUILT_IN_GUARD,
|
|
397
|
-
BUILT_IN
|
|
398
|
-
];
|
|
399
|
-
const OPERATOR_GUARD = {
|
|
400
|
-
// Prevent -> from being highlighting as an operator.
|
|
401
|
-
match: /->/,
|
|
402
|
-
relevance: 0
|
|
403
|
-
};
|
|
404
|
-
const OPERATOR = {
|
|
405
|
-
className: "operator",
|
|
406
|
-
relevance: 0,
|
|
407
|
-
variants: [
|
|
408
|
-
{
|
|
409
|
-
match: operator
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
// dot-operator: only operators that start with a dot are allowed to use dots as
|
|
413
|
-
// characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
|
|
414
|
-
// characters that may also include dots.
|
|
415
|
-
match: `\\.(\\.|${operatorCharacter})+`
|
|
416
|
-
}
|
|
417
|
-
]
|
|
418
|
-
};
|
|
419
|
-
const OPERATORS = [
|
|
420
|
-
OPERATOR_GUARD,
|
|
421
|
-
OPERATOR
|
|
422
|
-
];
|
|
423
|
-
const decimalDigits = "([0-9]_*)+";
|
|
424
|
-
const hexDigits = "([0-9a-fA-F]_*)+";
|
|
425
|
-
const NUMBER = {
|
|
426
|
-
className: "number",
|
|
427
|
-
relevance: 0,
|
|
428
|
-
variants: [
|
|
429
|
-
// decimal floating-point-literal (subsumes decimal-literal)
|
|
430
|
-
{
|
|
431
|
-
match: `\\b(${decimalDigits})(\\.(${decimalDigits}))?([eE][+-]?(${decimalDigits}))?\\b`
|
|
432
|
-
},
|
|
433
|
-
// hexadecimal floating-point-literal (subsumes hexadecimal-literal)
|
|
434
|
-
{
|
|
435
|
-
match: `\\b0x(${hexDigits})(\\.(${hexDigits}))?([pP][+-]?(${decimalDigits}))?\\b`
|
|
436
|
-
},
|
|
437
|
-
// octal-literal
|
|
438
|
-
{
|
|
439
|
-
match: /\b0o([0-7]_*)+\b/
|
|
440
|
-
},
|
|
441
|
-
// binary-literal
|
|
442
|
-
{
|
|
443
|
-
match: /\b0b([01]_*)+\b/
|
|
444
|
-
}
|
|
445
|
-
]
|
|
446
|
-
};
|
|
447
|
-
const ESCAPED_CHARACTER = (rawDelimiter = "") => ({
|
|
448
|
-
className: "subst",
|
|
449
|
-
variants: [
|
|
450
|
-
{
|
|
451
|
-
match: concat(/\\/, rawDelimiter, /[0\\tnr"']/)
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
match: concat(/\\/, rawDelimiter, /u\{[0-9a-fA-F]{1,8}\}/)
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
|
-
});
|
|
458
|
-
const ESCAPED_NEWLINE = (rawDelimiter = "") => ({
|
|
459
|
-
className: "subst",
|
|
460
|
-
match: concat(/\\/, rawDelimiter, /[\t ]*(?:[\r\n]|\r\n)/)
|
|
461
|
-
});
|
|
462
|
-
const INTERPOLATION = (rawDelimiter = "") => ({
|
|
463
|
-
className: "subst",
|
|
464
|
-
label: "interpol",
|
|
465
|
-
begin: concat(/\\/, rawDelimiter, /\(/),
|
|
466
|
-
end: /\)/
|
|
467
|
-
});
|
|
468
|
-
const MULTILINE_STRING = (rawDelimiter = "") => ({
|
|
469
|
-
begin: concat(rawDelimiter, /"""/),
|
|
470
|
-
end: concat(/"""/, rawDelimiter),
|
|
471
|
-
contains: [
|
|
472
|
-
ESCAPED_CHARACTER(rawDelimiter),
|
|
473
|
-
ESCAPED_NEWLINE(rawDelimiter),
|
|
474
|
-
INTERPOLATION(rawDelimiter)
|
|
475
|
-
]
|
|
476
|
-
});
|
|
477
|
-
const SINGLE_LINE_STRING = (rawDelimiter = "") => ({
|
|
478
|
-
begin: concat(rawDelimiter, /"/),
|
|
479
|
-
end: concat(/"/, rawDelimiter),
|
|
480
|
-
contains: [
|
|
481
|
-
ESCAPED_CHARACTER(rawDelimiter),
|
|
482
|
-
INTERPOLATION(rawDelimiter)
|
|
483
|
-
]
|
|
484
|
-
});
|
|
485
|
-
const STRING = {
|
|
486
|
-
className: "string",
|
|
487
|
-
variants: [
|
|
488
|
-
MULTILINE_STRING(),
|
|
489
|
-
MULTILINE_STRING("#"),
|
|
490
|
-
MULTILINE_STRING("##"),
|
|
491
|
-
MULTILINE_STRING("###"),
|
|
492
|
-
SINGLE_LINE_STRING(),
|
|
493
|
-
SINGLE_LINE_STRING("#"),
|
|
494
|
-
SINGLE_LINE_STRING("##"),
|
|
495
|
-
SINGLE_LINE_STRING("###")
|
|
496
|
-
]
|
|
497
|
-
};
|
|
498
|
-
const QUOTED_IDENTIFIER = {
|
|
499
|
-
match: concat(/`/, identifier, /`/)
|
|
500
|
-
};
|
|
501
|
-
const IMPLICIT_PARAMETER = {
|
|
502
|
-
className: "variable",
|
|
503
|
-
match: /\$\d+/
|
|
504
|
-
};
|
|
505
|
-
const PROPERTY_WRAPPER_PROJECTION = {
|
|
506
|
-
className: "variable",
|
|
507
|
-
match: `\\$${identifierCharacter}+`
|
|
508
|
-
};
|
|
509
|
-
const IDENTIFIERS = [
|
|
510
|
-
QUOTED_IDENTIFIER,
|
|
511
|
-
IMPLICIT_PARAMETER,
|
|
512
|
-
PROPERTY_WRAPPER_PROJECTION
|
|
513
|
-
];
|
|
514
|
-
const AVAILABLE_ATTRIBUTE = {
|
|
515
|
-
match: /(@|#)available/,
|
|
516
|
-
className: "keyword",
|
|
517
|
-
starts: {
|
|
518
|
-
contains: [
|
|
519
|
-
{
|
|
520
|
-
begin: /\(/,
|
|
521
|
-
end: /\)/,
|
|
522
|
-
keywords: availabilityKeywords,
|
|
523
|
-
contains: [
|
|
524
|
-
...OPERATORS,
|
|
525
|
-
NUMBER,
|
|
526
|
-
STRING
|
|
527
|
-
]
|
|
528
|
-
}
|
|
529
|
-
]
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
const KEYWORD_ATTRIBUTE = {
|
|
533
|
-
className: "keyword",
|
|
534
|
-
match: concat(/@/, either(...keywordAttributes))
|
|
535
|
-
};
|
|
536
|
-
const USER_DEFINED_ATTRIBUTE = {
|
|
537
|
-
className: "meta",
|
|
538
|
-
match: concat(/@/, identifier)
|
|
539
|
-
};
|
|
540
|
-
const ATTRIBUTES = [
|
|
541
|
-
AVAILABLE_ATTRIBUTE,
|
|
542
|
-
KEYWORD_ATTRIBUTE,
|
|
543
|
-
USER_DEFINED_ATTRIBUTE
|
|
544
|
-
];
|
|
545
|
-
const TYPE = {
|
|
546
|
-
match: lookahead(/\b[A-Z]/),
|
|
547
|
-
relevance: 0,
|
|
548
|
-
contains: [
|
|
549
|
-
{
|
|
550
|
-
// Common Apple frameworks, for relevance boost
|
|
551
|
-
className: "type",
|
|
552
|
-
match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, "+")
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
// Type identifier
|
|
556
|
-
className: "type",
|
|
557
|
-
match: typeIdentifier,
|
|
558
|
-
relevance: 0
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
// Optional type
|
|
562
|
-
match: /[?!]+/,
|
|
563
|
-
relevance: 0
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
// Variadic parameter
|
|
567
|
-
match: /\.\.\./,
|
|
568
|
-
relevance: 0
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
// Protocol composition
|
|
572
|
-
match: concat(/\s+&\s+/, lookahead(typeIdentifier)),
|
|
573
|
-
relevance: 0
|
|
574
|
-
}
|
|
575
|
-
]
|
|
576
|
-
};
|
|
577
|
-
const GENERIC_ARGUMENTS = {
|
|
578
|
-
begin: /</,
|
|
579
|
-
end: />/,
|
|
580
|
-
keywords: KEYWORDS,
|
|
581
|
-
contains: [
|
|
582
|
-
...COMMENTS,
|
|
583
|
-
...KEYWORD_MODES,
|
|
584
|
-
...ATTRIBUTES,
|
|
585
|
-
OPERATOR_GUARD,
|
|
586
|
-
TYPE
|
|
587
|
-
]
|
|
588
|
-
};
|
|
589
|
-
TYPE.contains.push(GENERIC_ARGUMENTS);
|
|
590
|
-
const TUPLE_ELEMENT_NAME = {
|
|
591
|
-
match: concat(identifier, /\s*:/),
|
|
592
|
-
keywords: "_|0",
|
|
593
|
-
relevance: 0
|
|
594
|
-
};
|
|
595
|
-
const TUPLE = {
|
|
596
|
-
begin: /\(/,
|
|
597
|
-
end: /\)/,
|
|
598
|
-
relevance: 0,
|
|
599
|
-
keywords: KEYWORDS,
|
|
600
|
-
contains: [
|
|
601
|
-
"self",
|
|
602
|
-
TUPLE_ELEMENT_NAME,
|
|
603
|
-
...COMMENTS,
|
|
604
|
-
...KEYWORD_MODES,
|
|
605
|
-
...BUILT_INS,
|
|
606
|
-
...OPERATORS,
|
|
607
|
-
NUMBER,
|
|
608
|
-
STRING,
|
|
609
|
-
...IDENTIFIERS,
|
|
610
|
-
...ATTRIBUTES,
|
|
611
|
-
TYPE
|
|
612
|
-
]
|
|
613
|
-
};
|
|
614
|
-
const FUNC_PLUS_TITLE = {
|
|
615
|
-
beginKeywords: "func",
|
|
616
|
-
contains: [
|
|
617
|
-
{
|
|
618
|
-
className: "title",
|
|
619
|
-
match: either(QUOTED_IDENTIFIER.match, identifier, operator),
|
|
620
|
-
// Required to make sure the opening < of the generic parameter clause
|
|
621
|
-
// isn't parsed as a second title.
|
|
622
|
-
endsParent: true,
|
|
623
|
-
relevance: 0
|
|
624
|
-
},
|
|
625
|
-
WHITESPACE
|
|
626
|
-
]
|
|
627
|
-
};
|
|
628
|
-
const GENERIC_PARAMETERS = {
|
|
629
|
-
begin: /</,
|
|
630
|
-
end: />/,
|
|
631
|
-
contains: [
|
|
632
|
-
...COMMENTS,
|
|
633
|
-
TYPE
|
|
634
|
-
]
|
|
635
|
-
};
|
|
636
|
-
const FUNCTION_PARAMETER_NAME = {
|
|
637
|
-
begin: either(
|
|
638
|
-
lookahead(concat(identifier, /\s*:/)),
|
|
639
|
-
lookahead(concat(identifier, /\s+/, identifier, /\s*:/))
|
|
640
|
-
),
|
|
641
|
-
end: /:/,
|
|
642
|
-
relevance: 0,
|
|
643
|
-
contains: [
|
|
644
|
-
{
|
|
645
|
-
className: "keyword",
|
|
646
|
-
match: /\b_\b/
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
className: "params",
|
|
650
|
-
match: identifier
|
|
651
|
-
}
|
|
652
|
-
]
|
|
653
|
-
};
|
|
654
|
-
const FUNCTION_PARAMETERS = {
|
|
655
|
-
begin: /\(/,
|
|
656
|
-
end: /\)/,
|
|
657
|
-
keywords: KEYWORDS,
|
|
658
|
-
contains: [
|
|
659
|
-
FUNCTION_PARAMETER_NAME,
|
|
660
|
-
...COMMENTS,
|
|
661
|
-
...KEYWORD_MODES,
|
|
662
|
-
...OPERATORS,
|
|
663
|
-
NUMBER,
|
|
664
|
-
STRING,
|
|
665
|
-
...ATTRIBUTES,
|
|
666
|
-
TYPE,
|
|
667
|
-
TUPLE
|
|
668
|
-
],
|
|
669
|
-
endsParent: true,
|
|
670
|
-
illegal: /["']/
|
|
671
|
-
};
|
|
672
|
-
const FUNCTION = {
|
|
673
|
-
className: "function",
|
|
674
|
-
match: lookahead(/\bfunc\b/),
|
|
675
|
-
contains: [
|
|
676
|
-
FUNC_PLUS_TITLE,
|
|
677
|
-
GENERIC_PARAMETERS,
|
|
678
|
-
FUNCTION_PARAMETERS,
|
|
679
|
-
WHITESPACE
|
|
680
|
-
],
|
|
681
|
-
illegal: [
|
|
682
|
-
/\[/,
|
|
683
|
-
/%/
|
|
684
|
-
]
|
|
685
|
-
};
|
|
686
|
-
const INIT_SUBSCRIPT = {
|
|
687
|
-
className: "function",
|
|
688
|
-
match: /\b(subscript|init[?!]?)\s*(?=[<(])/,
|
|
689
|
-
keywords: {
|
|
690
|
-
keyword: "subscript init init? init!",
|
|
691
|
-
$pattern: /\w+[?!]?/
|
|
692
|
-
},
|
|
693
|
-
contains: [
|
|
694
|
-
GENERIC_PARAMETERS,
|
|
695
|
-
FUNCTION_PARAMETERS,
|
|
696
|
-
WHITESPACE
|
|
697
|
-
],
|
|
698
|
-
illegal: /\[|%/
|
|
699
|
-
};
|
|
700
|
-
const OPERATOR_DECLARATION = {
|
|
701
|
-
beginKeywords: "operator",
|
|
702
|
-
end: hljs.MATCH_NOTHING_RE,
|
|
703
|
-
contains: [
|
|
704
|
-
{
|
|
705
|
-
className: "title",
|
|
706
|
-
match: operator,
|
|
707
|
-
endsParent: true,
|
|
708
|
-
relevance: 0
|
|
709
|
-
}
|
|
710
|
-
]
|
|
711
|
-
};
|
|
712
|
-
const PRECEDENCEGROUP = {
|
|
713
|
-
beginKeywords: "precedencegroup",
|
|
714
|
-
end: hljs.MATCH_NOTHING_RE,
|
|
715
|
-
contains: [
|
|
716
|
-
{
|
|
717
|
-
className: "title",
|
|
718
|
-
match: typeIdentifier,
|
|
719
|
-
relevance: 0
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
begin: /{/,
|
|
723
|
-
end: /}/,
|
|
724
|
-
relevance: 0,
|
|
725
|
-
endsParent: true,
|
|
726
|
-
keywords: [
|
|
727
|
-
...precedencegroupKeywords,
|
|
728
|
-
...literals
|
|
729
|
-
],
|
|
730
|
-
contains: [TYPE]
|
|
731
|
-
}
|
|
732
|
-
]
|
|
733
|
-
};
|
|
734
|
-
for (const variant of STRING.variants) {
|
|
735
|
-
const interpolation = variant.contains.find((mode) => mode.label === "interpol");
|
|
736
|
-
interpolation.keywords = KEYWORDS;
|
|
737
|
-
const submodes = [
|
|
738
|
-
...KEYWORD_MODES,
|
|
739
|
-
...BUILT_INS,
|
|
740
|
-
...OPERATORS,
|
|
741
|
-
NUMBER,
|
|
742
|
-
STRING,
|
|
743
|
-
...IDENTIFIERS
|
|
744
|
-
];
|
|
745
|
-
interpolation.contains = [
|
|
746
|
-
...submodes,
|
|
747
|
-
{
|
|
748
|
-
begin: /\(/,
|
|
749
|
-
end: /\)/,
|
|
750
|
-
contains: [
|
|
751
|
-
"self",
|
|
752
|
-
...submodes
|
|
753
|
-
]
|
|
754
|
-
}
|
|
755
|
-
];
|
|
756
|
-
}
|
|
757
|
-
return {
|
|
758
|
-
name: "Swift",
|
|
759
|
-
keywords: KEYWORDS,
|
|
760
|
-
contains: [
|
|
761
|
-
...COMMENTS,
|
|
762
|
-
FUNCTION,
|
|
763
|
-
INIT_SUBSCRIPT,
|
|
764
|
-
{
|
|
765
|
-
className: "class",
|
|
766
|
-
beginKeywords: "struct protocol class extension enum",
|
|
767
|
-
end: "\\{",
|
|
768
|
-
excludeEnd: true,
|
|
769
|
-
keywords: KEYWORDS,
|
|
770
|
-
contains: [
|
|
771
|
-
hljs.inherit(hljs.TITLE_MODE, {
|
|
772
|
-
begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
|
|
773
|
-
}),
|
|
774
|
-
...KEYWORD_MODES
|
|
775
|
-
]
|
|
776
|
-
},
|
|
777
|
-
OPERATOR_DECLARATION,
|
|
778
|
-
PRECEDENCEGROUP,
|
|
779
|
-
{
|
|
780
|
-
beginKeywords: "import",
|
|
781
|
-
end: /$/,
|
|
782
|
-
contains: [...COMMENTS],
|
|
783
|
-
relevance: 0
|
|
784
|
-
},
|
|
785
|
-
...KEYWORD_MODES,
|
|
786
|
-
...BUILT_INS,
|
|
787
|
-
...OPERATORS,
|
|
788
|
-
NUMBER,
|
|
789
|
-
STRING,
|
|
790
|
-
...IDENTIFIERS,
|
|
791
|
-
...ATTRIBUTES,
|
|
792
|
-
TYPE,
|
|
793
|
-
TUPLE
|
|
794
|
-
]
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
module.exports = swift;
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
export default require_swift();
|