Diff

util/startup.lua @ 12982:fc0109c59807

util.startup: Tweak function string representation Mostly in order to avoid triggering the XML syntax highlighting in the console logger.
author Kim Alvefur <zash@zash.se>
date Sun, 26 Mar 2023 00:11:42 +0100
parent 12975:d10957394a3c
child 13014:06453c564141
line wrap: on
line diff
--- 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