Skip to content

Commit ab3b582

Browse files
committed
auto-style.rb: Adjust .y file as same as .c
1 parent 46095d2 commit ab3b582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/auto-style.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def adjust_styles(files)
217217
end
218218
end
219219

220-
if File.fnmatch?("*.[ch]", f, File::FNM_PATHNAME) &&
220+
if File.fnmatch?("*.[chy]", f, File::FNM_PATHNAME) &&
221221
!DIFFERENT_STYLE_FILES.any? {|pat| File.fnmatch?(pat, f, File::FNM_PATHNAME)}
222222
indent0 = true if src.gsub!(/^\w+\([^\n]*?\)\K[ \t]*(?=\{( *\\)?$)/, '\1' "\n")
223223
indent0 = true if src.gsub!(/^([ \t]*)\}\K[ \t]*(?=else\b.*?( *\\)?$)/, '\2' "\n" '\1')

0 commit comments

Comments
 (0)