diff --git a/xt/cpp_comments.t b/xt/cpp_comments.t index 040c083..8558de0 100644 --- a/xt/cpp_comments.t +++ b/xt/cpp_comments.t @@ -25,8 +25,8 @@ foreach my $file (@c_files) { $line++; if (/^(.*)\/\//) { my $m = $1; - if ($m !~ /\*/ && $m !~ /http:$/) { # skip the // in c++ comment in parse.c - fail("C++ comment in $file line $line"); + if ($m !~ /\*/ && $m !~ /http:$/ && $m !~ m!"/*?$!) { # skip the // in c++ comment in parse.c + fail("C++ comment in $file line $line: $m"); next FILE; } }