Make map-syntax target case insensitive

This commit is contained in:
Keith Hall authored and Keith Hall committed 2025-07-17 22:19:54 +03:00
1 parent 90b2c57951
commit 8b12191bda
2 files changed
+29 -1

No files matched your search

+21
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()