diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-18 21:52:46 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-18 21:52:46 +0300 |
commit | c3b9b3b56edc61aa82cca38bdc64e2f463551456 (patch) | |
tree | fb9b8a9f7a3958d195e10c2eb7aa1e5cfaf77687 /lib/scite2co.lua | |
parent | 3cf370be02322cb0688af9f5465c251b379283a1 (diff) | |
download | sciteco-c3b9b3b56edc61aa82cca38bdc64e2f463551456.tar.gz |
scite2co: look up file patterns from filter.<lang> 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.
Diffstat (limited to 'lib/scite2co.lua')
-rwxr-xr-x | lib/scite2co.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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(), [=[]{ ]=]) |