diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-09 17:08:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-09 17:08:29 +0200 |
commit | 2fe310256e82ec8c4c160ebc171fe18c8da06330 (patch) | |
tree | a39a7ae1dcabdc76f22a3a2a63ad42c42a0d6f76 /scripts/build | |
parent | 2e1a9806326445c5cbdbb3b0cc7d82c7a16881b0 (diff) | |
download | vim-polyglot-2fe310256e82ec8c4c160ebc171fe18c8da06330.tar.gz vim-polyglot-2fe310256e82ec8c4c160ebc171fe18c8da06330.zip |
Transcompile ..= operator to support old vims, fixes #542
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build index 4a36bbac..69993374 100755 --- a/scripts/build +++ b/scripts/build @@ -175,7 +175,9 @@ def copy_file(package, src, dest) else output << "if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '#{name}') == -1\n\n" end - IO.copy_stream(input, output) + contents = File.read(input) + contents.gsub!(' ..= ', ' .= ') + output << contents output << "\nendif\n" end end |