diff options
author | Andy Whitcroft <apw@shadowen.org> | 2009-01-06 17:41:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:15 -0500 |
commit | 83242e0c239aaa33e757584605f788ac1eca2f0f (patch) | |
tree | fa114470eebf1bb00dc97ad6a0620a5f5cc4d308 /scripts | |
parent | 721c1cb60e0546d2e71b9aa50426c94e69c6521a (diff) |
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: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7c17e95bf36..a305aa52b8b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1109,7 +1109,7 @@ sub process { | |||
1109 | # is the start of a diff block and this line starts | 1109 | # is the start of a diff block and this line starts |
1110 | # ' *' then it is very likely a comment. | 1110 | # ' *' then it is very likely a comment. |
1111 | if (!defined $edge && | 1111 | if (!defined $edge && |
1112 | $rawlines[$linenr] =~ m@^.\s* \*(?:\s|$)@) | 1112 | $rawlines[$linenr] =~ m@^.\s*(?:\*\*+| \*)(?:\s|$)@) |
1113 | { | 1113 | { |
1114 | $in_comment = 1; | 1114 | $in_comment = 1; |
1115 | } | 1115 | } |