File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public static class TokenExtensions
15
15
/// <returns>Zero-based column position</returns>
16
16
public static int EndColumn ( this IToken token )
17
17
{
18
- if ( token . Text == Environment . NewLine )
18
+ if ( token . Text == Environment . NewLine || token . Type == TokenConstants . Eof )
19
19
{
20
20
return token . Column ;
21
21
}
Original file line number Diff line number Diff line change @@ -710,7 +710,6 @@ public void GivenOnlyBlankLines_EndLine_Works()
710
710
const string inputCode = @"
711
711
712
712
713
-
714
713
" ;
715
714
716
715
var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out var component ) ;
@@ -736,8 +735,7 @@ public void GivenBlankLinesWithLeadingSpaces_EndColumn_Works()
736
735
{
737
736
const string inputCode = @"
738
737
739
-
740
- " ;
738
+ " ;
741
739
742
740
var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out var component ) ;
743
741
var pane = component . CodeModule . CodePane ;
@@ -762,8 +760,7 @@ public void GivenBlankLinesWithLeadingSpaces_EndLine_Works()
762
760
{
763
761
const string inputCode = @"
764
762
765
-
766
- " ;
763
+ " ;
767
764
768
765
var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out var component ) ;
769
766
var pane = component . CodeModule . CodePane ;
You can’t perform that action at this time.
0 commit comments