diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-28 02:19:06 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-28 02:19:06 +0200 | 
| commit | 417df69667c1df5484d01ea766320324759d8718 (patch) | |
| tree | f34979cb45d0148aec93d15d785699b8a6289a30 /scripts | |
| parent | ae778bdb175f930b69facec5f3ccd1b95953bc88 (diff) | |
| download | vim-polyglot-417df69667c1df5484d01ea766320324759d8718.tar.gz vim-polyglot-417df69667c1df5484d01ea766320324759d8718.zip | |
Fix zsh missing filenames
Diffstat (limited to '')
| -rwxr-xr-x | scripts/build | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/scripts/build b/scripts/build index dd0af0c0..49ae41e1 100755 --- a/scripts/build +++ b/scripts/build @@ -729,6 +729,7 @@ def show_warnings(all_filetypes, expected_filetypes)    if !ENV["DEV"]      return    end +    all_expected = process_list(expected_filetypes, false) do |f|      (f["extensions"] || []).map { |e| "*." + e } + (f["filenames"] || [])    end @@ -742,8 +743,11 @@ def show_warnings(all_filetypes, expected_filetypes)      [a, Regexp.union(b.map { |x| Regexp.escape(x).gsub('\\*', '.*') })]    end] +  puts all_handled.select { |a, b| a.include?('zsh') } + +  puts all_handled_regexps["zsh"]    for name, e in all_expected - all_handled -    if e.match?(/\/\*?\.[^\/]+$/) && all_handled.include?([name, e.split('/').last.gsub('*', '')]) +    if all_handled.include?([name, e.split('/').last.gsub('*', '')])        next      end      if e.include?('*') && all_handled_regexps[name].match?(e) | 
