@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/cjs/index.js
CHANGED
|
@@ -17715,479 +17715,470 @@ function asmatmel(Prism) {
|
|
|
17715
17715
|
};
|
|
17716
17716
|
}
|
|
17717
17717
|
|
|
17718
|
-
var csharp_1;
|
|
17719
|
-
|
|
17720
|
-
|
|
17721
|
-
function
|
|
17722
|
-
if (hasRequiredCsharp) return csharp_1;
|
|
17723
|
-
hasRequiredCsharp = 1;
|
|
17724
|
-
|
|
17725
|
-
csharp_1 = csharp;
|
|
17726
|
-
csharp.displayName = 'csharp';
|
|
17727
|
-
csharp.aliases = ['dotnet', 'cs'];
|
|
17728
|
-
function csharp(Prism) {
|
|
17718
|
+
var csharp_1 = csharp;
|
|
17719
|
+
csharp.displayName = 'csharp';
|
|
17720
|
+
csharp.aliases = ['dotnet', 'cs'];
|
|
17721
|
+
function csharp(Prism) {
|
|
17729
17722
|
(function (Prism) {
|
|
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
|
-
|
|
18168
|
-
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
18183
|
-
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
}
|
|
18187
|
-
return csharp_1;
|
|
17723
|
+
/**
|
|
17724
|
+
* Replaces all placeholders "<<n>>" of given pattern with the n-th replacement (zero based).
|
|
17725
|
+
*
|
|
17726
|
+
* Note: This is a simple text based replacement. Be careful when using backreferences!
|
|
17727
|
+
*
|
|
17728
|
+
* @param {string} pattern the given pattern.
|
|
17729
|
+
* @param {string[]} replacements a list of replacement which can be inserted into the given pattern.
|
|
17730
|
+
* @returns {string} the pattern with all placeholders replaced with their corresponding replacements.
|
|
17731
|
+
* @example replace(/a<<0>>a/.source, [/b+/.source]) === /a(?:b+)a/.source
|
|
17732
|
+
*/
|
|
17733
|
+
function replace(pattern, replacements) {
|
|
17734
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
17735
|
+
return '(?:' + replacements[+index] + ')'
|
|
17736
|
+
})
|
|
17737
|
+
}
|
|
17738
|
+
/**
|
|
17739
|
+
* @param {string} pattern
|
|
17740
|
+
* @param {string[]} replacements
|
|
17741
|
+
* @param {string} [flags]
|
|
17742
|
+
* @returns {RegExp}
|
|
17743
|
+
*/
|
|
17744
|
+
function re(pattern, replacements, flags) {
|
|
17745
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
17746
|
+
}
|
|
17747
|
+
/**
|
|
17748
|
+
* Creates a nested pattern where all occurrences of the string `<<self>>` are replaced with the pattern itself.
|
|
17749
|
+
*
|
|
17750
|
+
* @param {string} pattern
|
|
17751
|
+
* @param {number} depthLog2
|
|
17752
|
+
* @returns {string}
|
|
17753
|
+
*/
|
|
17754
|
+
function nested(pattern, depthLog2) {
|
|
17755
|
+
for (var i = 0; i < depthLog2; i++) {
|
|
17756
|
+
pattern = pattern.replace(/<<self>>/g, function () {
|
|
17757
|
+
return '(?:' + pattern + ')'
|
|
17758
|
+
});
|
|
17759
|
+
}
|
|
17760
|
+
return pattern.replace(/<<self>>/g, '[^\\s\\S]')
|
|
17761
|
+
} // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/
|
|
17762
|
+
var keywordKinds = {
|
|
17763
|
+
// keywords which represent a return or variable type
|
|
17764
|
+
type: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',
|
|
17765
|
+
// keywords which are used to declare a type
|
|
17766
|
+
typeDeclaration: 'class enum interface record struct',
|
|
17767
|
+
// contextual keywords
|
|
17768
|
+
// ("var" and "dynamic" are missing because they are used like types)
|
|
17769
|
+
contextual:
|
|
17770
|
+
'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*{)',
|
|
17771
|
+
// all other keywords
|
|
17772
|
+
other:
|
|
17773
|
+
'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'
|
|
17774
|
+
}; // keywords
|
|
17775
|
+
function keywordsToPattern(words) {
|
|
17776
|
+
return '\\b(?:' + words.trim().replace(/ /g, '|') + ')\\b'
|
|
17777
|
+
}
|
|
17778
|
+
var typeDeclarationKeywords = keywordsToPattern(
|
|
17779
|
+
keywordKinds.typeDeclaration
|
|
17780
|
+
);
|
|
17781
|
+
var keywords = RegExp(
|
|
17782
|
+
keywordsToPattern(
|
|
17783
|
+
keywordKinds.type +
|
|
17784
|
+
' ' +
|
|
17785
|
+
keywordKinds.typeDeclaration +
|
|
17786
|
+
' ' +
|
|
17787
|
+
keywordKinds.contextual +
|
|
17788
|
+
' ' +
|
|
17789
|
+
keywordKinds.other
|
|
17790
|
+
)
|
|
17791
|
+
);
|
|
17792
|
+
var nonTypeKeywords = keywordsToPattern(
|
|
17793
|
+
keywordKinds.typeDeclaration +
|
|
17794
|
+
' ' +
|
|
17795
|
+
keywordKinds.contextual +
|
|
17796
|
+
' ' +
|
|
17797
|
+
keywordKinds.other
|
|
17798
|
+
);
|
|
17799
|
+
var nonContextualKeywords = keywordsToPattern(
|
|
17800
|
+
keywordKinds.type +
|
|
17801
|
+
' ' +
|
|
17802
|
+
keywordKinds.typeDeclaration +
|
|
17803
|
+
' ' +
|
|
17804
|
+
keywordKinds.other
|
|
17805
|
+
); // types
|
|
17806
|
+
var generic = nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2); // the idea behind the other forbidden characters is to prevent false positives. Same for tupleElement.
|
|
17807
|
+
var nestedRound = nested(/\((?:[^()]|<<self>>)*\)/.source, 2);
|
|
17808
|
+
var name = /@?\b[A-Za-z_]\w*\b/.source;
|
|
17809
|
+
var genericName = replace(/<<0>>(?:\s*<<1>>)?/.source, [name, generic]);
|
|
17810
|
+
var identifier = replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
|
|
17811
|
+
nonTypeKeywords,
|
|
17812
|
+
genericName
|
|
17813
|
+
]);
|
|
17814
|
+
var array = /\[\s*(?:,\s*)*\]/.source;
|
|
17815
|
+
var typeExpressionWithoutTuple = replace(
|
|
17816
|
+
/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
|
|
17817
|
+
[identifier, array]
|
|
17818
|
+
);
|
|
17819
|
+
var tupleElement = replace(
|
|
17820
|
+
/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
|
|
17821
|
+
[generic, nestedRound, array]
|
|
17822
|
+
);
|
|
17823
|
+
var tuple = replace(/\(<<0>>+(?:,<<0>>+)+\)/.source, [tupleElement]);
|
|
17824
|
+
var typeExpression = replace(
|
|
17825
|
+
/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
|
|
17826
|
+
[tuple, identifier, array]
|
|
17827
|
+
);
|
|
17828
|
+
var typeInside = {
|
|
17829
|
+
keyword: keywords,
|
|
17830
|
+
punctuation: /[<>()?,.:[\]]/
|
|
17831
|
+
}; // strings & characters
|
|
17832
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#character-literals
|
|
17833
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#string-literals
|
|
17834
|
+
var character = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source; // simplified pattern
|
|
17835
|
+
var regularString = /"(?:\\.|[^\\"\r\n])*"/.source;
|
|
17836
|
+
var verbatimString = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
17837
|
+
Prism.languages.csharp = Prism.languages.extend('clike', {
|
|
17838
|
+
string: [
|
|
17839
|
+
{
|
|
17840
|
+
pattern: re(/(^|[^$\\])<<0>>/.source, [verbatimString]),
|
|
17841
|
+
lookbehind: true,
|
|
17842
|
+
greedy: true
|
|
17843
|
+
},
|
|
17844
|
+
{
|
|
17845
|
+
pattern: re(/(^|[^@$\\])<<0>>/.source, [regularString]),
|
|
17846
|
+
lookbehind: true,
|
|
17847
|
+
greedy: true
|
|
17848
|
+
}
|
|
17849
|
+
],
|
|
17850
|
+
'class-name': [
|
|
17851
|
+
{
|
|
17852
|
+
// Using static
|
|
17853
|
+
// using static System.Math;
|
|
17854
|
+
pattern: re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [
|
|
17855
|
+
identifier
|
|
17856
|
+
]),
|
|
17857
|
+
lookbehind: true,
|
|
17858
|
+
inside: typeInside
|
|
17859
|
+
},
|
|
17860
|
+
{
|
|
17861
|
+
// Using alias (type)
|
|
17862
|
+
// using Project = PC.MyCompany.Project;
|
|
17863
|
+
pattern: re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
|
|
17864
|
+
name,
|
|
17865
|
+
typeExpression
|
|
17866
|
+
]),
|
|
17867
|
+
lookbehind: true,
|
|
17868
|
+
inside: typeInside
|
|
17869
|
+
},
|
|
17870
|
+
{
|
|
17871
|
+
// Using alias (alias)
|
|
17872
|
+
// using Project = PC.MyCompany.Project;
|
|
17873
|
+
pattern: re(/(\busing\s+)<<0>>(?=\s*=)/.source, [name]),
|
|
17874
|
+
lookbehind: true
|
|
17875
|
+
},
|
|
17876
|
+
{
|
|
17877
|
+
// Type declarations
|
|
17878
|
+
// class Foo<A, B>
|
|
17879
|
+
// interface Foo<out A, B>
|
|
17880
|
+
pattern: re(/(\b<<0>>\s+)<<1>>/.source, [
|
|
17881
|
+
typeDeclarationKeywords,
|
|
17882
|
+
genericName
|
|
17883
|
+
]),
|
|
17884
|
+
lookbehind: true,
|
|
17885
|
+
inside: typeInside
|
|
17886
|
+
},
|
|
17887
|
+
{
|
|
17888
|
+
// Single catch exception declaration
|
|
17889
|
+
// catch(Foo)
|
|
17890
|
+
// (things like catch(Foo e) is covered by variable declaration)
|
|
17891
|
+
pattern: re(/(\bcatch\s*\(\s*)<<0>>/.source, [identifier]),
|
|
17892
|
+
lookbehind: true,
|
|
17893
|
+
inside: typeInside
|
|
17894
|
+
},
|
|
17895
|
+
{
|
|
17896
|
+
// Name of the type parameter of generic constraints
|
|
17897
|
+
// where Foo : class
|
|
17898
|
+
pattern: re(/(\bwhere\s+)<<0>>/.source, [name]),
|
|
17899
|
+
lookbehind: true
|
|
17900
|
+
},
|
|
17901
|
+
{
|
|
17902
|
+
// Casts and checks via as and is.
|
|
17903
|
+
// as Foo<A>, is Bar<B>
|
|
17904
|
+
// (things like if(a is Foo b) is covered by variable declaration)
|
|
17905
|
+
pattern: re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
|
|
17906
|
+
typeExpressionWithoutTuple
|
|
17907
|
+
]),
|
|
17908
|
+
lookbehind: true,
|
|
17909
|
+
inside: typeInside
|
|
17910
|
+
},
|
|
17911
|
+
{
|
|
17912
|
+
// Variable, field and parameter declaration
|
|
17913
|
+
// (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
|
|
17914
|
+
pattern: re(
|
|
17915
|
+
/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/
|
|
17916
|
+
.source,
|
|
17917
|
+
[typeExpression, nonContextualKeywords, name]
|
|
17918
|
+
),
|
|
17919
|
+
inside: typeInside
|
|
17920
|
+
}
|
|
17921
|
+
],
|
|
17922
|
+
keyword: keywords,
|
|
17923
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
|
|
17924
|
+
number:
|
|
17925
|
+
/(?:\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,
|
|
17926
|
+
operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
|
|
17927
|
+
punctuation: /\?\.?|::|[{}[\];(),.:]/
|
|
17928
|
+
});
|
|
17929
|
+
Prism.languages.insertBefore('csharp', 'number', {
|
|
17930
|
+
range: {
|
|
17931
|
+
pattern: /\.\./,
|
|
17932
|
+
alias: 'operator'
|
|
17933
|
+
}
|
|
17934
|
+
});
|
|
17935
|
+
Prism.languages.insertBefore('csharp', 'punctuation', {
|
|
17936
|
+
'named-parameter': {
|
|
17937
|
+
pattern: re(/([(,]\s*)<<0>>(?=\s*:)/.source, [name]),
|
|
17938
|
+
lookbehind: true,
|
|
17939
|
+
alias: 'punctuation'
|
|
17940
|
+
}
|
|
17941
|
+
});
|
|
17942
|
+
Prism.languages.insertBefore('csharp', 'class-name', {
|
|
17943
|
+
namespace: {
|
|
17944
|
+
// namespace Foo.Bar {}
|
|
17945
|
+
// using Foo.Bar;
|
|
17946
|
+
pattern: re(
|
|
17947
|
+
/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,
|
|
17948
|
+
[name]
|
|
17949
|
+
),
|
|
17950
|
+
lookbehind: true,
|
|
17951
|
+
inside: {
|
|
17952
|
+
punctuation: /\./
|
|
17953
|
+
}
|
|
17954
|
+
},
|
|
17955
|
+
'type-expression': {
|
|
17956
|
+
// default(Foo), typeof(Foo<Bar>), sizeof(int)
|
|
17957
|
+
pattern: re(
|
|
17958
|
+
/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/
|
|
17959
|
+
.source,
|
|
17960
|
+
[nestedRound]
|
|
17961
|
+
),
|
|
17962
|
+
lookbehind: true,
|
|
17963
|
+
alias: 'class-name',
|
|
17964
|
+
inside: typeInside
|
|
17965
|
+
},
|
|
17966
|
+
'return-type': {
|
|
17967
|
+
// Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
|
|
17968
|
+
// int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
|
|
17969
|
+
// int Foo => 0; int Foo { get; set } = 0;
|
|
17970
|
+
pattern: re(
|
|
17971
|
+
/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,
|
|
17972
|
+
[typeExpression, identifier]
|
|
17973
|
+
),
|
|
17974
|
+
inside: typeInside,
|
|
17975
|
+
alias: 'class-name'
|
|
17976
|
+
},
|
|
17977
|
+
'constructor-invocation': {
|
|
17978
|
+
// new List<Foo<Bar[]>> { }
|
|
17979
|
+
pattern: re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [typeExpression]),
|
|
17980
|
+
lookbehind: true,
|
|
17981
|
+
inside: typeInside,
|
|
17982
|
+
alias: 'class-name'
|
|
17983
|
+
},
|
|
17984
|
+
/*'explicit-implementation': {
|
|
17985
|
+
// int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
|
|
17986
|
+
pattern: replace(/\b<<0>>(?=\.<<1>>)/, className, methodOrPropertyDeclaration),
|
|
17987
|
+
inside: classNameInside,
|
|
17988
|
+
alias: 'class-name'
|
|
17989
|
+
},*/
|
|
17990
|
+
'generic-method': {
|
|
17991
|
+
// foo<Bar>()
|
|
17992
|
+
pattern: re(/<<0>>\s*<<1>>(?=\s*\()/.source, [name, generic]),
|
|
17993
|
+
inside: {
|
|
17994
|
+
function: re(/^<<0>>/.source, [name]),
|
|
17995
|
+
generic: {
|
|
17996
|
+
pattern: RegExp(generic),
|
|
17997
|
+
alias: 'class-name',
|
|
17998
|
+
inside: typeInside
|
|
17999
|
+
}
|
|
18000
|
+
}
|
|
18001
|
+
},
|
|
18002
|
+
'type-list': {
|
|
18003
|
+
// The list of types inherited or of generic constraints
|
|
18004
|
+
// class Foo<F> : Bar, IList<FooBar>
|
|
18005
|
+
// where F : Bar, IList<int>
|
|
18006
|
+
pattern: re(
|
|
18007
|
+
/\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|[{;]|=>|$))/
|
|
18008
|
+
.source,
|
|
18009
|
+
[
|
|
18010
|
+
typeDeclarationKeywords,
|
|
18011
|
+
genericName,
|
|
18012
|
+
name,
|
|
18013
|
+
typeExpression,
|
|
18014
|
+
keywords.source,
|
|
18015
|
+
nestedRound,
|
|
18016
|
+
/\bnew\s*\(\s*\)/.source
|
|
18017
|
+
]
|
|
18018
|
+
),
|
|
18019
|
+
lookbehind: true,
|
|
18020
|
+
inside: {
|
|
18021
|
+
'record-arguments': {
|
|
18022
|
+
pattern: re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [
|
|
18023
|
+
genericName,
|
|
18024
|
+
nestedRound
|
|
18025
|
+
]),
|
|
18026
|
+
lookbehind: true,
|
|
18027
|
+
greedy: true,
|
|
18028
|
+
inside: Prism.languages.csharp
|
|
18029
|
+
},
|
|
18030
|
+
keyword: keywords,
|
|
18031
|
+
'class-name': {
|
|
18032
|
+
pattern: RegExp(typeExpression),
|
|
18033
|
+
greedy: true,
|
|
18034
|
+
inside: typeInside
|
|
18035
|
+
},
|
|
18036
|
+
punctuation: /[,()]/
|
|
18037
|
+
}
|
|
18038
|
+
},
|
|
18039
|
+
preprocessor: {
|
|
18040
|
+
pattern: /(^[\t ]*)#.*/m,
|
|
18041
|
+
lookbehind: true,
|
|
18042
|
+
alias: 'property',
|
|
18043
|
+
inside: {
|
|
18044
|
+
// highlight preprocessor directives as keywords
|
|
18045
|
+
directive: {
|
|
18046
|
+
pattern:
|
|
18047
|
+
/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
|
|
18048
|
+
lookbehind: true,
|
|
18049
|
+
alias: 'keyword'
|
|
18050
|
+
}
|
|
18051
|
+
}
|
|
18052
|
+
}
|
|
18053
|
+
}); // attributes
|
|
18054
|
+
var regularStringOrCharacter = regularString + '|' + character;
|
|
18055
|
+
var regularStringCharacterOrComment = replace(
|
|
18056
|
+
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
18057
|
+
[regularStringOrCharacter]
|
|
18058
|
+
);
|
|
18059
|
+
var roundExpression = nested(
|
|
18060
|
+
replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
18061
|
+
regularStringCharacterOrComment
|
|
18062
|
+
]),
|
|
18063
|
+
2
|
|
18064
|
+
); // https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets
|
|
18065
|
+
var attrTarget =
|
|
18066
|
+
/\b(?:assembly|event|field|method|module|param|property|return|type)\b/
|
|
18067
|
+
.source;
|
|
18068
|
+
var attr = replace(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
|
|
18069
|
+
identifier,
|
|
18070
|
+
roundExpression
|
|
18071
|
+
]);
|
|
18072
|
+
Prism.languages.insertBefore('csharp', 'class-name', {
|
|
18073
|
+
attribute: {
|
|
18074
|
+
// Attributes
|
|
18075
|
+
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
18076
|
+
pattern: re(
|
|
18077
|
+
/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/
|
|
18078
|
+
.source,
|
|
18079
|
+
[attrTarget, attr]
|
|
18080
|
+
),
|
|
18081
|
+
lookbehind: true,
|
|
18082
|
+
greedy: true,
|
|
18083
|
+
inside: {
|
|
18084
|
+
target: {
|
|
18085
|
+
pattern: re(/^<<0>>(?=\s*:)/.source, [attrTarget]),
|
|
18086
|
+
alias: 'keyword'
|
|
18087
|
+
},
|
|
18088
|
+
'attribute-arguments': {
|
|
18089
|
+
pattern: re(/\(<<0>>*\)/.source, [roundExpression]),
|
|
18090
|
+
inside: Prism.languages.csharp
|
|
18091
|
+
},
|
|
18092
|
+
'class-name': {
|
|
18093
|
+
pattern: RegExp(identifier),
|
|
18094
|
+
inside: {
|
|
18095
|
+
punctuation: /\./
|
|
18096
|
+
}
|
|
18097
|
+
},
|
|
18098
|
+
punctuation: /[:,]/
|
|
18099
|
+
}
|
|
18100
|
+
}
|
|
18101
|
+
}); // string interpolation
|
|
18102
|
+
var formatString = /:[^}\r\n]+/.source; // multi line
|
|
18103
|
+
var mInterpolationRound = nested(
|
|
18104
|
+
replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
18105
|
+
regularStringCharacterOrComment
|
|
18106
|
+
]),
|
|
18107
|
+
2
|
|
18108
|
+
);
|
|
18109
|
+
var mInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
18110
|
+
mInterpolationRound,
|
|
18111
|
+
formatString
|
|
18112
|
+
]); // single line
|
|
18113
|
+
var sInterpolationRound = nested(
|
|
18114
|
+
replace(
|
|
18115
|
+
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/
|
|
18116
|
+
.source,
|
|
18117
|
+
[regularStringOrCharacter]
|
|
18118
|
+
),
|
|
18119
|
+
2
|
|
18120
|
+
);
|
|
18121
|
+
var sInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
18122
|
+
sInterpolationRound,
|
|
18123
|
+
formatString
|
|
18124
|
+
]);
|
|
18125
|
+
function createInterpolationInside(interpolation, interpolationRound) {
|
|
18126
|
+
return {
|
|
18127
|
+
interpolation: {
|
|
18128
|
+
pattern: re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [interpolation]),
|
|
18129
|
+
lookbehind: true,
|
|
18130
|
+
inside: {
|
|
18131
|
+
'format-string': {
|
|
18132
|
+
pattern: re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
|
|
18133
|
+
interpolationRound,
|
|
18134
|
+
formatString
|
|
18135
|
+
]),
|
|
18136
|
+
lookbehind: true,
|
|
18137
|
+
inside: {
|
|
18138
|
+
punctuation: /^:/
|
|
18139
|
+
}
|
|
18140
|
+
},
|
|
18141
|
+
punctuation: /^\{|\}$/,
|
|
18142
|
+
expression: {
|
|
18143
|
+
pattern: /[\s\S]+/,
|
|
18144
|
+
alias: 'language-csharp',
|
|
18145
|
+
inside: Prism.languages.csharp
|
|
18146
|
+
}
|
|
18147
|
+
}
|
|
18148
|
+
},
|
|
18149
|
+
string: /[\s\S]+/
|
|
18150
|
+
}
|
|
18151
|
+
}
|
|
18152
|
+
Prism.languages.insertBefore('csharp', 'string', {
|
|
18153
|
+
'interpolation-string': [
|
|
18154
|
+
{
|
|
18155
|
+
pattern: re(
|
|
18156
|
+
/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,
|
|
18157
|
+
[mInterpolation]
|
|
18158
|
+
),
|
|
18159
|
+
lookbehind: true,
|
|
18160
|
+
greedy: true,
|
|
18161
|
+
inside: createInterpolationInside(mInterpolation, mInterpolationRound)
|
|
18162
|
+
},
|
|
18163
|
+
{
|
|
18164
|
+
pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [
|
|
18165
|
+
sInterpolation
|
|
18166
|
+
]),
|
|
18167
|
+
lookbehind: true,
|
|
18168
|
+
greedy: true,
|
|
18169
|
+
inside: createInterpolationInside(sInterpolation, sInterpolationRound)
|
|
18170
|
+
}
|
|
18171
|
+
],
|
|
18172
|
+
char: {
|
|
18173
|
+
pattern: RegExp(character),
|
|
18174
|
+
greedy: true
|
|
18175
|
+
}
|
|
18176
|
+
});
|
|
18177
|
+
Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
|
|
18178
|
+
})(Prism);
|
|
18188
18179
|
}
|
|
18189
18180
|
|
|
18190
|
-
var refractorCsharp =
|
|
18181
|
+
var refractorCsharp = csharp_1;
|
|
18191
18182
|
var aspnet_1 = aspnet;
|
|
18192
18183
|
aspnet.displayName = 'aspnet';
|
|
18193
18184
|
aspnet.aliases = [];
|
|
@@ -19448,31 +19439,40 @@ function chaiscript(Prism) {
|
|
|
19448
19439
|
});
|
|
19449
19440
|
}
|
|
19450
19441
|
|
|
19451
|
-
var cil_1
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
function
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
|
|
19468
|
-
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19442
|
+
var cil_1;
|
|
19443
|
+
var hasRequiredCil;
|
|
19444
|
+
|
|
19445
|
+
function requireCil () {
|
|
19446
|
+
if (hasRequiredCil) return cil_1;
|
|
19447
|
+
hasRequiredCil = 1;
|
|
19448
|
+
|
|
19449
|
+
cil_1 = cil;
|
|
19450
|
+
cil.displayName = 'cil';
|
|
19451
|
+
cil.aliases = [];
|
|
19452
|
+
function cil(Prism) {
|
|
19453
|
+
Prism.languages.cil = {
|
|
19454
|
+
comment: /\/\/.*/,
|
|
19455
|
+
string: {
|
|
19456
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
19457
|
+
greedy: true
|
|
19458
|
+
},
|
|
19459
|
+
directive: {
|
|
19460
|
+
pattern: /(^|\W)\.[a-z]+(?=\s)/,
|
|
19461
|
+
lookbehind: true,
|
|
19462
|
+
alias: 'class-name'
|
|
19463
|
+
},
|
|
19464
|
+
// Actually an assembly reference
|
|
19465
|
+
variable: /\[[\w\.]+\]/,
|
|
19466
|
+
keyword:
|
|
19467
|
+
/\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/,
|
|
19468
|
+
function:
|
|
19469
|
+
/\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/,
|
|
19470
|
+
boolean: /\b(?:false|true)\b/,
|
|
19471
|
+
number: /\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,
|
|
19472
|
+
punctuation: /[{}[\];(),:=]|IL_[0-9A-Za-z]+/
|
|
19473
|
+
};
|
|
19474
|
+
}
|
|
19475
|
+
return cil_1;
|
|
19476
19476
|
}
|
|
19477
19477
|
|
|
19478
19478
|
var clojure_1 = clojure;
|
|
@@ -20097,7 +20097,7 @@ var hasRequiredCshtml;
|
|
|
20097
20097
|
function requireCshtml () {
|
|
20098
20098
|
if (hasRequiredCshtml) return cshtml_1;
|
|
20099
20099
|
hasRequiredCshtml = 1;
|
|
20100
|
-
var refractorCsharp =
|
|
20100
|
+
var refractorCsharp = csharp_1;
|
|
20101
20101
|
cshtml_1 = cshtml;
|
|
20102
20102
|
cshtml.displayName = 'cshtml';
|
|
20103
20103
|
cshtml.aliases = ['razor'];
|
|
@@ -36779,7 +36779,7 @@ function requireT4Cs () {
|
|
|
36779
36779
|
if (hasRequiredT4Cs) return t4Cs_1;
|
|
36780
36780
|
hasRequiredT4Cs = 1;
|
|
36781
36781
|
var refractorT4Templating = requireT4Templating();
|
|
36782
|
-
var refractorCsharp =
|
|
36782
|
+
var refractorCsharp = csharp_1;
|
|
36783
36783
|
t4Cs_1 = t4Cs;
|
|
36784
36784
|
t4Cs.displayName = 't4Cs';
|
|
36785
36785
|
t4Cs.aliases = [];
|
|
@@ -39553,7 +39553,7 @@ refractor.register(bsl_1);
|
|
|
39553
39553
|
refractor.register(c_1);
|
|
39554
39554
|
refractor.register(cfscript_1);
|
|
39555
39555
|
refractor.register(chaiscript_1);
|
|
39556
|
-
refractor.register(
|
|
39556
|
+
refractor.register(requireCil());
|
|
39557
39557
|
refractor.register(clojure_1);
|
|
39558
39558
|
refractor.register(cmake_1);
|
|
39559
39559
|
refractor.register(cobol_1);
|
|
@@ -39562,7 +39562,7 @@ refractor.register(concurnas_1);
|
|
|
39562
39562
|
refractor.register(coq_1);
|
|
39563
39563
|
refractor.register(cpp_1);
|
|
39564
39564
|
refractor.register(crystal_1);
|
|
39565
|
-
refractor.register(
|
|
39565
|
+
refractor.register(csharp_1);
|
|
39566
39566
|
refractor.register(requireCshtml());
|
|
39567
39567
|
refractor.register(requireCsp());
|
|
39568
39568
|
refractor.register(requireCssExtras());
|
|
@@ -43570,8 +43570,8 @@ DatePicker.defaultProps = {
|
|
|
43570
43570
|
onClear: function onClear() {}
|
|
43571
43571
|
};
|
|
43572
43572
|
|
|
43573
|
-
var css$v = ".
|
|
43574
|
-
var modules_6d03d164 = {"root":"
|
|
43573
|
+
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}";
|
|
43574
|
+
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"};
|
|
43575
43575
|
n(css$v,{});
|
|
43576
43576
|
|
|
43577
43577
|
var HierarchyItem = function HierarchyItem(props) {
|
|
@@ -43580,7 +43580,8 @@ var HierarchyItem = function HierarchyItem(props) {
|
|
|
43580
43580
|
title = props.title,
|
|
43581
43581
|
children = props.children,
|
|
43582
43582
|
_onClick = props.onClick,
|
|
43583
|
-
onDoubleClick = props.onDoubleClick
|
|
43583
|
+
onDoubleClick = props.onDoubleClick,
|
|
43584
|
+
active = props.active;
|
|
43584
43585
|
var _useState = React.useState(defaultOpen),
|
|
43585
43586
|
_useState2 = _slicedToArray(_useState, 2),
|
|
43586
43587
|
open = _useState2[0],
|
|
@@ -43605,7 +43606,7 @@ var HierarchyItem = function HierarchyItem(props) {
|
|
|
43605
43606
|
}
|
|
43606
43607
|
});
|
|
43607
43608
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
43608
|
-
className: classes(modules_6d03d164.root, open ? modules_6d03d164.open : ''),
|
|
43609
|
+
className: classes(modules_6d03d164.root, open ? modules_6d03d164.open : '', active ? modules_6d03d164.active : ''),
|
|
43609
43610
|
children: [/*#__PURE__*/jsxRuntime.jsx(BaseCell, {
|
|
43610
43611
|
flexible: true,
|
|
43611
43612
|
size: "auto",
|
|
@@ -43654,13 +43655,15 @@ HierarchyItem.propTypes = {
|
|
|
43654
43655
|
iconPlacement: propTypes$1.exports.oneOf(['left', 'right', 'none']),
|
|
43655
43656
|
title: propTypes$1.exports.node,
|
|
43656
43657
|
defaultOpen: propTypes$1.exports.bool,
|
|
43657
|
-
onClick: propTypes$1.exports.func
|
|
43658
|
+
onClick: propTypes$1.exports.func,
|
|
43659
|
+
active: propTypes$1.exports.bool
|
|
43658
43660
|
};
|
|
43659
43661
|
HierarchyItem.defaultProps = {
|
|
43660
43662
|
iconPlacement: 'left',
|
|
43661
43663
|
title: null,
|
|
43662
43664
|
defaultOpen: false,
|
|
43663
|
-
onClick: function onClick() {}
|
|
43665
|
+
onClick: function onClick() {},
|
|
43666
|
+
active: false
|
|
43664
43667
|
};
|
|
43665
43668
|
|
|
43666
43669
|
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}";
|
|
@@ -45873,7 +45876,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, propRef) {
|
|
|
45873
45876
|
});
|
|
45874
45877
|
Tooltip.propTypes = {
|
|
45875
45878
|
variant: propTypes$1.exports.oneOf(['light', 'dark']),
|
|
45876
|
-
content: propTypes$1.exports.
|
|
45879
|
+
content: propTypes$1.exports.node,
|
|
45877
45880
|
position: propTypes$1.exports.oneOf(['right', 'top', 'bottom', 'left']),
|
|
45878
45881
|
className: propTypes$1.exports.string
|
|
45879
45882
|
};
|