File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/TextDifferencing Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ private static ImmutableArray<TextSpan> TokenizeWords(SourceText text)
5959 // whitespace characters in the same "word", and we don't really care about contiguous quotes
6060 // or slashes, so we can keep it simple and just capture a "word" when the classification of
6161 // the current character changes.
62- var index = 1 ;
63- while ( index < text . Length )
62+ for ( var index = 1 ; index < text . Length ; index ++ )
6463 {
6564 var classification = Classify ( text [ index ] ) ;
6665 if ( classification != currentClassification )
@@ -70,8 +69,6 @@ private static ImmutableArray<TextSpan> TokenizeWords(SourceText text)
7069 currentSpanStart = index ;
7170 currentClassification = classification ;
7271 }
73-
74- index ++ ;
7572 }
7673
7774 // It's impossible for the loop to capture the last word
You can’t perform that action at this time.
0 commit comments