From 9ec4fbddd559d93b3d6b072dc8f56d2a572585bd Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 06:02:56 +0000 Subject: feat(plugin): color bracket pairs and mark unmatched brackets red Co-Authored-By: Claude Fable 5.1 --- plugin/src/lexical.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin/src/lexical.js') diff --git a/plugin/src/lexical.js b/plugin/src/lexical.js index 3fc856a..ff01166 100644 --- a/plugin/src/lexical.js +++ b/plugin/src/lexical.js @@ -17,6 +17,10 @@ function codeOnly(text) { } else if (quote) { if (char === quote) quote = null; result.push(' '); + } else if (text.slice(i, i + 3) === "'''") { + // The compiler accepts a quote character as a three-quote CHAR literal. + result.push(' ', ' ', ' '); + i += 2; } else if (char === '"' || char === "'") { quote = char; result.push(' '); -- cgit v1.3.1-4-g156e