mirror of
https://github.com/webmin/webmin.git
synced 2025-08-17 19:06:28 +00:00
Handle /* comment */ with // inside it
This commit is contained in:
@ -92,8 +92,8 @@ while($line = <FILE>) {
|
||||
# strip comments
|
||||
$line =~ s/\r|\n//g;
|
||||
$line =~ s/#.*$//g;
|
||||
$line =~ s/\/\/.*$//g if ($line !~ /".*\/\/.*"/);
|
||||
$line =~ s/\/\*.*\*\///g;
|
||||
$line =~ s/\/\/.*$//g if ($line !~ /".*\/\/.*"/);
|
||||
while(1) {
|
||||
if (!$cmode && $line =~ /\/\*/) {
|
||||
# start of a C-style comment
|
||||
|
Reference in New Issue
Block a user