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