Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 6879cedb3901da418cb7b8078e9014e47911d427 1 parent fa6d5a3
Trent Mick authored February 09, 2012

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  jsstyle
8  jsstyle
@@ -417,8 +417,12 @@ line: while (<$filehandle>) {
417 417
 	}
418 418
 	# does this looks like the start of a block comment?
419 419
 	if (/$hdr_comment_start/) {
420  
-		if (!/^\t*\/\*/) {
421  
-			err("block comment not indented by tabs");
  420
+		if ($config{"indent"} eq "tab") {
  421
+			if (!/^\t*\/\*/) {
  422
+				err("block comment not indented by tabs");
  423
+			}
  424
+		} elsif (!/^ *\/\*/) {
  425
+			err("block comment not indented by spaces");
422 426
 		}
423 427
 		$in_comment = 1;
424 428
 		/^(\s*)\//;

0 notes on commit 6879ced

Please sign in to comment.
Something went wrong with that request. Please try again.