diff options
Diffstat (limited to 'tests/extensions/test-syntax-highlight.lua')
-rw-r--r--tests/extensions/test-syntax-highlight.lua4
1 file changed, 4 insertions, 0 deletions
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, "<span class='hl-keyword'>zz</span>")
h.equals("close answers zero", ret, 0)
+out = render("hello.fake", "$color :hover")
+h.contains("a css property takes the number class", out, "<span class='hl-number'>$color</span>")
+h.contains("a css pseudo-class takes the function class", out, "<span class='hl-func'>:hover</span>")
+
out = h.run({ "split.fake" }, { "i", "f" })
h.equals("writes are joined before lexing", out, "<span class='hl-keyword'>if</span>")