diff --git a/util/update_copyrights b/util/update_copyrights index ec479025ef..e35b458248 100644 --- a/util/update_copyrights +++ b/util/update_copyrights @@ -372,14 +372,14 @@ foreach $file (keys %file_types) { } elsif ($mkd_comment) { $before_copyright = ""; if (/^ if $_ eq "//; + last if s/.*-->//; $_ = ; } print "$file: unterminated comment\n"