@banyan_cloud/roots 1.0.57 → 1.0.59
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/cjs/index.js +509 -506
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +509 -506
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +509 -506
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17695,479 +17695,470 @@ function asmatmel(Prism) {
|
|
|
17695
17695
|
};
|
|
17696
17696
|
}
|
|
17697
17697
|
|
|
17698
|
-
var csharp_1;
|
|
17699
|
-
|
|
17700
|
-
|
|
17701
|
-
function
|
|
17702
|
-
if (hasRequiredCsharp) return csharp_1;
|
|
17703
|
-
hasRequiredCsharp = 1;
|
|
17704
|
-
|
|
17705
|
-
csharp_1 = csharp;
|
|
17706
|
-
csharp.displayName = 'csharp';
|
|
17707
|
-
csharp.aliases = ['dotnet', 'cs'];
|
|
17708
|
-
function csharp(Prism) {
|
|
17698
|
+
var csharp_1 = csharp;
|
|
17699
|
+
csharp.displayName = 'csharp';
|
|
17700
|
+
csharp.aliases = ['dotnet', 'cs'];
|
|
17701
|
+
function csharp(Prism) {
|
|
17709
17702
|
(function (Prism) {
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
|
-
|
|
17713
|
-
|
|
17714
|
-
|
|
17715
|
-
|
|
17716
|
-
|
|
17717
|
-
|
|
17718
|
-
|
|
17719
|
-
|
|
17720
|
-
|
|
17721
|
-
|
|
17722
|
-
|
|
17723
|
-
|
|
17724
|
-
|
|
17725
|
-
|
|
17726
|
-
|
|
17727
|
-
|
|
17728
|
-
|
|
17729
|
-
|
|
17730
|
-
|
|
17731
|
-
|
|
17732
|
-
|
|
17733
|
-
|
|
17734
|
-
|
|
17735
|
-
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
|
|
17744
|
-
|
|
17745
|
-
|
|
17746
|
-
|
|
17747
|
-
|
|
17748
|
-
|
|
17749
|
-
|
|
17750
|
-
|
|
17751
|
-
|
|
17752
|
-
|
|
17753
|
-
|
|
17754
|
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
17766
|
-
|
|
17767
|
-
|
|
17768
|
-
|
|
17769
|
-
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
|
|
17786
|
-
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
17815
|
-
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
|
|
17871
|
-
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17908
|
-
|
|
17909
|
-
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
17917
|
-
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
|
|
17926
|
-
|
|
17927
|
-
|
|
17928
|
-
|
|
17929
|
-
|
|
17930
|
-
|
|
17931
|
-
|
|
17932
|
-
|
|
17933
|
-
|
|
17934
|
-
|
|
17935
|
-
|
|
17936
|
-
|
|
17937
|
-
|
|
17938
|
-
|
|
17939
|
-
|
|
17940
|
-
|
|
17941
|
-
|
|
17942
|
-
|
|
17943
|
-
|
|
17944
|
-
|
|
17945
|
-
|
|
17946
|
-
|
|
17947
|
-
|
|
17948
|
-
|
|
17949
|
-
|
|
17950
|
-
|
|
17951
|
-
|
|
17952
|
-
|
|
17953
|
-
|
|
17954
|
-
|
|
17955
|
-
|
|
17956
|
-
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
|
|
17965
|
-
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
|
|
17973
|
-
|
|
17974
|
-
|
|
17975
|
-
|
|
17976
|
-
|
|
17977
|
-
|
|
17978
|
-
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
|
|
17991
|
-
|
|
17992
|
-
|
|
17993
|
-
|
|
17994
|
-
|
|
17995
|
-
|
|
17996
|
-
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
|
|
18003
|
-
|
|
18004
|
-
|
|
18005
|
-
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
|
|
18036
|
-
|
|
18037
|
-
|
|
18038
|
-
|
|
18039
|
-
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
|
|
18058
|
-
|
|
18059
|
-
|
|
18060
|
-
|
|
18061
|
-
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
|
|
18065
|
-
|
|
18066
|
-
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
18071
|
-
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18115
|
-
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
|
|
18125
|
-
|
|
18126
|
-
|
|
18127
|
-
|
|
18128
|
-
|
|
18129
|
-
|
|
18130
|
-
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
|
|
18145
|
-
|
|
18146
|
-
|
|
18147
|
-
|
|
18148
|
-
|
|
18149
|
-
|
|
18150
|
-
|
|
18151
|
-
|
|
18152
|
-
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
}
|
|
18167
|
-
return csharp_1;
|
|
17703
|
+
/**
|
|
17704
|
+
* Replaces all placeholders "<<n>>" of given pattern with the n-th replacement (zero based).
|
|
17705
|
+
*
|
|
17706
|
+
* Note: This is a simple text based replacement. Be careful when using backreferences!
|
|
17707
|
+
*
|
|
17708
|
+
* @param {string} pattern the given pattern.
|
|
17709
|
+
* @param {string[]} replacements a list of replacement which can be inserted into the given pattern.
|
|
17710
|
+
* @returns {string} the pattern with all placeholders replaced with their corresponding replacements.
|
|
17711
|
+
* @example replace(/a<<0>>a/.source, [/b+/.source]) === /a(?:b+)a/.source
|
|
17712
|
+
*/
|
|
17713
|
+
function replace(pattern, replacements) {
|
|
17714
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
17715
|
+
return '(?:' + replacements[+index] + ')'
|
|
17716
|
+
})
|
|
17717
|
+
}
|
|
17718
|
+
/**
|
|
17719
|
+
* @param {string} pattern
|
|
17720
|
+
* @param {string[]} replacements
|
|
17721
|
+
* @param {string} [flags]
|
|
17722
|
+
* @returns {RegExp}
|
|
17723
|
+
*/
|
|
17724
|
+
function re(pattern, replacements, flags) {
|
|
17725
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
17726
|
+
}
|
|
17727
|
+
/**
|
|
17728
|
+
* Creates a nested pattern where all occurrences of the string `<<self>>` are replaced with the pattern itself.
|
|
17729
|
+
*
|
|
17730
|
+
* @param {string} pattern
|
|
17731
|
+
* @param {number} depthLog2
|
|
17732
|
+
* @returns {string}
|
|
17733
|
+
*/
|
|
17734
|
+
function nested(pattern, depthLog2) {
|
|
17735
|
+
for (var i = 0; i < depthLog2; i++) {
|
|
17736
|
+
pattern = pattern.replace(/<<self>>/g, function () {
|
|
17737
|
+
return '(?:' + pattern + ')'
|
|
17738
|
+
});
|
|
17739
|
+
}
|
|
17740
|
+
return pattern.replace(/<<self>>/g, '[^\\s\\S]')
|
|
17741
|
+
} // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/
|
|
17742
|
+
var keywordKinds = {
|
|
17743
|
+
// keywords which represent a return or variable type
|
|
17744
|
+
type: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',
|
|
17745
|
+
// keywords which are used to declare a type
|
|
17746
|
+
typeDeclaration: 'class enum interface record struct',
|
|
17747
|
+
// contextual keywords
|
|
17748
|
+
// ("var" and "dynamic" are missing because they are used like types)
|
|
17749
|
+
contextual:
|
|
17750
|
+
'add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)',
|
|
17751
|
+
// all other keywords
|
|
17752
|
+
other:
|
|
17753
|
+
'abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield'
|
|
17754
|
+
}; // keywords
|
|
17755
|
+
function keywordsToPattern(words) {
|
|
17756
|
+
return '\\b(?:' + words.trim().replace(/ /g, '|') + ')\\b'
|
|
17757
|
+
}
|
|
17758
|
+
var typeDeclarationKeywords = keywordsToPattern(
|
|
17759
|
+
keywordKinds.typeDeclaration
|
|
17760
|
+
);
|
|
17761
|
+
var keywords = RegExp(
|
|
17762
|
+
keywordsToPattern(
|
|
17763
|
+
keywordKinds.type +
|
|
17764
|
+
' ' +
|
|
17765
|
+
keywordKinds.typeDeclaration +
|
|
17766
|
+
' ' +
|
|
17767
|
+
keywordKinds.contextual +
|
|
17768
|
+
' ' +
|
|
17769
|
+
keywordKinds.other
|
|
17770
|
+
)
|
|
17771
|
+
);
|
|
17772
|
+
var nonTypeKeywords = keywordsToPattern(
|
|
17773
|
+
keywordKinds.typeDeclaration +
|
|
17774
|
+
' ' +
|
|
17775
|
+
keywordKinds.contextual +
|
|
17776
|
+
' ' +
|
|
17777
|
+
keywordKinds.other
|
|
17778
|
+
);
|
|
17779
|
+
var nonContextualKeywords = keywordsToPattern(
|
|
17780
|
+
keywordKinds.type +
|
|
17781
|
+
' ' +
|
|
17782
|
+
keywordKinds.typeDeclaration +
|
|
17783
|
+
' ' +
|
|
17784
|
+
keywordKinds.other
|
|
17785
|
+
); // types
|
|
17786
|
+
var generic = nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2); // the idea behind the other forbidden characters is to prevent false positives. Same for tupleElement.
|
|
17787
|
+
var nestedRound = nested(/\((?:[^()]|<<self>>)*\)/.source, 2);
|
|
17788
|
+
var name = /@?\b[A-Za-z_]\w*\b/.source;
|
|
17789
|
+
var genericName = replace(/<<0>>(?:\s*<<1>>)?/.source, [name, generic]);
|
|
17790
|
+
var identifier = replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
|
|
17791
|
+
nonTypeKeywords,
|
|
17792
|
+
genericName
|
|
17793
|
+
]);
|
|
17794
|
+
var array = /\[\s*(?:,\s*)*\]/.source;
|
|
17795
|
+
var typeExpressionWithoutTuple = replace(
|
|
17796
|
+
/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
|
|
17797
|
+
[identifier, array]
|
|
17798
|
+
);
|
|
17799
|
+
var tupleElement = replace(
|
|
17800
|
+
/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
|
|
17801
|
+
[generic, nestedRound, array]
|
|
17802
|
+
);
|
|
17803
|
+
var tuple = replace(/\(<<0>>+(?:,<<0>>+)+\)/.source, [tupleElement]);
|
|
17804
|
+
var typeExpression = replace(
|
|
17805
|
+
/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
|
|
17806
|
+
[tuple, identifier, array]
|
|
17807
|
+
);
|
|
17808
|
+
var typeInside = {
|
|
17809
|
+
keyword: keywords,
|
|
17810
|
+
punctuation: /[<>()?,.:[\]]/
|
|
17811
|
+
}; // strings & characters
|
|
17812
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#character-literals
|
|
17813
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#string-literals
|
|
17814
|
+
var character = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source; // simplified pattern
|
|
17815
|
+
var regularString = /"(?:\\.|[^\\"\r\n])*"/.source;
|
|
17816
|
+
var verbatimString = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
17817
|
+
Prism.languages.csharp = Prism.languages.extend('clike', {
|
|
17818
|
+
string: [
|
|
17819
|
+
{
|
|
17820
|
+
pattern: re(/(^|[^$\\])<<0>>/.source, [verbatimString]),
|
|
17821
|
+
lookbehind: true,
|
|
17822
|
+
greedy: true
|
|
17823
|
+
},
|
|
17824
|
+
{
|
|
17825
|
+
pattern: re(/(^|[^@$\\])<<0>>/.source, [regularString]),
|
|
17826
|
+
lookbehind: true,
|
|
17827
|
+
greedy: true
|
|
17828
|
+
}
|
|
17829
|
+
],
|
|
17830
|
+
'class-name': [
|
|
17831
|
+
{
|
|
17832
|
+
// Using static
|
|
17833
|
+
// using static System.Math;
|
|
17834
|
+
pattern: re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [
|
|
17835
|
+
identifier
|
|
17836
|
+
]),
|
|
17837
|
+
lookbehind: true,
|
|
17838
|
+
inside: typeInside
|
|
17839
|
+
},
|
|
17840
|
+
{
|
|
17841
|
+
// Using alias (type)
|
|
17842
|
+
// using Project = PC.MyCompany.Project;
|
|
17843
|
+
pattern: re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
|
|
17844
|
+
name,
|
|
17845
|
+
typeExpression
|
|
17846
|
+
]),
|
|
17847
|
+
lookbehind: true,
|
|
17848
|
+
inside: typeInside
|
|
17849
|
+
},
|
|
17850
|
+
{
|
|
17851
|
+
// Using alias (alias)
|
|
17852
|
+
// using Project = PC.MyCompany.Project;
|
|
17853
|
+
pattern: re(/(\busing\s+)<<0>>(?=\s*=)/.source, [name]),
|
|
17854
|
+
lookbehind: true
|
|
17855
|
+
},
|
|
17856
|
+
{
|
|
17857
|
+
// Type declarations
|
|
17858
|
+
// class Foo<A, B>
|
|
17859
|
+
// interface Foo<out A, B>
|
|
17860
|
+
pattern: re(/(\b<<0>>\s+)<<1>>/.source, [
|
|
17861
|
+
typeDeclarationKeywords,
|
|
17862
|
+
genericName
|
|
17863
|
+
]),
|
|
17864
|
+
lookbehind: true,
|
|
17865
|
+
inside: typeInside
|
|
17866
|
+
},
|
|
17867
|
+
{
|
|
17868
|
+
// Single catch exception declaration
|
|
17869
|
+
// catch(Foo)
|
|
17870
|
+
// (things like catch(Foo e) is covered by variable declaration)
|
|
17871
|
+
pattern: re(/(\bcatch\s*\(\s*)<<0>>/.source, [identifier]),
|
|
17872
|
+
lookbehind: true,
|
|
17873
|
+
inside: typeInside
|
|
17874
|
+
},
|
|
17875
|
+
{
|
|
17876
|
+
// Name of the type parameter of generic constraints
|
|
17877
|
+
// where Foo : class
|
|
17878
|
+
pattern: re(/(\bwhere\s+)<<0>>/.source, [name]),
|
|
17879
|
+
lookbehind: true
|
|
17880
|
+
},
|
|
17881
|
+
{
|
|
17882
|
+
// Casts and checks via as and is.
|
|
17883
|
+
// as Foo<A>, is Bar<B>
|
|
17884
|
+
// (things like if(a is Foo b) is covered by variable declaration)
|
|
17885
|
+
pattern: re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
|
|
17886
|
+
typeExpressionWithoutTuple
|
|
17887
|
+
]),
|
|
17888
|
+
lookbehind: true,
|
|
17889
|
+
inside: typeInside
|
|
17890
|
+
},
|
|
17891
|
+
{
|
|
17892
|
+
// Variable, field and parameter declaration
|
|
17893
|
+
// (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
|
|
17894
|
+
pattern: re(
|
|
17895
|
+
/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/
|
|
17896
|
+
.source,
|
|
17897
|
+
[typeExpression, nonContextualKeywords, name]
|
|
17898
|
+
),
|
|
17899
|
+
inside: typeInside
|
|
17900
|
+
}
|
|
17901
|
+
],
|
|
17902
|
+
keyword: keywords,
|
|
17903
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
|
|
17904
|
+
number:
|
|
17905
|
+
/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,
|
|
17906
|
+
operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
|
|
17907
|
+
punctuation: /\?\.?|::|[{}[\];(),.:]/
|
|
17908
|
+
});
|
|
17909
|
+
Prism.languages.insertBefore('csharp', 'number', {
|
|
17910
|
+
range: {
|
|
17911
|
+
pattern: /\.\./,
|
|
17912
|
+
alias: 'operator'
|
|
17913
|
+
}
|
|
17914
|
+
});
|
|
17915
|
+
Prism.languages.insertBefore('csharp', 'punctuation', {
|
|
17916
|
+
'named-parameter': {
|
|
17917
|
+
pattern: re(/([(,]\s*)<<0>>(?=\s*:)/.source, [name]),
|
|
17918
|
+
lookbehind: true,
|
|
17919
|
+
alias: 'punctuation'
|
|
17920
|
+
}
|
|
17921
|
+
});
|
|
17922
|
+
Prism.languages.insertBefore('csharp', 'class-name', {
|
|
17923
|
+
namespace: {
|
|
17924
|
+
// namespace Foo.Bar {}
|
|
17925
|
+
// using Foo.Bar;
|
|
17926
|
+
pattern: re(
|
|
17927
|
+
/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,
|
|
17928
|
+
[name]
|
|
17929
|
+
),
|
|
17930
|
+
lookbehind: true,
|
|
17931
|
+
inside: {
|
|
17932
|
+
punctuation: /\./
|
|
17933
|
+
}
|
|
17934
|
+
},
|
|
17935
|
+
'type-expression': {
|
|
17936
|
+
// default(Foo), typeof(Foo<Bar>), sizeof(int)
|
|
17937
|
+
pattern: re(
|
|
17938
|
+
/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/
|
|
17939
|
+
.source,
|
|
17940
|
+
[nestedRound]
|
|
17941
|
+
),
|
|
17942
|
+
lookbehind: true,
|
|
17943
|
+
alias: 'class-name',
|
|
17944
|
+
inside: typeInside
|
|
17945
|
+
},
|
|
17946
|
+
'return-type': {
|
|
17947
|
+
// Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
|
|
17948
|
+
// int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
|
|
17949
|
+
// int Foo => 0; int Foo { get; set } = 0;
|
|
17950
|
+
pattern: re(
|
|
17951
|
+
/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,
|
|
17952
|
+
[typeExpression, identifier]
|
|
17953
|
+
),
|
|
17954
|
+
inside: typeInside,
|
|
17955
|
+
alias: 'class-name'
|
|
17956
|
+
},
|
|
17957
|
+
'constructor-invocation': {
|
|
17958
|
+
// new List<Foo<Bar[]>> { }
|
|
17959
|
+
pattern: re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [typeExpression]),
|
|
17960
|
+
lookbehind: true,
|
|
17961
|
+
inside: typeInside,
|
|
17962
|
+
alias: 'class-name'
|
|
17963
|
+
},
|
|
17964
|
+
/*'explicit-implementation': {
|
|
17965
|
+
// int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
|
|
17966
|
+
pattern: replace(/\b<<0>>(?=\.<<1>>)/, className, methodOrPropertyDeclaration),
|
|
17967
|
+
inside: classNameInside,
|
|
17968
|
+
alias: 'class-name'
|
|
17969
|
+
},*/
|
|
17970
|
+
'generic-method': {
|
|
17971
|
+
// foo<Bar>()
|
|
17972
|
+
pattern: re(/<<0>>\s*<<1>>(?=\s*\()/.source, [name, generic]),
|
|
17973
|
+
inside: {
|
|
17974
|
+
function: re(/^<<0>>/.source, [name]),
|
|
17975
|
+
generic: {
|
|
17976
|
+
pattern: RegExp(generic),
|
|
17977
|
+
alias: 'class-name',
|
|
17978
|
+
inside: typeInside
|
|
17979
|
+
}
|
|
17980
|
+
}
|
|
17981
|
+
},
|
|
17982
|
+
'type-list': {
|
|
17983
|
+
// The list of types inherited or of generic constraints
|
|
17984
|
+
// class Foo<F> : Bar, IList<FooBar>
|
|
17985
|
+
// where F : Bar, IList<int>
|
|
17986
|
+
pattern: re(
|
|
17987
|
+
/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/
|
|
17988
|
+
.source,
|
|
17989
|
+
[
|
|
17990
|
+
typeDeclarationKeywords,
|
|
17991
|
+
genericName,
|
|
17992
|
+
name,
|
|
17993
|
+
typeExpression,
|
|
17994
|
+
keywords.source,
|
|
17995
|
+
nestedRound,
|
|
17996
|
+
/\bnew\s*\(\s*\)/.source
|
|
17997
|
+
]
|
|
17998
|
+
),
|
|
17999
|
+
lookbehind: true,
|
|
18000
|
+
inside: {
|
|
18001
|
+
'record-arguments': {
|
|
18002
|
+
pattern: re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [
|
|
18003
|
+
genericName,
|
|
18004
|
+
nestedRound
|
|
18005
|
+
]),
|
|
18006
|
+
lookbehind: true,
|
|
18007
|
+
greedy: true,
|
|
18008
|
+
inside: Prism.languages.csharp
|
|
18009
|
+
},
|
|
18010
|
+
keyword: keywords,
|
|
18011
|
+
'class-name': {
|
|
18012
|
+
pattern: RegExp(typeExpression),
|
|
18013
|
+
greedy: true,
|
|
18014
|
+
inside: typeInside
|
|
18015
|
+
},
|
|
18016
|
+
punctuation: /[,()]/
|
|
18017
|
+
}
|
|
18018
|
+
},
|
|
18019
|
+
preprocessor: {
|
|
18020
|
+
pattern: /(^[\t ]*)#.*/m,
|
|
18021
|
+
lookbehind: true,
|
|
18022
|
+
alias: 'property',
|
|
18023
|
+
inside: {
|
|
18024
|
+
// highlight preprocessor directives as keywords
|
|
18025
|
+
directive: {
|
|
18026
|
+
pattern:
|
|
18027
|
+
/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
|
|
18028
|
+
lookbehind: true,
|
|
18029
|
+
alias: 'keyword'
|
|
18030
|
+
}
|
|
18031
|
+
}
|
|
18032
|
+
}
|
|
18033
|
+
}); // attributes
|
|
18034
|
+
var regularStringOrCharacter = regularString + '|' + character;
|
|
18035
|
+
var regularStringCharacterOrComment = replace(
|
|
18036
|
+
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
18037
|
+
[regularStringOrCharacter]
|
|
18038
|
+
);
|
|
18039
|
+
var roundExpression = nested(
|
|
18040
|
+
replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
18041
|
+
regularStringCharacterOrComment
|
|
18042
|
+
]),
|
|
18043
|
+
2
|
|
18044
|
+
); // https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets
|
|
18045
|
+
var attrTarget =
|
|
18046
|
+
/\b(?:assembly|event|field|method|module|param|property|return|type)\b/
|
|
18047
|
+
.source;
|
|
18048
|
+
var attr = replace(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
|
|
18049
|
+
identifier,
|
|
18050
|
+
roundExpression
|
|
18051
|
+
]);
|
|
18052
|
+
Prism.languages.insertBefore('csharp', 'class-name', {
|
|
18053
|
+
attribute: {
|
|
18054
|
+
// Attributes
|
|
18055
|
+
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
18056
|
+
pattern: re(
|
|
18057
|
+
/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/
|
|
18058
|
+
.source,
|
|
18059
|
+
[attrTarget, attr]
|
|
18060
|
+
),
|
|
18061
|
+
lookbehind: true,
|
|
18062
|
+
greedy: true,
|
|
18063
|
+
inside: {
|
|
18064
|
+
target: {
|
|
18065
|
+
pattern: re(/^<<0>>(?=\s*:)/.source, [attrTarget]),
|
|
18066
|
+
alias: 'keyword'
|
|
18067
|
+
},
|
|
18068
|
+
'attribute-arguments': {
|
|
18069
|
+
pattern: re(/\(<<0>>*\)/.source, [roundExpression]),
|
|
18070
|
+
inside: Prism.languages.csharp
|
|
18071
|
+
},
|
|
18072
|
+
'class-name': {
|
|
18073
|
+
pattern: RegExp(identifier),
|
|
18074
|
+
inside: {
|
|
18075
|
+
punctuation: /\./
|
|
18076
|
+
}
|
|
18077
|
+
},
|
|
18078
|
+
punctuation: /[:,]/
|
|
18079
|
+
}
|
|
18080
|
+
}
|
|
18081
|
+
}); // string interpolation
|
|
18082
|
+
var formatString = /:[^}\r\n]+/.source; // multi line
|
|
18083
|
+
var mInterpolationRound = nested(
|
|
18084
|
+
replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
18085
|
+
regularStringCharacterOrComment
|
|
18086
|
+
]),
|
|
18087
|
+
2
|
|
18088
|
+
);
|
|
18089
|
+
var mInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
18090
|
+
mInterpolationRound,
|
|
18091
|
+
formatString
|
|
18092
|
+
]); // single line
|
|
18093
|
+
var sInterpolationRound = nested(
|
|
18094
|
+
replace(
|
|
18095
|
+
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/
|
|
18096
|
+
.source,
|
|
18097
|
+
[regularStringOrCharacter]
|
|
18098
|
+
),
|
|
18099
|
+
2
|
|
18100
|
+
);
|
|
18101
|
+
var sInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
18102
|
+
sInterpolationRound,
|
|
18103
|
+
formatString
|
|
18104
|
+
]);
|
|
18105
|
+
function createInterpolationInside(interpolation, interpolationRound) {
|
|
18106
|
+
return {
|
|
18107
|
+
interpolation: {
|
|
18108
|
+
pattern: re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [interpolation]),
|
|
18109
|
+
lookbehind: true,
|
|
18110
|
+
inside: {
|
|
18111
|
+
'format-string': {
|
|
18112
|
+
pattern: re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
|
|
18113
|
+
interpolationRound,
|
|
18114
|
+
formatString
|
|
18115
|
+
]),
|
|
18116
|
+
lookbehind: true,
|
|
18117
|
+
inside: {
|
|
18118
|
+
punctuation: /^:/
|
|
18119
|
+
}
|
|
18120
|
+
},
|
|
18121
|
+
punctuation: /^\{|\}$/,
|
|
18122
|
+
expression: {
|
|
18123
|
+
pattern: /[\s\S]+/,
|
|
18124
|
+
alias: 'language-csharp',
|
|
18125
|
+
inside: Prism.languages.csharp
|
|
18126
|
+
}
|
|
18127
|
+
}
|
|
18128
|
+
},
|
|
18129
|
+
string: /[\s\S]+/
|
|
18130
|
+
}
|
|
18131
|
+
}
|
|
18132
|
+
Prism.languages.insertBefore('csharp', 'string', {
|
|
18133
|
+
'interpolation-string': [
|
|
18134
|
+
{
|
|
18135
|
+
pattern: re(
|
|
18136
|
+
/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,
|
|
18137
|
+
[mInterpolation]
|
|
18138
|
+
),
|
|
18139
|
+
lookbehind: true,
|
|
18140
|
+
greedy: true,
|
|
18141
|
+
inside: createInterpolationInside(mInterpolation, mInterpolationRound)
|
|
18142
|
+
},
|
|
18143
|
+
{
|
|
18144
|
+
pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [
|
|
18145
|
+
sInterpolation
|
|
18146
|
+
]),
|
|
18147
|
+
lookbehind: true,
|
|
18148
|
+
greedy: true,
|
|
18149
|
+
inside: createInterpolationInside(sInterpolation, sInterpolationRound)
|
|
18150
|
+
}
|
|
18151
|
+
],
|
|
18152
|
+
char: {
|
|
18153
|
+
pattern: RegExp(character),
|
|
18154
|
+
greedy: true
|
|
18155
|
+
}
|
|
18156
|
+
});
|
|
18157
|
+
Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
|
|
18158
|
+
})(Prism);
|
|
18168
18159
|
}
|
|
18169
18160
|
|
|
18170
|
-
var refractorCsharp =
|
|
18161
|
+
var refractorCsharp = csharp_1;
|
|
18171
18162
|
var aspnet_1 = aspnet;
|
|
18172
18163
|
aspnet.displayName = 'aspnet';
|
|
18173
18164
|
aspnet.aliases = [];
|
|
@@ -19428,31 +19419,40 @@ function chaiscript(Prism) {
|
|
|
19428
19419
|
});
|
|
19429
19420
|
}
|
|
19430
19421
|
|
|
19431
|
-
var cil_1
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
function
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
19422
|
+
var cil_1;
|
|
19423
|
+
var hasRequiredCil;
|
|
19424
|
+
|
|
19425
|
+
function requireCil () {
|
|
19426
|
+
if (hasRequiredCil) return cil_1;
|
|
19427
|
+
hasRequiredCil = 1;
|
|
19428
|
+
|
|
19429
|
+
cil_1 = cil;
|
|
19430
|
+
cil.displayName = 'cil';
|
|
19431
|
+
cil.aliases = [];
|
|
19432
|
+
function cil(Prism) {
|
|
19433
|
+
Prism.languages.cil = {
|
|
19434
|
+
comment: /\/\/.*/,
|
|
19435
|
+
string: {
|
|
19436
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
19437
|
+
greedy: true
|
|
19438
|
+
},
|
|
19439
|
+
directive: {
|
|
19440
|
+
pattern: /(^|\W)\.[a-z]+(?=\s)/,
|
|
19441
|
+
lookbehind: true,
|
|
19442
|
+
alias: 'class-name'
|
|
19443
|
+
},
|
|
19444
|
+
// Actually an assembly reference
|
|
19445
|
+
variable: /\[[\w\.]+\]/,
|
|
19446
|
+
keyword:
|
|
19447
|
+
/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,
|
|
19448
|
+
function:
|
|
19449
|
+
/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,
|
|
19450
|
+
boolean: /\b(?:false|true)\b/,
|
|
19451
|
+
number: /\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,
|
|
19452
|
+
punctuation: /[{}[\];(),:=]|IL_[0-9A-Za-z]+/
|
|
19453
|
+
};
|
|
19454
|
+
}
|
|
19455
|
+
return cil_1;
|
|
19456
19456
|
}
|
|
19457
19457
|
|
|
19458
19458
|
var clojure_1 = clojure;
|
|
@@ -20077,7 +20077,7 @@ var hasRequiredCshtml;
|
|
|
20077
20077
|
function requireCshtml () {
|
|
20078
20078
|
if (hasRequiredCshtml) return cshtml_1;
|
|
20079
20079
|
hasRequiredCshtml = 1;
|
|
20080
|
-
var refractorCsharp =
|
|
20080
|
+
var refractorCsharp = csharp_1;
|
|
20081
20081
|
cshtml_1 = cshtml;
|
|
20082
20082
|
cshtml.displayName = 'cshtml';
|
|
20083
20083
|
cshtml.aliases = ['razor'];
|
|
@@ -36759,7 +36759,7 @@ function requireT4Cs () {
|
|
|
36759
36759
|
if (hasRequiredT4Cs) return t4Cs_1;
|
|
36760
36760
|
hasRequiredT4Cs = 1;
|
|
36761
36761
|
var refractorT4Templating = requireT4Templating();
|
|
36762
|
-
var refractorCsharp =
|
|
36762
|
+
var refractorCsharp = csharp_1;
|
|
36763
36763
|
t4Cs_1 = t4Cs;
|
|
36764
36764
|
t4Cs.displayName = 't4Cs';
|
|
36765
36765
|
t4Cs.aliases = [];
|
|
@@ -39533,7 +39533,7 @@ refractor.register(bsl_1);
|
|
|
39533
39533
|
refractor.register(c_1);
|
|
39534
39534
|
refractor.register(cfscript_1);
|
|
39535
39535
|
refractor.register(chaiscript_1);
|
|
39536
|
-
refractor.register(
|
|
39536
|
+
refractor.register(requireCil());
|
|
39537
39537
|
refractor.register(clojure_1);
|
|
39538
39538
|
refractor.register(cmake_1);
|
|
39539
39539
|
refractor.register(cobol_1);
|
|
@@ -39542,7 +39542,7 @@ refractor.register(concurnas_1);
|
|
|
39542
39542
|
refractor.register(coq_1);
|
|
39543
39543
|
refractor.register(cpp_1);
|
|
39544
39544
|
refractor.register(crystal_1);
|
|
39545
|
-
refractor.register(
|
|
39545
|
+
refractor.register(csharp_1);
|
|
39546
39546
|
refractor.register(requireCshtml());
|
|
39547
39547
|
refractor.register(requireCsp());
|
|
39548
39548
|
refractor.register(requireCssExtras());
|
|
@@ -43550,8 +43550,8 @@ DatePicker.defaultProps = {
|
|
|
43550
43550
|
onClear: function onClear() {}
|
|
43551
43551
|
};
|
|
43552
43552
|
|
|
43553
|
-
var css$v = ".
|
|
43554
|
-
var modules_6d03d164 = {"root":"
|
|
43553
|
+
var css$v = ".HierarchyItem_module_root__5ef1c91d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n flex: 1;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.25rem;\n min-height: 2rem;\n height: auto;\n padding: 0rem 0.5rem;\n cursor: pointer;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component1], .HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component3] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component1] .HierarchyItem_module_expand__5ef1c91d, .HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component3] .HierarchyItem_module_expand__5ef1c91d {\n padding: 0;\n height: auto;\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component1] .HierarchyItem_module_expand__5ef1c91d .HierarchyItem_module_icon__5ef1c91d, .HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component3] .HierarchyItem_module_expand__5ef1c91d .HierarchyItem_module_icon__5ef1c91d {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component2] {\n flex: 1 1 auto;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d > [data-elem=component2] .HierarchyItem_module_title__5ef1c91d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n height: auto;\n padding: 0.25rem 0rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d:hover {\n background: var(--background);\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d:hover .HierarchyItem_module_icon__5ef1c91d,\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d:hover .HierarchyItem_module_title__5ef1c91d,\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_header__5ef1c91d:hover .HierarchyItem_module_title__5ef1c91d svg {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_body__5ef1c91d {\n display: none;\n flex: 1 0 auto;\n padding: 0px 0rem 0px 0.25rem;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_body__5ef1c91d > [data-elem=component1] {\n flex: 0 0 1.6rem;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_body__5ef1c91d > [data-elem=component1] .HierarchyItem_module_tail__5ef1c91d {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 1.6rem;\n height: 100%;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_body__5ef1c91d > [data-elem=component1] .HierarchyItem_module_tail__5ef1c91d::after {\n content: \"\";\n display: block;\n margin: auto;\n width: 1px;\n flex: 1;\n background: var(--grey1);\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_body__5ef1c91d > [data-elem=component2] {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__5ef1c91d .HierarchyItem_module_body__5ef1c91d > [data-elem=component2] .HierarchyItem_module_children__5ef1c91d {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__5ef1c91d.HierarchyItem_module_open__5ef1c91d > .HierarchyItem_module_header__5ef1c91d .HierarchyItem_module_expand__5ef1c91d .HierarchyItem_module_icon__5ef1c91d {\n transform: none;\n}\n.HierarchyItem_module_root__5ef1c91d.HierarchyItem_module_open__5ef1c91d > .HierarchyItem_module_body__5ef1c91d {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.25rem;\n height: auto;\n}\n.HierarchyItem_module_root__5ef1c91d.HierarchyItem_module_active__5ef1c91d > .HierarchyItem_module_header__5ef1c91d {\n background: var(--background);\n}\n.HierarchyItem_module_root__5ef1c91d.HierarchyItem_module_active__5ef1c91d > .HierarchyItem_module_header__5ef1c91d .HierarchyItem_module_icon__5ef1c91d,\n.HierarchyItem_module_root__5ef1c91d.HierarchyItem_module_active__5ef1c91d > .HierarchyItem_module_header__5ef1c91d .HierarchyItem_module_title__5ef1c91d,\n.HierarchyItem_module_root__5ef1c91d.HierarchyItem_module_active__5ef1c91d > .HierarchyItem_module_header__5ef1c91d .HierarchyItem_module_title__5ef1c91d svg {\n color: var(--highlight);\n fill: var(--highlight);\n}";
|
|
43554
|
+
var modules_6d03d164 = {"root":"HierarchyItem_module_root__5ef1c91d","header":"HierarchyItem_module_header__5ef1c91d","expand":"HierarchyItem_module_expand__5ef1c91d","icon":"HierarchyItem_module_icon__5ef1c91d","title":"HierarchyItem_module_title__5ef1c91d","body":"HierarchyItem_module_body__5ef1c91d","tail":"HierarchyItem_module_tail__5ef1c91d","children":"HierarchyItem_module_children__5ef1c91d","open":"HierarchyItem_module_open__5ef1c91d","active":"HierarchyItem_module_active__5ef1c91d"};
|
|
43555
43555
|
n(css$v,{});
|
|
43556
43556
|
|
|
43557
43557
|
var HierarchyItem = function HierarchyItem(props) {
|
|
@@ -43560,7 +43560,8 @@ var HierarchyItem = function HierarchyItem(props) {
|
|
|
43560
43560
|
title = props.title,
|
|
43561
43561
|
children = props.children,
|
|
43562
43562
|
_onClick = props.onClick,
|
|
43563
|
-
onDoubleClick = props.onDoubleClick
|
|
43563
|
+
onDoubleClick = props.onDoubleClick,
|
|
43564
|
+
active = props.active;
|
|
43564
43565
|
var _useState = useState(defaultOpen),
|
|
43565
43566
|
_useState2 = _slicedToArray(_useState, 2),
|
|
43566
43567
|
open = _useState2[0],
|
|
@@ -43585,7 +43586,7 @@ var HierarchyItem = function HierarchyItem(props) {
|
|
|
43585
43586
|
}
|
|
43586
43587
|
});
|
|
43587
43588
|
return /*#__PURE__*/jsxs("div", {
|
|
43588
|
-
className: classes(modules_6d03d164.root, open ? modules_6d03d164.open : ''),
|
|
43589
|
+
className: classes(modules_6d03d164.root, open ? modules_6d03d164.open : '', active ? modules_6d03d164.active : ''),
|
|
43589
43590
|
children: [/*#__PURE__*/jsx(BaseCell, {
|
|
43590
43591
|
flexible: true,
|
|
43591
43592
|
size: "auto",
|
|
@@ -43634,13 +43635,15 @@ HierarchyItem.propTypes = {
|
|
|
43634
43635
|
iconPlacement: propTypes$1.exports.oneOf(['left', 'right', 'none']),
|
|
43635
43636
|
title: propTypes$1.exports.node,
|
|
43636
43637
|
defaultOpen: propTypes$1.exports.bool,
|
|
43637
|
-
onClick: propTypes$1.exports.func
|
|
43638
|
+
onClick: propTypes$1.exports.func,
|
|
43639
|
+
active: propTypes$1.exports.bool
|
|
43638
43640
|
};
|
|
43639
43641
|
HierarchyItem.defaultProps = {
|
|
43640
43642
|
iconPlacement: 'left',
|
|
43641
43643
|
title: null,
|
|
43642
43644
|
defaultOpen: false,
|
|
43643
|
-
onClick: function onClick() {}
|
|
43645
|
+
onClick: function onClick() {},
|
|
43646
|
+
active: false
|
|
43644
43647
|
};
|
|
43645
43648
|
|
|
43646
43649
|
var css$u = ".HierarchyBrowser_module_root__649d3da2 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n width: 20rem;\n position: relative;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_header__649d3da2 {\n padding: 0.5rem;\n background: var(--dark-grey);\n color: var(--white);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_body__649d3da2 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n overflow: auto;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_item__649d3da2 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.25rem;\n}\n.HierarchyBrowser_module_root__649d3da2 .HierarchyBrowser_module_item__649d3da2 .HierarchyBrowser_module_itemIcon__649d3da2 {\n width: 1rem;\n}\n.HierarchyBrowser_module_root__649d3da2::after {\n position: absolute;\n right: 0;\n content: \"\";\n width: 1px;\n height: 100%;\n background: var(--grey4);\n}\n.HierarchyBrowser_module_root__649d3da2.HierarchyBrowser_module_resizable__649d3da2:hover::after {\n width: 3px;\n cursor: col-resize;\n}";
|
|
@@ -45853,7 +45856,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, propRef) {
|
|
|
45853
45856
|
});
|
|
45854
45857
|
Tooltip.propTypes = {
|
|
45855
45858
|
variant: propTypes$1.exports.oneOf(['light', 'dark']),
|
|
45856
|
-
content: propTypes$1.exports.
|
|
45859
|
+
content: propTypes$1.exports.node,
|
|
45857
45860
|
position: propTypes$1.exports.oneOf(['right', 'top', 'bottom', 'left']),
|
|
45858
45861
|
className: propTypes$1.exports.string
|
|
45859
45862
|
};
|