1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 11:52:26 +01:00

Fix syntax detection for files called 'rails'

closes #1008
This commit is contained in:
sharkdp
2020-05-24 10:22:32 +02:00
committed by David Peter
parent 2eaced4d30
commit c4031ad65c
2 changed files with 16 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ impl<'a> SyntaxMapping<'a> {
)
.unwrap();
// See #1008
mapping
.insert("rails", MappingTarget::MapToUnknown)
.unwrap();
mapping
}