From 88b6be6e6f0d43491eebecfe7dd0de13ecfe4ec1 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 25 Oct 2026 12:51:05 -1000 Subject: Colour css properties and pseudo-classes Scintillua's css lexer tags them with names the map had no row for, so they came out as plain text. --- 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 f831b01..50c7bc8 100644 --- a/tests/extensions/test-syntax-highlight.lua +++ b/tests/extensions/test-syntax-highlight.lua @@ -55,6 +55,10 @@ h.contains("bytes between tokens are escaped", out, " & ") h.contains("later tokens still highlight", out, "zz") h.equals("close answers zero", ret, 0) +out = render("hello.fake", "$color :hover") +h.contains("a css property takes the number class", out, "$color") +h.contains("a css pseudo-class takes the function class", out, ":hover") + out = h.run({ "split.fake" }, { "i", "f" }) h.equals("writes are joined before lexing", out, "if") -- cgit 2.9.2