diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-28 18:56:36 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-28 18:56:36 +0200 | 
| commit | 31409eaafb75e2454c732dd953e92acc557fd5a7 (patch) | |
| tree | 7ac31507fb8251cbfbaa808bde59950113a8ad4a /scripts/build | |
| parent | f431aee86e51cb416ee83f895526d0ea46e46e5e (diff) | |
| download | vim-polyglot-31409eaafb75e2454c732dd953e92acc557fd5a7.tar.gz vim-polyglot-31409eaafb75e2454c732dd953e92acc557fd5a7.zip | |
Fix all warning messages
Diffstat (limited to '')
| -rwxr-xr-x | scripts/build | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/scripts/build b/scripts/build index 0e2df590..f60146c2 100755 --- a/scripts/build +++ b/scripts/build @@ -657,7 +657,6 @@ def expand_all(pattern, all = false)            if e3.match(/\*\.[a-z]/)              results << "*." + e3[2].upcase + e3[3..-1]            end -          results << "*"          end          results        end @@ -737,17 +736,18 @@ def show_warnings(all_filetypes, expected_filetypes)      (f["extensions"] || []).map { |e| "*." + e } + (f["filenames"] || [])    end +    all_handled = process_list(all_filetypes, all_expected) do |f|      [f["filenames"], f["ignored_filenames"], f["ignored_warnings"]].compact.flatten +         [f["extensions"], f["ignored_extensions"]].compact.flatten.map { |e| "*." + e }    end -  all_handled_regexps = Hash[all_handled.group_by { |a, b| a }.map { |a, b| [a, b[1]] }.map do |a, b| -    [a, Regexp.union(b.map { |x| Regexp.escape(x).gsub('\\*', '.*') })] +  all_handled_regexps = Hash[all_handled.group_by { |a, b| a }.map do |a, b| +    [a, Regexp.union(b.map { |x| Regexp.new(Regexp.escape(x[1]).gsub('\\*', '.*')) })]    end]    for name, e in all_expected - all_handled -    if all_handled_regexps[name].match?(e) +    if all_handled_regexps[name].match?(e) || e == "*"        next      end      puts "Missing for #{name}: #{e}" | 
