1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00

Fix broken resolv.conf highlighting

closes #1510

The change in `create_highlighted_versions.py` fixes a "unknown theme
"'1337'" warning. The single quotes were wrong. `bat` was always falling
back to the default theme, so let's use that for now.
This commit is contained in:
David Peter
2021-02-16 21:39:38 +01:00
committed by David Peter
parent 0e5ea9c354
commit 94496df3b0
4 changed files with 17 additions and 2 deletions

View File

@@ -57,6 +57,11 @@ impl<'a> SyntaxMapping<'a> {
.insert("*.conf", MappingTarget::MapToUnknown)
.unwrap();
// Re-insert a mapping for resolv.conf, see #1510
mapping
.insert("resolv.conf", MappingTarget::MapTo("resolv"))
.unwrap();
for glob in &[
"/etc/nginx/**/*.conf",
"/etc/nginx/sites-*/**/*",