We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46095d2 commit ab3b582Copy full SHA for ab3b582
tool/auto-style.rb
@@ -217,7 +217,7 @@ def adjust_styles(files)
217
end
218
219
220
- if File.fnmatch?("*.[ch]", f, File::FNM_PATHNAME) &&
+ if File.fnmatch?("*.[chy]", f, File::FNM_PATHNAME) &&
221
!DIFFERENT_STYLE_FILES.any? {|pat| File.fnmatch?(pat, f, File::FNM_PATHNAME)}
222
indent0 = true if src.gsub!(/^\w+\([^\n]*?\)\K[ \t]*(?=\{( *\\)?$)/, '\1' "\n")
223
indent0 = true if src.gsub!(/^([ \t]*)\}\K[ \t]*(?=else\b.*?( *\\)?$)/, '\2' "\n" '\1')
0 commit comments