diff --git a/scripts/comment.pl b/scripts/comment.pl index d6e851d1f..4c2a011c9 100755 --- a/scripts/comment.pl +++ b/scripts/comment.pl @@ -21,7 +21,7 @@ sub checkfile # missing comment before variable declaration? if (($comment == 0) && ($line =~ /^\s+([a-z]+)? [a-z]+(\s)+[a-z][a-z0-9]*\s*[;=]/) && - (!($line =~ /return|delete/))) + (!($line =~ /return|delete|operator/))) { print "[$filename:$linenr] No comment before variable declaration\n"; }