mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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:
@@ -83,6 +83,10 @@ sub read_in_file {
|
|||||||
|
|
||||||
# If not an empty line, emit as Lua comment.
|
# If not an empty line, emit as Lua comment.
|
||||||
if (!/^$/) {
|
if (!/^$/) {
|
||||||
|
# Remove modeline
|
||||||
|
s/vim:.*set f\w+=vim//g;
|
||||||
|
# Remove trailing ":"
|
||||||
|
s/\s*:\s*$//g;
|
||||||
push @description_lines, '-- ' . $_;
|
push @description_lines, '-- ' . $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user