From 4dc70a9d9e9fb43dc65d4c27e8536a87890b88d0 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 16 Apr 2015 17:25:44 +0900 Subject: [PATCH] ignore /// in a quote --- xt/cpp_comments.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }