util.startup: Tweak function string representation
Mostly in order to avoid triggering the XML syntax highlighting in the
console logger.
--- a/util/startup.lua Fri Mar 24 16:29:48 2023 +0100
+++ b/util/startup.lua Sun Mar 26 00:11:42 2023 +0100
@@ -233,7 +233,7 @@
if info.isvararg then
info[n_params+1] = "...";
end
- return ("function<%s:%d>(%s)"):format(info.short_src:match("[^\\/]*$"), info.linedefined, table.concat(info, ", "));
+ return ("function @%s:%d(%s)"):format(info.short_src:match("[^\\/]*$"), info.linedefined, table.concat(info, ", "));
end
debug.setmetatable(function() end, mt);
end