diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-02 00:36:09 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-02 00:36:09 +0200 |
commit | 560024abe07ac73b31574167653a9b94821365fb (patch) | |
tree | 16d00f8cf054f3d77271bc03473ab0b6711956f4 /scripts/build | |
parent | 3ad297db5c1cf94660e4297ffa81b6281eab2884 (diff) | |
download | vim-polyglot-4.13.1.tar.gz vim-polyglot-4.13.1.zip |
Resolve issues with loading order, closes #571v4.13.1
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/build b/scripts/build index 42ff4f3a..8b40e571 100755 --- a/scripts/build +++ b/scripts/build @@ -94,9 +94,6 @@ def load_data() languages = load_languages heuristics = load_heuristics - # Reason can have ocaml as interpreter but let's not depend on it... - languages["Reason"]["interpreters"] -= ["ocaml"] - for package in packages for filetype in package["filetypes"] if filetype["linguist"] @@ -584,13 +581,13 @@ def generate_ftdetect(packages, heuristics) show_warnings(all_filetypes, expected_filetypes) - ftdetect = File.read('filetype.vim') + ftdetect = File.read('ftdetect/polyglot.vim') starting = '" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE' ending = '" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE' File.write( - 'filetype.vim', + 'ftdetect/polyglot.vim', ftdetect.gsub(/(?<=#{starting}\n)(.*)(?=#{ending})/m) { output } ) |