Actually wrap annotation lines in the dim span

The grey wrap targeted a renderer shape that no longer exists and
silently no-opped; it now applies at the real line-append point, and
the editor selection rule is un-nested for parser safety.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 13:04:14 -04:00
parent e9ebd318cd
commit f59e059f0d
+2 -2
View File
@@ -114,6 +114,7 @@
z-index: 1;
}
#highlight .anno { color: #6a5f52; }
#editor::selection { background: rgba(232,129,74,0.22); color: transparent; }
#stresslayer {
pointer-events: none;
color: transparent;
@@ -129,7 +130,6 @@
background: transparent;
color: transparent;
caret-color: var(--accent);
&::selection { background: rgba(232,129,74,0.22); }
resize: none;
z-index: 2;
outline: none;
@@ -579,7 +579,7 @@ function render(){
h += `<span class="hseg" style="${style}">${text}</span>`;
}
}
html += h + '\n';
html += (/^\s*[#([]/.test(line) ? `<span class="anno">${h}</span>` : h) + '\n';
});
highlight.innerHTML = html;
renderStress(lines);