From 0466c9dbcbe5a97a2b44d49afd4e497b1a8994f7 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:13:40 -0700 Subject: Say the highlighter needs Scintillua's detect() --- custom/extensions/syntax-highlight.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/extensions/syntax-highlight.lua b/custom/extensions/syntax-highlight.lua index 3a4fa9b..e0000ec 100644 --- a/custom/extensions/syntax-highlight.lua +++ b/custom/extensions/syntax-highlight.lua @@ -28,7 +28,8 @@ local scintillua_env = "CGIT_SCINTILLUA_PATH" -- directory next to cgitrc is enough for it to be found. The lexers come -- from https://orbitalquark.github.io/scintillua/ and need lpeg, built for -- the Lua cgit is linked against. Forgetting that is the usual reason --- nothing is coloured. +-- nothing is coloured. A file is coloured only when Scintillua's detect() +-- names its lexer, so an older Scintillua without detect() colours nothing. -- -- # Debian and Ubuntu -- sudo apt install lua-lpeg -- cgit