Skip to content

Commit

Permalink
Escape
Browse files Browse the repository at this point in the history
  • Loading branch information
jackTabsCode committed Nov 24, 2024
1 parent 9f4ad0d commit f46bf3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/debugger/formatTable.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local stringColor = "#dcdcaa"
local numberColor = "#b0c4de"
local keywordColor = "#c586c0"
local dimmedColor = "#808080"

function colorize(value, color)
if type(value) == "number" then
Expand Down Expand Up @@ -46,7 +47,7 @@ local function formatTable(object, mode, _padLength, _depth, _seen)
_seen = _seen or {}

if _seen[object] then
return "<cyclic>"
return colorize("&lt;cyclic&gt;", dimmedColor)
end
_seen[object] = true

Expand Down

0 comments on commit f46bf3a

Please sign in to comment.