mirror of
https://github.com/sharkdp/bat
synced 2026-07-25 17:21:43 +00:00
Add case-sensitive glob support to syntax mapping
to allow us to map `BUILD` case sensitively to Python for Skylark
This commit is contained in:
@@ -20,9 +20,9 @@ syntax mappings defined by all TOML files, and embed them into the binary.
|
||||
|
||||
## File syntax
|
||||
|
||||
Each TOML file should contain a single section named `mappings`, with each of
|
||||
its keys being a language identifier (first column of `bat -L`; also referred to
|
||||
as "target").
|
||||
Each TOML file should contain a single section named `mappings` and/or a single
|
||||
section named `case_sensitive_mappings`, with each of its keys being a language
|
||||
identifier (first column of `bat -L`; also referred to as "target").
|
||||
|
||||
The value of each key should be an array of strings, with each item being a glob
|
||||
matcher. We will call each of these items a "rule".
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
[mappings]
|
||||
[case_sensitive_mappings]
|
||||
"Python" = ["BUILD"]
|
||||
|
||||
Reference in New Issue
Block a user