Skip to content

Commit 59720c1

Browse files
committed
Correct detection of line continuations when stripping line numbers. Closes #2644
1 parent 0a65b0c commit 59720c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rubberduck.Parsing/VBA/ComponentParseTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private static void StripLineNumbers(string[] lines)
144144
}
145145
}
146146

147-
continuing = code.EndsWith("_");
147+
continuing = code.EndsWith(" _");
148148
}
149149
}
150150

Rubberduck.VBEEditor/SafeComWrappers/VB6/CodeModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private void StripLineNumbers(string[] lines)
128128
}
129129
}
130130

131-
continuing = code.EndsWith("_");
131+
continuing = code.EndsWith(" _");
132132
}
133133
}
134134

0 commit comments

Comments
 (0)