Skip to content

Commit

Permalink
Exclude false positives on stuff like C C<Str>
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Mar 17, 2018
1 parent c49337b commit de1ae72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xt/duplicates.t
Expand Up @@ -48,7 +48,12 @@ for @files -> $file {

next if $in-code;

my @line-dupes = ($line ~~ m:g/:i << (<alpha>+) >> \s+ << $0 >> /).map(~*[0]);
my @line-dupes = ($line ~~ m:g/:i
<< (<alpha>+) >> \s+ << $0 >>
# exlude "C C<...>" false positives
[ '<' <!{ $0.chars == 1 }> | <![<]> ]
/).map(~*[0]);
for @line-dupes -> $dupe {
next if $safe-dups ~$dupe[0];
@dupes.push: "" ~ $dupe[0] ~ "” on line $line-num";
Expand Down

0 comments on commit de1ae72

Please sign in to comment.