Skip to content

Commit 1fd8f56

Browse files
committed
Improve substring \\ skip
1 parent 475cad6 commit 1fd8f56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TextTools/TrailingWhitespace/RemoveWhiteSpace.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ public static void RemoveTrailingWhitespace(ITextBuffer buffer)
9393
spaceStart = 0;
9494
continue;
9595
}
96+
// Skip \\ substring
97+
else if (backChar == '\\' && c == '\\')
98+
{
99+
backChar = ' ';
100+
if (spaceStart != 0)
101+
spaceStart = 0;
102+
continue;
103+
}
96104

97105
// C++ raw string literal
98106
if (backChar == 'R' && c == '\"')

0 commit comments

Comments
 (0)