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

Make map-syntax target case insensitive

This commit is contained in:
Keith Hall
2025-02-09 20:56:51 +02:00
committed by Keith Hall
parent 90b2c57951
commit 8b12191bda
2 changed files with 29 additions and 1 deletions

View File

@@ -2821,6 +2821,27 @@ fn highlighting_independant_from_map_syntax_case() {
.stderr("");
}
#[test]
fn map_syntax_target_syntax_case_insensitive() {
let expected = bat()
.arg("-f")
.arg("--map-syntax=*.config:json")
.arg("map-syntax_case.Config")
.assert()
.get_output()
.stdout
.clone();
bat()
.arg("-f")
.arg("--map-syntax=*.config:json")
.arg("map-syntax_case.Config")
.assert()
.success()
.stdout(expected)
.stderr("");
}
#[test]
fn strip_ansi_always_strips_ansi() {
bat()