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