From 4c051602c831f50bac7a9cab467d41e79f6eccb5 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 15:19:40 -0700 Subject: Find a capitalised extension's lexer again Scintillua's detect() matches an extension by its case, and the fallback e227d1f dropped had lowercased it, so MAIN.C and SETUP.PY lost their colour. The fake lexer now answers only for the suffixes it knows, as Scintillua does, which is what lets the check see it. --- tests/extensions/test-syntax-highlight.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/extensions/test-syntax-highlight.lua') diff --git a/tests/extensions/test-syntax-highlight.lua b/tests/extensions/test-syntax-highlight.lua index 5fc6ea3..a0debc6 100644 --- a/tests/extensions/test-syntax-highlight.lua +++ b/tests/extensions/test-syntax-highlight.lua @@ -70,6 +70,10 @@ h.equals("a lexer stopping early leaves an escaped tail", out, "if") + out = render("post-receive", "#!/usr/bin/fake\nif") h.contains("a shebang picks the lexer of a file with no extension", out, "if") -- cgit 2.12.1