util.startup: Tweak function string representation
authorKim Alvefur <zash@zash.se>
Sun, 26 Mar 2023 00:11:42 +0100
changeset 12986 fc0109c59807
parent 12985 d795e3bbc0e3
child 12987 4533c9b906b0
util.startup: Tweak function string representation Mostly in order to avoid triggering the XML syntax highlighting in the console logger.
util/startup.lua
--- 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