From 52ebff6286813e97356e323a82dbe026f73c2aa8 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 9 Jun 2026 19:41:57 +0000 Subject: [PATCH] debug(typst): force arg keys bright red to confirm token pipeline Adds { tag: t.attributeName, color: '#cc0000', fontWeight: 'bold' } to typstHighlightStyle so named arg keys are unmistakably red if the CodeArgKey token is reaching the highlighter. Will be removed once the pipeline is confirmed working and replaced with per-theme colors. Co-Authored-By: Claude Sonnet 4.6 --- .../frontend/js/features/source-editor/languages/typst/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/frontend/js/features/source-editor/languages/typst/index.ts b/services/web/frontend/js/features/source-editor/languages/typst/index.ts index da826de772..508e94e7d7 100644 --- a/services/web/frontend/js/features/source-editor/languages/typst/index.ts +++ b/services/web/frontend/js/features/source-editor/languages/typst/index.ts @@ -101,6 +101,8 @@ const typstHighlightStyle = HighlightStyle.define([ { tag: t.heading, fontWeight: 'bold' }, { tag: t.strong, fontWeight: 'bold' }, { tag: t.emphasis, fontStyle: 'italic' }, + // Diagnostic: force arg keys bright red so we can confirm the token reaches the highlighter. + { tag: t.attributeName, color: '#cc0000', fontWeight: 'bold' }, ]) export const typst = () => {