From 026b2d6e88a5c6c9f8766cb9776fa54b7b18b0f8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 26 Mar 2023 00:11:42 +0100 Subject: util.startup: Tweak function string representation Mostly in order to avoid triggering the XML syntax highlighting in the console logger. --- util/startup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/startup.lua b/util/startup.lua index 7477e5ff..c000bdb1 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -233,7 +233,7 @@ function startup.set_function_metatable() 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 -- cgit v1.2.3