Skip to content

Commit

Permalink
Ignore conflict markers in ScriptExtensions (#583)
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Scherer <markus.icu@gmail.com>
  • Loading branch information
eggrobin and markusicu authored Oct 24, 2023
1 parent b4d62b7 commit e7a9804
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unicodetools/src/main/java/org/unicode/jsp/FileUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public SemiFileReader process(BufferedReader in, String fileName) {
if (line == null) {
break;
}
// Ignore merge conflict markers.
if (line.startsWith("<<<<<<<")
|| line.startsWith("=======")
|| line.startsWith(">>>>>>>")) {
continue;
}
final int comment = line.indexOf("#");
if (comment >= 0) {
processComment(line, comment);
Expand Down

0 comments on commit e7a9804

Please sign in to comment.