scripts/legacy2luatest.pl: remove modeline #2536

Several legacy tests have "vim: set ft=vim" modelines which causes the
new lua file to be opened with filetype=vim.
This commit is contained in:
Justin M. Keyes
2015-04-29 00:59:29 -04:00
parent 1c2c90ab07
commit 28ad7b5026

View File

@@ -83,6 +83,10 @@ sub read_in_file {
# If not an empty line, emit as Lua comment.
if (!/^$/) {
# Remove modeline
s/vim:.*set f\w+=vim//g;
# Remove trailing ":"
s/\s*:\s*$//g;
push @description_lines, '-- ' . $_;
}