util/codestyle.sh: Fix Lua Vim modeline magic
This commit is contained in:
parent
abab2f9ee0
commit
fbc8c98931
@ -29,4 +29,4 @@ table.insert(package.loaders, function(name)
|
||||
end
|
||||
return nil
|
||||
end)
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -77,4 +77,4 @@ dofile(__buildat_get_path("share").."/client/sandbox.lua")
|
||||
|
||||
local test = require("buildat/extension/test")
|
||||
test.f()
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -26,4 +26,4 @@ end
|
||||
function buildat.send_packet(name, data)
|
||||
__buildat_send_packet(name, data)
|
||||
end
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -170,4 +170,4 @@ for _, name in ipairs(buildat_safe_list) do
|
||||
end
|
||||
|
||||
log:info("sandbox.lua loaded")
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -12,4 +12,4 @@ label:setPosition(-50, -50, 0)
|
||||
scene:addChild(label)
|
||||
]]
|
||||
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -25,4 +25,4 @@ function M.safe.binary_output(values, types)
|
||||
end
|
||||
|
||||
return M
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -24,4 +24,4 @@ function M.safe.unsub_tick(cb)
|
||||
end
|
||||
|
||||
return M
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -16,4 +16,4 @@ function M.safe.f()
|
||||
end
|
||||
|
||||
return M
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -180,4 +180,4 @@ function M.safe.SubscribeToEvent(event_name, function_name)
|
||||
end
|
||||
|
||||
return M
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -249,4 +249,4 @@ joyinput.sub(function(joystick, button, state)
|
||||
end
|
||||
end)
|
||||
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -176,4 +176,4 @@ function handle_update(eventType, eventData)
|
||||
end
|
||||
u3d.SubscribeToEvent("Update", "handle_update")
|
||||
|
||||
# vim: set noet ts=4 sw=4:
|
||||
-- vim: set noet ts=4 sw=4:
|
||||
|
@ -57,8 +57,12 @@ sed -i '/^\/\/ vim: set /d' $header_files $cpp_files
|
||||
for f in $header_files $cpp_files; do
|
||||
echo '// vim: set noet ts=4 sw=4:' >> $f
|
||||
done
|
||||
sed -i '/^# vim: set /d' $lua_files $cmake_files
|
||||
for f in $lua_files $cmake_files; do
|
||||
sed -i '/^-- vim: set /d' $lua_files
|
||||
for f in $lua_files; do
|
||||
echo '-- vim: set noet ts=4 sw=4:' >> $f
|
||||
done
|
||||
sed -i '/^# vim: set /d' $cmake_files
|
||||
for f in $cmake_files; do
|
||||
echo '# vim: set noet ts=4 sw=4:' >> $f
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user