ziglang / zig.vim

Vim configuration for Zig
MIT License
448 stars 56 forks source link

Remove wrongful escape characters from zig.vim compiler #103

Open garrafote opened 9 months ago

garrafote commented 9 months ago

$ and % shouldn't be escaped on the makeprg string and will result in error when trying to run this comp.

idbrii commented 8 months ago

👍🏽

Confirm this change fixes this error when using :compiler zig | make test:

error: unknown command: \test

@garrafote zig_build_exe.vim and zig_test.vim also have these escapes and need updating. For example, :compiler zig_build_exe | make produces:

error: unrecognized file extension of parameter '%:S'

zig_build.vim is the only one without incorrect escapes, so it's the only compiler file that works for me.

(I'm on Gvim 9.0.1576 on Win10.)