cstyle: Allow spaces in all comments
Update the cstyle.pl script to allow pictures in all comments not
just header comments. Recent changes from Illumos such as d3cc8b1
have relocated various pictures in the standard block comments to
make the code more readable.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1821
This commit is contained in:
parent
351a26ddc0
commit
8ffef572ed
@ -441,8 +441,8 @@ line: while (<$filehandle>) {
|
||||
|
||||
# check for errors that might occur in comments and in code.
|
||||
|
||||
# allow spaces to be used to draw pictures in header comments.
|
||||
if (/[^ ] / && !/".* .*"/ && !$in_header_comment) {
|
||||
# allow spaces to be used to draw pictures in all comments.
|
||||
if (/[^ ] / && !/".* .*"/ && !$in_comment) {
|
||||
err("spaces instead of tabs");
|
||||
}
|
||||
if (/^ / && !/^ \*[ \t\/]/ && !/^ \*$/ &&
|
||||
|
Loading…
Reference in New Issue
Block a user