summaryrefslogtreecommitdiffstats
path: root/scripts/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-02 00:36:09 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-02 00:36:09 +0200
commit560024abe07ac73b31574167653a9b94821365fb (patch)
tree16d00f8cf054f3d77271bc03473ab0b6711956f4 /scripts/build
parent3ad297db5c1cf94660e4297ffa81b6281eab2884 (diff)
downloadvim-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-xscripts/build7
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 }
)