diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-11 15:18:42 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-11 15:18:42 +0100 |
| commit | 9854085fee254ef0c96775031089911cf72164c2 (patch) | |
| tree | 8e004c9abea572af38f80c6da6b4aa25586b3fcb /vis/visrc.lua | |
| parent | ec726488105714ac6c55d910e2116785cc479e5b (diff) | |
test/vis: drop cpp(1) as a preprocessor
It is not worth the trouble to deal with different escaping rules.
The tests should be relatively small and self contained anyway,
hence comments should not be that important.
Diffstat (limited to 'vis/visrc.lua')
| -rw-r--r-- | vis/visrc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vis/visrc.lua b/vis/visrc.lua index e19efed..642af45 100644 --- a/vis/visrc.lua +++ b/vis/visrc.lua @@ -5,7 +5,7 @@ vis.events.win_open = function(win) if name then -- use the corresponding test.lua file name = string.gsub(name, '%.in$', '') - local file = assert(io.popen(string.format("cpp -P '%s.keys'", name), 'r')) + local file = io.open(string.format("%s.keys", name)) local keys = file:read('*all') keys = string.gsub(keys, '%s*\n', '') keys = string.gsub(keys, '<Space>', ' ') |
