From c3b9b3b56edc61aa82cca38bdc64e2f463551456 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 18 Apr 2025 21:52:46 +0300 Subject: scite2co: look up file patterns from filter. properties instead of file.patterns The former is more basic and usually references file.patterns. This helped for instance with processing SciTE's css.properties. --- lib/scite2co.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scite2co.lua b/lib/scite2co.lua index ab3ccf4..6162dd2 100755 --- a/lib/scite2co.lua +++ b/lib/scite2co.lua @@ -103,7 +103,7 @@ io.write("!* AUTO-GENERATED FROM SCITE PROPERTY SET *!\n\n") -- print [lexer.test...] macro local shbang = expand(props["shbang."..language]) -local file_patterns = expand(props["file.patterns."..language]) +local file_patterns = expand(props["filter."..language]):match("^[^|]*|(.*)|$") io.write([=[ @[lexer.test.]=], language:lower(), [=[]{ ]=]) -- cgit v1.2.3