We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab9cde commit a4e9931Copy full SHA for a4e9931
src/lib/client/SuperDebug.svelte
@@ -67,6 +67,15 @@
67
* @returns {string}
68
*/
69
function syntaxHighlight(json) {
70
+ switch (typeof json) {
71
+ case "function": {
72
+ return `<span class="function">[function ${json.name ?? 'unnamed'}]</span>`;
73
+ }
74
+ case "symbol": {
75
+ return `<span class="symbol">${json.toString()}</span>`;
76
77
78
+
79
const encodedString = JSON.stringify(
80
json,
81
function (key, value) {
@@ -385,6 +394,10 @@
385
394
color: var(--sd-code-function, #f06962);
386
395
}
387
396
397
+ :global(.super-debug--code .symbol) {
398
+ color: var(--sd-code-symbol, #77e9c3);
399
400
388
401
.super-debug pre::-webkit-scrollbar {
389
402
width: var(--sd-sb-width, 1.25rem);
390
403
height: var(--sd-sb-height, 1.25rem);
0 commit comments