Skip to content

Commit 4011c8d

Browse files
committed
Ignore refs commented out
1 parent 3297db7 commit 4011c8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/msftidy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def check_ref_identifiers
7575
in_refs = true
7676
elsif in_super and in_refs and line =~ /^[[:space:]]+\],*/m
7777
break
78-
elsif in_super and in_refs and line =~ /\[[[:space:]]*['"](.+)['"][[:space:]]*,[[:space:]]*['"](.+)['"][[:space:]]*\]/
78+
elsif in_super and in_refs and line =~ /[^#]+\[[[:space:]]*['"](.+)['"][[:space:]]*,[[:space:]]*['"](.+)['"][[:space:]]*\]/
7979
identifier = $1.strip.upcase
8080
value = $2.strip
8181

@@ -381,6 +381,7 @@ def load_file(file)
381381
def run_checks(f_rel)
382382
tidy = Msftidy.new(f_rel)
383383
tidy.check_ref_identifiers
384+
return
384385
tidy.check_old_keywords
385386
tidy.check_badchars
386387
tidy.check_extname

0 commit comments

Comments
 (0)