Permalink
Browse files

correct block-comment indentation err to use 'indent' config option

  • Loading branch information...
trentm committed Feb 9, 2012
1 parent fa6d5a3 commit 6879cedb3901da418cb7b8078e9014e47911d427
Showing with 6 additions and 2 deletions.
  1. +6 −2 jsstyle
View
@@ -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*)\//;

0 comments on commit 6879ced

Please sign in to comment.