Skip to content

Commit

Permalink
Ignore conflict markers in UcdLineParser (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin authored Oct 10, 2023
1 parent 57ae00d commit 106fd95
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ public boolean hasNext() {
return false;
}
line = line2 = rawLines.next();
if (line.startsWith("<<<<<<<")
|| line.startsWith("=======")
|| line.startsWith(">>>>>>>")) {
line2 = "";
}
++stats.lineCount;
final int hashPos = line2.indexOf('#');
if (hashPos >= 0) {
Expand Down

0 comments on commit 106fd95

Please sign in to comment.