summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Peter <mail@david-peter.de>2021-02-16 21:39:38 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2021-02-16 22:15:31 +0100
commit94496df3b01dc874071b7e23fe52bd0aec332b74 (patch)
tree629956fed65ae77ac41d49930756e1c9b704f504 /src
parent0e5ea9c354509ecc408cf0f40bf9d5ef6b62f9f0 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/syntax_mapping.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs
index da6e45c7..2451a752 100644
--- a/src/syntax_mapping.rs
+++ b/src/syntax_mapping.rs
@@ -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-*/**/*",