@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 CHANGED
@@ -17715,479 +17715,470 @@ function asmatmel(Prism) {
17715
17715
  };
17716
17716
  }
17717
17717
 
17718
- var csharp_1;
17719
- var hasRequiredCsharp;
17720
-
17721
- function requireCsharp () {
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
- * Replaces all placeholders "<<n>>" of given pattern with the n-th replacement (zero based).
17732
- *
17733
- * Note: This is a simple text based replacement. Be careful when using backreferences!
17734
- *
17735
- * @param {string} pattern the given pattern.
17736
- * @param {string[]} replacements a list of replacement which can be inserted into the given pattern.
17737
- * @returns {string} the pattern with all placeholders replaced with their corresponding replacements.
17738
- * @example replace(/a<<0>>a/.source, [/b+/.source]) === /a(?:b+)a/.source
17739
- */
17740
- function replace(pattern, replacements) {
17741
- return pattern.replace(/<<(\d+)>>/g, function (m, index) {
17742
- return '(?:' + replacements[+index] + ')'
17743
- })
17744
- }
17745
- /**
17746
- * @param {string} pattern
17747
- * @param {string[]} replacements
17748
- * @param {string} [flags]
17749
- * @returns {RegExp}
17750
- */
17751
- function re(pattern, replacements, flags) {
17752
- return RegExp(replace(pattern, replacements), flags || '')
17753
- }
17754
- /**
17755
- * Creates a nested pattern where all occurrences of the string `<<self>>` are replaced with the pattern itself.
17756
- *
17757
- * @param {string} pattern
17758
- * @param {number} depthLog2
17759
- * @returns {string}
17760
- */
17761
- function nested(pattern, depthLog2) {
17762
- for (var i = 0; i < depthLog2; i++) {
17763
- pattern = pattern.replace(/<<self>>/g, function () {
17764
- return '(?:' + pattern + ')'
17765
- });
17766
- }
17767
- return pattern.replace(/<<self>>/g, '[^\\s\\S]')
17768
- } // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/
17769
- var keywordKinds = {
17770
- // keywords which represent a return or variable type
17771
- type: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',
17772
- // keywords which are used to declare a type
17773
- typeDeclaration: 'class enum interface record struct',
17774
- // contextual keywords
17775
- // ("var" and "dynamic" are missing because they are used like types)
17776
- contextual:
17777
- '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*{)',
17778
- // all other keywords
17779
- other:
17780
- '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'
17781
- }; // keywords
17782
- function keywordsToPattern(words) {
17783
- return '\\b(?:' + words.trim().replace(/ /g, '|') + ')\\b'
17784
- }
17785
- var typeDeclarationKeywords = keywordsToPattern(
17786
- keywordKinds.typeDeclaration
17787
- );
17788
- var keywords = RegExp(
17789
- keywordsToPattern(
17790
- keywordKinds.type +
17791
- ' ' +
17792
- keywordKinds.typeDeclaration +
17793
- ' ' +
17794
- keywordKinds.contextual +
17795
- ' ' +
17796
- keywordKinds.other
17797
- )
17798
- );
17799
- var nonTypeKeywords = keywordsToPattern(
17800
- keywordKinds.typeDeclaration +
17801
- ' ' +
17802
- keywordKinds.contextual +
17803
- ' ' +
17804
- keywordKinds.other
17805
- );
17806
- var nonContextualKeywords = keywordsToPattern(
17807
- keywordKinds.type +
17808
- ' ' +
17809
- keywordKinds.typeDeclaration +
17810
- ' ' +
17811
- keywordKinds.other
17812
- ); // types
17813
- var generic = nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2); // the idea behind the other forbidden characters is to prevent false positives. Same for tupleElement.
17814
- var nestedRound = nested(/\((?:[^()]|<<self>>)*\)/.source, 2);
17815
- var name = /@?\b[A-Za-z_]\w*\b/.source;
17816
- var genericName = replace(/<<0>>(?:\s*<<1>>)?/.source, [name, generic]);
17817
- var identifier = replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
17818
- nonTypeKeywords,
17819
- genericName
17820
- ]);
17821
- var array = /\[\s*(?:,\s*)*\]/.source;
17822
- var typeExpressionWithoutTuple = replace(
17823
- /<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
17824
- [identifier, array]
17825
- );
17826
- var tupleElement = replace(
17827
- /[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
17828
- [generic, nestedRound, array]
17829
- );
17830
- var tuple = replace(/\(<<0>>+(?:,<<0>>+)+\)/.source, [tupleElement]);
17831
- var typeExpression = replace(
17832
- /(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
17833
- [tuple, identifier, array]
17834
- );
17835
- var typeInside = {
17836
- keyword: keywords,
17837
- punctuation: /[<>()?,.:[\]]/
17838
- }; // strings & characters
17839
- // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#character-literals
17840
- // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#string-literals
17841
- var character = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source; // simplified pattern
17842
- var regularString = /"(?:\\.|[^\\"\r\n])*"/.source;
17843
- var verbatimString = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
17844
- Prism.languages.csharp = Prism.languages.extend('clike', {
17845
- string: [
17846
- {
17847
- pattern: re(/(^|[^$\\])<<0>>/.source, [verbatimString]),
17848
- lookbehind: true,
17849
- greedy: true
17850
- },
17851
- {
17852
- pattern: re(/(^|[^@$\\])<<0>>/.source, [regularString]),
17853
- lookbehind: true,
17854
- greedy: true
17855
- }
17856
- ],
17857
- 'class-name': [
17858
- {
17859
- // Using static
17860
- // using static System.Math;
17861
- pattern: re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [
17862
- identifier
17863
- ]),
17864
- lookbehind: true,
17865
- inside: typeInside
17866
- },
17867
- {
17868
- // Using alias (type)
17869
- // using Project = PC.MyCompany.Project;
17870
- pattern: re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
17871
- name,
17872
- typeExpression
17873
- ]),
17874
- lookbehind: true,
17875
- inside: typeInside
17876
- },
17877
- {
17878
- // Using alias (alias)
17879
- // using Project = PC.MyCompany.Project;
17880
- pattern: re(/(\busing\s+)<<0>>(?=\s*=)/.source, [name]),
17881
- lookbehind: true
17882
- },
17883
- {
17884
- // Type declarations
17885
- // class Foo<A, B>
17886
- // interface Foo<out A, B>
17887
- pattern: re(/(\b<<0>>\s+)<<1>>/.source, [
17888
- typeDeclarationKeywords,
17889
- genericName
17890
- ]),
17891
- lookbehind: true,
17892
- inside: typeInside
17893
- },
17894
- {
17895
- // Single catch exception declaration
17896
- // catch(Foo)
17897
- // (things like catch(Foo e) is covered by variable declaration)
17898
- pattern: re(/(\bcatch\s*\(\s*)<<0>>/.source, [identifier]),
17899
- lookbehind: true,
17900
- inside: typeInside
17901
- },
17902
- {
17903
- // Name of the type parameter of generic constraints
17904
- // where Foo : class
17905
- pattern: re(/(\bwhere\s+)<<0>>/.source, [name]),
17906
- lookbehind: true
17907
- },
17908
- {
17909
- // Casts and checks via as and is.
17910
- // as Foo<A>, is Bar<B>
17911
- // (things like if(a is Foo b) is covered by variable declaration)
17912
- pattern: re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
17913
- typeExpressionWithoutTuple
17914
- ]),
17915
- lookbehind: true,
17916
- inside: typeInside
17917
- },
17918
- {
17919
- // Variable, field and parameter declaration
17920
- // (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
17921
- pattern: re(
17922
- /\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/
17923
- .source,
17924
- [typeExpression, nonContextualKeywords, name]
17925
- ),
17926
- inside: typeInside
17927
- }
17928
- ],
17929
- keyword: keywords,
17930
- // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
17931
- number:
17932
- /(?:\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,
17933
- operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
17934
- punctuation: /\?\.?|::|[{}[\];(),.:]/
17935
- });
17936
- Prism.languages.insertBefore('csharp', 'number', {
17937
- range: {
17938
- pattern: /\.\./,
17939
- alias: 'operator'
17940
- }
17941
- });
17942
- Prism.languages.insertBefore('csharp', 'punctuation', {
17943
- 'named-parameter': {
17944
- pattern: re(/([(,]\s*)<<0>>(?=\s*:)/.source, [name]),
17945
- lookbehind: true,
17946
- alias: 'punctuation'
17947
- }
17948
- });
17949
- Prism.languages.insertBefore('csharp', 'class-name', {
17950
- namespace: {
17951
- // namespace Foo.Bar {}
17952
- // using Foo.Bar;
17953
- pattern: re(
17954
- /(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,
17955
- [name]
17956
- ),
17957
- lookbehind: true,
17958
- inside: {
17959
- punctuation: /\./
17960
- }
17961
- },
17962
- 'type-expression': {
17963
- // default(Foo), typeof(Foo<Bar>), sizeof(int)
17964
- pattern: re(
17965
- /(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/
17966
- .source,
17967
- [nestedRound]
17968
- ),
17969
- lookbehind: true,
17970
- alias: 'class-name',
17971
- inside: typeInside
17972
- },
17973
- 'return-type': {
17974
- // Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
17975
- // int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
17976
- // int Foo => 0; int Foo { get; set } = 0;
17977
- pattern: re(
17978
- /<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,
17979
- [typeExpression, identifier]
17980
- ),
17981
- inside: typeInside,
17982
- alias: 'class-name'
17983
- },
17984
- 'constructor-invocation': {
17985
- // new List<Foo<Bar[]>> { }
17986
- pattern: re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [typeExpression]),
17987
- lookbehind: true,
17988
- inside: typeInside,
17989
- alias: 'class-name'
17990
- },
17991
- /*'explicit-implementation': {
17992
- // int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
17993
- pattern: replace(/\b<<0>>(?=\.<<1>>)/, className, methodOrPropertyDeclaration),
17994
- inside: classNameInside,
17995
- alias: 'class-name'
17996
- },*/
17997
- 'generic-method': {
17998
- // foo<Bar>()
17999
- pattern: re(/<<0>>\s*<<1>>(?=\s*\()/.source, [name, generic]),
18000
- inside: {
18001
- function: re(/^<<0>>/.source, [name]),
18002
- generic: {
18003
- pattern: RegExp(generic),
18004
- alias: 'class-name',
18005
- inside: typeInside
18006
- }
18007
- }
18008
- },
18009
- 'type-list': {
18010
- // The list of types inherited or of generic constraints
18011
- // class Foo<F> : Bar, IList<FooBar>
18012
- // where F : Bar, IList<int>
18013
- pattern: re(
18014
- /\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|[{;]|=>|$))/
18015
- .source,
18016
- [
18017
- typeDeclarationKeywords,
18018
- genericName,
18019
- name,
18020
- typeExpression,
18021
- keywords.source,
18022
- nestedRound,
18023
- /\bnew\s*\(\s*\)/.source
18024
- ]
18025
- ),
18026
- lookbehind: true,
18027
- inside: {
18028
- 'record-arguments': {
18029
- pattern: re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [
18030
- genericName,
18031
- nestedRound
18032
- ]),
18033
- lookbehind: true,
18034
- greedy: true,
18035
- inside: Prism.languages.csharp
18036
- },
18037
- keyword: keywords,
18038
- 'class-name': {
18039
- pattern: RegExp(typeExpression),
18040
- greedy: true,
18041
- inside: typeInside
18042
- },
18043
- punctuation: /[,()]/
18044
- }
18045
- },
18046
- preprocessor: {
18047
- pattern: /(^[\t ]*)#.*/m,
18048
- lookbehind: true,
18049
- alias: 'property',
18050
- inside: {
18051
- // highlight preprocessor directives as keywords
18052
- directive: {
18053
- pattern:
18054
- /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
18055
- lookbehind: true,
18056
- alias: 'keyword'
18057
- }
18058
- }
18059
- }
18060
- }); // attributes
18061
- var regularStringOrCharacter = regularString + '|' + character;
18062
- var regularStringCharacterOrComment = replace(
18063
- /\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
18064
- [regularStringOrCharacter]
18065
- );
18066
- var roundExpression = nested(
18067
- replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
18068
- regularStringCharacterOrComment
18069
- ]),
18070
- 2
18071
- ); // https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets
18072
- var attrTarget =
18073
- /\b(?:assembly|event|field|method|module|param|property|return|type)\b/
18074
- .source;
18075
- var attr = replace(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
18076
- identifier,
18077
- roundExpression
18078
- ]);
18079
- Prism.languages.insertBefore('csharp', 'class-name', {
18080
- attribute: {
18081
- // Attributes
18082
- // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
18083
- pattern: re(
18084
- /((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/
18085
- .source,
18086
- [attrTarget, attr]
18087
- ),
18088
- lookbehind: true,
18089
- greedy: true,
18090
- inside: {
18091
- target: {
18092
- pattern: re(/^<<0>>(?=\s*:)/.source, [attrTarget]),
18093
- alias: 'keyword'
18094
- },
18095
- 'attribute-arguments': {
18096
- pattern: re(/\(<<0>>*\)/.source, [roundExpression]),
18097
- inside: Prism.languages.csharp
18098
- },
18099
- 'class-name': {
18100
- pattern: RegExp(identifier),
18101
- inside: {
18102
- punctuation: /\./
18103
- }
18104
- },
18105
- punctuation: /[:,]/
18106
- }
18107
- }
18108
- }); // string interpolation
18109
- var formatString = /:[^}\r\n]+/.source; // multi line
18110
- var mInterpolationRound = nested(
18111
- replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
18112
- regularStringCharacterOrComment
18113
- ]),
18114
- 2
18115
- );
18116
- var mInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
18117
- mInterpolationRound,
18118
- formatString
18119
- ]); // single line
18120
- var sInterpolationRound = nested(
18121
- replace(
18122
- /[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/
18123
- .source,
18124
- [regularStringOrCharacter]
18125
- ),
18126
- 2
18127
- );
18128
- var sInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
18129
- sInterpolationRound,
18130
- formatString
18131
- ]);
18132
- function createInterpolationInside(interpolation, interpolationRound) {
18133
- return {
18134
- interpolation: {
18135
- pattern: re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [interpolation]),
18136
- lookbehind: true,
18137
- inside: {
18138
- 'format-string': {
18139
- pattern: re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [
18140
- interpolationRound,
18141
- formatString
18142
- ]),
18143
- lookbehind: true,
18144
- inside: {
18145
- punctuation: /^:/
18146
- }
18147
- },
18148
- punctuation: /^\{|\}$/,
18149
- expression: {
18150
- pattern: /[\s\S]+/,
18151
- alias: 'language-csharp',
18152
- inside: Prism.languages.csharp
18153
- }
18154
- }
18155
- },
18156
- string: /[\s\S]+/
18157
- }
18158
- }
18159
- Prism.languages.insertBefore('csharp', 'string', {
18160
- 'interpolation-string': [
18161
- {
18162
- pattern: re(
18163
- /(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,
18164
- [mInterpolation]
18165
- ),
18166
- lookbehind: true,
18167
- greedy: true,
18168
- inside: createInterpolationInside(mInterpolation, mInterpolationRound)
18169
- },
18170
- {
18171
- pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [
18172
- sInterpolation
18173
- ]),
18174
- lookbehind: true,
18175
- greedy: true,
18176
- inside: createInterpolationInside(sInterpolation, sInterpolationRound)
18177
- }
18178
- ],
18179
- char: {
18180
- pattern: RegExp(character),
18181
- greedy: true
18182
- }
18183
- });
18184
- Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
18185
- })(Prism);
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 = requireCsharp();
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 = cil;
19452
- cil.displayName = 'cil';
19453
- cil.aliases = [];
19454
- function cil(Prism) {
19455
- Prism.languages.cil = {
19456
- comment: /\/\/.*/,
19457
- string: {
19458
- pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
19459
- greedy: true
19460
- },
19461
- directive: {
19462
- pattern: /(^|\W)\.[a-z]+(?=\s)/,
19463
- lookbehind: true,
19464
- alias: 'class-name'
19465
- },
19466
- // Actually an assembly reference
19467
- variable: /\[[\w\.]+\]/,
19468
- keyword:
19469
- /\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/,
19470
- function:
19471
- /\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/,
19472
- boolean: /\b(?:false|true)\b/,
19473
- number: /\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,
19474
- punctuation: /[{}[\];(),:=]|IL_[0-9A-Za-z]+/
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 = requireCsharp();
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 = requireCsharp();
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(cil_1);
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(requireCsharp());
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 = ".HierarchyItem_module_root__c993ecd0 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n flex: 1;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 {\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__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component1], .HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component3] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component1] .HierarchyItem_module_expand__c993ecd0, .HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component3] .HierarchyItem_module_expand__c993ecd0 {\n padding: 0;\n height: auto;\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component1] .HierarchyItem_module_expand__c993ecd0 .HierarchyItem_module_icon__c993ecd0, .HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component3] .HierarchyItem_module_expand__c993ecd0 .HierarchyItem_module_icon__c993ecd0 {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component2] {\n flex: 1 1 auto;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0 > [data-elem=component2] .HierarchyItem_module_title__c993ecd0 {\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__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover {\n background: var(--background);\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover .HierarchyItem_module_icon__c993ecd0,\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover .HierarchyItem_module_title__c993ecd0,\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_header__c993ecd0:hover .HierarchyItem_module_title__c993ecd0 svg {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 {\n display: none;\n flex: 1 0 auto;\n padding: 0px 0rem 0px 0.25rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component1] {\n flex: 0 0 1.6rem;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component1] .HierarchyItem_module_tail__c993ecd0 {\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__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component1] .HierarchyItem_module_tail__c993ecd0::after {\n content: \"\";\n display: block;\n margin: auto;\n width: 1px;\n flex: 1;\n background: var(--grey1);\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component2] {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__c993ecd0 .HierarchyItem_module_body__c993ecd0 > [data-elem=component2] .HierarchyItem_module_children__c993ecd0 {\n flex: 1 0 auto;\n}\n.HierarchyItem_module_root__c993ecd0.HierarchyItem_module_open__c993ecd0 > .HierarchyItem_module_header__c993ecd0 .HierarchyItem_module_expand__c993ecd0 .HierarchyItem_module_icon__c993ecd0 {\n transform: none;\n}\n.HierarchyItem_module_root__c993ecd0.HierarchyItem_module_open__c993ecd0 > .HierarchyItem_module_body__c993ecd0 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: stretch;\n gap: 0.25rem;\n height: auto;\n}";
43574
- var modules_6d03d164 = {"root":"HierarchyItem_module_root__c993ecd0","header":"HierarchyItem_module_header__c993ecd0","expand":"HierarchyItem_module_expand__c993ecd0","icon":"HierarchyItem_module_icon__c993ecd0","title":"HierarchyItem_module_title__c993ecd0","body":"HierarchyItem_module_body__c993ecd0","tail":"HierarchyItem_module_tail__c993ecd0","children":"HierarchyItem_module_children__c993ecd0","open":"HierarchyItem_module_open__c993ecd0"};
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.string,
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
  };