File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,23 @@ public string ContinuationRebuildText
137
137
138
138
public bool IsDeclarationContinuation { get ; set ; }
139
139
140
- public bool HasDeclarationContinuation => ( ! IsProcedureStart && ! ProcedureStartIgnoreRegex . IsMatch ( _code ) )
141
- && ! ContainsOnlyComment
142
- && string . IsNullOrEmpty ( EndOfLineComment )
143
- && HasContinuation
144
- && ( ( IsDeclarationContinuation && Segments . Count ( ) == 1 ) || DeclarationRegex . IsMatch ( Segments . Last ( ) ) ) ;
140
+ public bool HasDeclarationContinuation
141
+ {
142
+ get
143
+ {
144
+ if ( ! string . IsNullOrEmpty ( EndOfLineComment )
145
+ || ContainsOnlyComment
146
+ || IsProcedureStart
147
+ || ! HasContinuation
148
+ || ProcedureStartIgnoreRegex . IsMatch ( _code ) )
149
+ {
150
+ return false ;
151
+ }
152
+
153
+ return ( IsDeclarationContinuation && Segments . Count ( ) == 1 )
154
+ || DeclarationRegex . IsMatch ( Segments . Last ( ) ) ;
155
+ }
156
+ }
145
157
146
158
public bool HasContinuation => _code . Equals ( "_" ) || _code . EndsWith ( " _" ) || EndOfLineComment . EndsWith ( " _" ) ;
147
159
@@ -161,8 +173,7 @@ public int EnumOrTypeEnds
161
173
162
174
public bool IsProcedureStart
163
175
{
164
- get
165
- { return _segments . Any ( s => ProcedureStartRegex . IsMatch ( s ) ) && ! _segments . Any ( s => ProcedureStartIgnoreRegex . IsMatch ( s ) ) ; }
176
+ get { return _segments . Any ( s => ProcedureStartRegex . IsMatch ( s ) ) && ! _segments . Any ( s => ProcedureStartIgnoreRegex . IsMatch ( s ) ) ; }
166
177
}
167
178
168
179
public bool IsProcedureEnd
You can’t perform that action at this time.
0 commit comments