1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

ignore /// in a quote

This commit is contained in:
Kenichi Ishigaki 2015-04-16 17:25:44 +09:00
parent f85a740e70
commit 4dc70a9d9e

View file

@ -25,8 +25,8 @@ foreach my $file (@c_files) {
$line++; $line++;
if (/^(.*)\/\//) { if (/^(.*)\/\//) {
my $m = $1; my $m = $1;
if ($m !~ /\*/ && $m !~ /http:$/) { # skip the // in c++ comment in parse.c if ($m !~ /\*/ && $m !~ /http:$/ && $m !~ m!"/*?$!) { # skip the // in c++ comment in parse.c
fail("C++ comment in $file line $line"); fail("C++ comment in $file line $line: $m");
next FILE; next FILE;
} }
} }