fix(coding-agent): restore diff code block highlighting

closes #5092
This commit is contained in:
Armin Ronacher
2026-05-28 00:49:27 +02:00
parent 1e168a89c5
commit b85bf65678
3 changed files with 43 additions and 1 deletions

View File

@@ -1042,17 +1042,27 @@ function buildCliHighlightTheme(t: Theme): CliHighlightTheme {
built_in: (s: string) => t.fg("syntaxType", s),
literal: (s: string) => t.fg("syntaxNumber", s),
number: (s: string) => t.fg("syntaxNumber", s),
regexp: (s: string) => t.fg("syntaxString", s),
string: (s: string) => t.fg("syntaxString", s),
comment: (s: string) => t.fg("syntaxComment", s),
doctag: (s: string) => t.fg("syntaxComment", s),
meta: (s: string) => t.fg("muted", s),
function: (s: string) => t.fg("syntaxFunction", s),
title: (s: string) => t.fg("syntaxFunction", s),
class: (s: string) => t.fg("syntaxType", s),
type: (s: string) => t.fg("syntaxType", s),
tag: (s: string) => t.fg("syntaxPunctuation", s),
name: (s: string) => t.fg("syntaxKeyword", s),
attr: (s: string) => t.fg("syntaxVariable", s),
variable: (s: string) => t.fg("syntaxVariable", s),
params: (s: string) => t.fg("syntaxVariable", s),
operator: (s: string) => t.fg("syntaxOperator", s),
punctuation: (s: string) => t.fg("syntaxPunctuation", s),
emphasis: (s: string) => t.italic(s),
strong: (s: string) => t.bold(s),
link: (s: string) => t.underline(s),
addition: (s: string) => t.fg("toolDiffAdded", s),
deletion: (s: string) => t.fg("toolDiffRemoved", s),
};
}