From e1960f0e17b97ceba13e72cf03e15f47b4a62385 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:23:43 -0700 Subject: Drop the highlighter's extension fallback The table of extensions and the second lookup served only a Scintillua with no detect(), which now leaves every file uncoloured but escaped. The fake detect() names a lexer after the file's suffix, so every test lexer is reached through it. --- tests/extensions/test-syntax-highlight.lua | 5 ----- 1 file changed, 5 deletions(-) (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 50c7bc8..f9f99a8 100644 --- a/tests/extensions/test-syntax-highlight.lua +++ b/tests/extensions/test-syntax-highlight.lua @@ -70,11 +70,6 @@ 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