Commit 83242e0c authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds

checkpatch: widen implied comment detection to allow multiple stars

Some people use double star '**' as a comment continuation, and start
comments with complete lines of stars.  Widen the implied comment
detection to pick these up.
Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 721c1cb6
...@@ -1109,7 +1109,7 @@ sub process { ...@@ -1109,7 +1109,7 @@ sub process {
# is the start of a diff block and this line starts # is the start of a diff block and this line starts
# ' *' then it is very likely a comment. # ' *' then it is very likely a comment.
if (!defined $edge && if (!defined $edge &&
$rawlines[$linenr] =~ m@^.\s* \*(?:\s|$)@) $rawlines[$linenr] =~ m@^.\s*(?:\*\*+| \*)(?:\s|$)@)
{ {
$in_comment = 1; $in_comment = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment