From 62a059c822fa3ddf9a5ae771fe1496bdf82f32c5 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 19 Jul 2026 16:40:16 -1000 Subject: Move syntax highlighting to a Lua source filter --- assets/cgit.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'assets/cgit.css') diff --git a/assets/cgit.css b/assets/cgit.css index 7f7535d..46dfbba 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -736,11 +736,13 @@ div#cgit table.blob td.linenumbers a:target:before { content: "\2BA9"; } -/* Tokens produced by the client-side highlighter in cgit.js. */ +/* Tokens produced by the syntax-highlight.lua source filter. */ div#cgit .hl-comment { color: light-dark(#6a737d, #8b949e); font-style: italic; } div#cgit .hl-keyword { color: light-dark(#cf222e, #ff7b72); } div#cgit .hl-string { color: light-dark(#0a7d24, #7ee787); } div#cgit .hl-number { color: light-dark(#0550ae, #79c0ff); } +div#cgit .hl-type { color: light-dark(#953800, #ffa657); } +div#cgit .hl-func { color: light-dark(#6639ba, #d2a8ff); } /* ---- Blame ------------------------------------------------------------ */ -- cgit v2.8.0