@@ -31,12 +31,12 @@ syn region razorcsBlock matchgroup=razorcsDelimiter start=/\%#=1{/ end=/\%#=1}/
31
31
syn keyword razorcsStatement alias nextgroup =razorcsIdentifier skipwhite skipempty
32
32
33
33
syn keyword razorcsStatement class struct nextgroup =razorcsTypeName skipwhite skipempty
34
- syn match razorcsTypeName / \% #=1\K\k *\% (<.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGenericParameters nextgroup =razorcsTypeBlock,razorcsTypeInheritanceOperator,razorcsTypeConstraint,razorcsTypeConstructorParameters skipwhite skipempty
34
+ syn match razorcsTypeName / \% #=1\K\k *\% (\_ s* <.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGenericParameters nextgroup =razorcsTypeBlock,razorcsTypeInheritanceOperator,razorcsTypeConstraint,razorcsTypeConstructorParameters skipwhite skipempty
35
35
syn region razorcsTypeConstructorParameters matchgroup =razorcsDelimiter start =/ \% #=1(/ end =/ \% #=1)/ contained contains =razorcsType,razorcsTypeIdentifier,razorcsModifier,razorcsCollectionExpressionOrAttributes nextgroup =razorcsTypeBlock,razorcsTypeInheritanceOperator,razorcsTypeConstraint skipwhite skipempty
36
36
syn region razorcsGenericParameters matchgroup =razorcsDelimiter start =/ \% #=1</ end =/ \% #=1>/ contained contains =razorcsGenericParameter,razorcsModifier nextgroup =razorcsTypeBlock skipwhite skipempty
37
37
syn match razorcsGenericParameter / \% #=1\K\k */ contained contains =razorcsKeywordError
38
38
syn match razorcsTypeInheritanceOperator / \% #=1:/ contained nextgroup =razorcsTypeInheritee,razorcsTypeInheriteeKeyword skipwhite skipempty
39
- syn match razorcsTypeInheritee / \% #=1\K\k *\% (<.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGeneric nextgroup =razorcsTypeBlock,razorcsTypeInheriteeMemberOperator,razorcsTypeInheriteeComma,razorcsTypeConstraint,razorcsTypeInheriteeArguments,razorcsTypeConstraintModifier skipwhite skipempty
39
+ syn match razorcsTypeInheritee / \% #=1\K\k *\% (\_ s* <.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGeneric nextgroup =razorcsTypeBlock,razorcsTypeInheriteeMemberOperator,razorcsTypeInheriteeComma,razorcsTypeConstraint,razorcsTypeInheriteeArguments,razorcsTypeConstraintModifier skipwhite skipempty
40
40
syn keyword razorcsTypeInheriteeKeyword contained nextgroup =razorcsTypeBlock,razorcsTypeInheriteeComma,razorcsTypeConstraint,razorcsTypeConstraintModifier skipwhite skipempty
41
41
\ sbyte short int long byte ushort uint ulong float double decimal nint nuint
42
42
\ char bool object string void dynamic
@@ -53,7 +53,7 @@ syn match razorcsTypeVariable /\%#=1\K\k*/ contained contains=razorcsKeywordErro
53
53
syn region razorcsTypeBlock matchgroup =razorcsDelimiter start =/ \% #=1{/ end =/ \% #=1}/ contained contains =razorcsStatement,razorcsModifier,razorcsType,razorcsTypeIdentifier,razorcsBlock,razorcsDeclaratorComma,razorcsCollectionExpressionOrAttributes,razorcsOperatorModifier,razorcsTypeTuple,razorcsConstructor fold
54
54
55
55
syn keyword razorcsStatement interface nextgroup =razorcsInterfaceName skipwhite skipempty
56
- syn match razorcsInterfaceName / \% #=1\K\k *\% (<.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGenericParameters nextgroup =razorcsTypeBlock,razorcsTypeInheritanceOperator,razorcsTypeConstraint skipwhite skipempty
56
+ syn match razorcsInterfaceName / \% #=1\K\k *\% (\_ s* <.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGenericParameters nextgroup =razorcsTypeBlock,razorcsTypeInheritanceOperator,razorcsTypeConstraint skipwhite skipempty
57
57
58
58
syn keyword razorcsStatement record nextgroup =razorcsTypeName,razorcsRecordModifier skipwhite skipempty
59
59
syn keyword razorcsRecordModifier class struct contained nextgroup =razorcsTypeName skipwhite skipempty
@@ -129,8 +129,8 @@ syn keyword razorcsConstant this base nextgroup=@razorcsOperators,razorcsInvocat
129
129
syn keyword razorcsIndexerThis this contained nextgroup =razorcsIndexerParameters skipwhite skipempty
130
130
syn region razorcsIndexerParameters matchgroup =razorcsDelimiter start =/ \% #=1\[ / end =/ \% #=1\] / contained contains =razorcsTypeIdentifier,razorcsModifier nextgroup =razorcsPropertyBlock,razorcsLambdaOperator skipwhite skipempty
131
131
132
- syn match razorcsDeclarator / \% #=1\K\k *\% (<.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGenericParameters nextgroup =razorcsAssignmentOperator,razorcsLambdaOperator,razorcsParameters,razorcsPropertyBlock,razorcsDeclaratorMemberOperator,razorcsOperatorKeyword skipwhite skipempty
133
- syn match razorcsNotDeclarator / \% #=1\<\K\k *\% (<.\{ -}>\)\=\z e\s *\. / contained containedin =razorcsDeclarator contains =razorcsGeneric
132
+ syn match razorcsDeclarator / \% #=1\K\k *\% (\_ s* <.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGenericParameters nextgroup =razorcsAssignmentOperator,razorcsLambdaOperator,razorcsParameters,razorcsPropertyBlock,razorcsDeclaratorMemberOperator,razorcsOperatorKeyword skipwhite skipempty
133
+ syn match razorcsNotDeclarator / \% #=1\<\K\k *\% (\_ s* <.\{ -}>\)\=\z e\s *\. / contained containedin =razorcsDeclarator contains =razorcsGeneric
134
134
syn match razorcsDeclaratorMemberOperator / \% #=1\. / contained nextgroup =razorcsDeclarator,razorcsIdentifier,razorcsIndexerThis skipwhite skipempty
135
135
syn region razorcsParameters matchgroup =razorcsDelimiter start =/ \% #=1(/ end =/ \% #=1)/ contained contains =razorcsTypeIdentifier,razorcsModifier,razorcsThisModifier,razorcsTypeTuple,razorcsCollectionExpressionOrAttributes nextgroup =razorcsLambdaOperator,razorcsBlock,razorcsMethodTypeConstraint skipwhite skipempty
136
136
syn keyword razorcsThisModifier this contained
@@ -139,7 +139,7 @@ syn keyword razorcsAccessor get set init add remove contained nextgroup=razorcsB
139
139
syn match razorcsDeclaratorComma / \% #=1,/ nextgroup =razorcsDeclarator skipwhite skipempty
140
140
141
141
syn match razorcsMethodTypeInheritanceOperator / \% #=1:/ contained nextgroup =razorcsMethodTypeInheritee,razorcsMethodTypeInheriteeKeyword skipwhite skipempty
142
- syn match razorcsMethodTypeInheritee / \% #=1\K\k *\% (<.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGeneric nextgroup =razorcsMethodTypeInheriteeMemberOperator,razorcsMethodTypeInheriteeComma,razorcsMethodTypeConstraint,razorcsMethodTypeConstraintModifier,razorcsMethodTypeInheriteeArguments,razorcsLambdaOperator skipwhite skipempty
142
+ syn match razorcsMethodTypeInheritee / \% #=1\K\k *\% (\_ s* <.\{ -}>\)\= / contained contains =razorcsKeywordError,razorcsGeneric nextgroup =razorcsMethodTypeInheriteeMemberOperator,razorcsMethodTypeInheriteeComma,razorcsMethodTypeConstraint,razorcsMethodTypeConstraintModifier,razorcsMethodTypeInheriteeArguments,razorcsLambdaOperator skipwhite skipempty
143
143
syn keyword razorcsMethodTypeInheriteeKeyword contained nextgroup =razorcsMethodTypeInheriteeComma,razorcsMethodTypeConstraint,razorcsMethodTypeConstraintModifier,razorcsMethodTypeConstraintLambdaOperator skipwhite skipempty
144
144
\ sbyte short int long byte ushort uint ulong float double decimal nint nuint
145
145
\ char bool object string void dynamic
@@ -262,9 +262,9 @@ syn match razorcsOperator /\%#=1&&\==\=/ contained nextgroup=@razorcsRHS skipwhi
262
262
syn match razorcsOperator / \% #=1||\= =\= / contained nextgroup =@razorcsRHS skipwhite skipempty
263
263
syn match razorcsOperator / \% #=1?\% (?=\=\)\= / contained nextgroup =@razorcsRHS skipwhite skipempty
264
264
265
- syn match razorcsOperator / \% #=1\. / contained nextgroup =razorcsRHSTypeIdentifier ,razorcsRHSConstant skipwhite skipempty
265
+ syn match razorcsOperator / \% #=1\. / contained nextgroup =razorcsRHSIdentifier ,razorcsRHSConstant skipwhite skipempty
266
266
syn match razorcsOperator / \% #=1\.\. / contained nextgroup =@razorcsRHS skipwhite skipempty
267
- syn match razorcsOperator / \% #=1?\. / contained nextgroup =razorcsRHSTypeIdentifier ,razorcsRHSConstant skipwhite skipempty
267
+ syn match razorcsOperator / \% #=1?\. / contained nextgroup =razorcsRHSIdentifier ,razorcsRHSConstant skipwhite skipempty
268
268
syn match razorcsOperator / \% #=1:/ contained nextgroup =@razorcsRHS,razorcsStatement skipwhite skipempty
269
269
syn match razorcsOperator / \% #=1::/ contained nextgroup =razorcsRHSIdentifier skipwhite skipempty
270
270
@@ -352,6 +352,7 @@ syn keyword razorcsModifier nextgroup=razorcsModifier,razorcsType,razorcsTypeIde
352
352
\ const
353
353
\ event explicit extern
354
354
\ fixed
355
+ \ global
355
356
\ implicit in internal
356
357
\ new
357
358
\ out override
0 commit comments