Skip to content

Commit

Permalink
correct block-comment indentation err to use 'indent' config option
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Feb 9, 2012
1 parent fa6d5a3 commit 6879ced
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jsstyle
Expand Up @@ -417,8 +417,12 @@ line: while (<$filehandle>) {
}
# does this looks like the start of a block comment?
if (/$hdr_comment_start/) {
if (!/^\t*\/\*/) {
err("block comment not indented by tabs");
if ($config{"indent"} eq "tab") {
if (!/^\t*\/\*/) {
err("block comment not indented by tabs");
}
} elsif (!/^ *\/\*/) {
err("block comment not indented by spaces");
}
$in_comment = 1;
/^(\s*)\//;
Expand Down

0 comments on commit 6879ced

Please sign in to comment.