2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-06 21:20:25 +00:00

Added JSONC and aws credentials to the syntax mappings

This commit is contained in:
mxaddict 2024-02-11 04:57:42 +08:00
parent 5a2a20af42
commit a5bd9f51be
3 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,8 @@
- Pull in fix for unsafe-libyaml security advisory, see #2812 (@dtolnay) - Pull in fix for unsafe-libyaml security advisory, see #2812 (@dtolnay)
- Update git-version dependency to use Syn v2, see #2816 (@dtolnay) - Update git-version dependency to use Syn v2, see #2816 (@dtolnay)
- Update git2 dependency to v0.18.2, see #2852 (@eth-p) - Update git2 dependency to v0.18.2, see #2852 (@eth-p)
- Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)
## Syntaxes ## Syntaxes

View File

@ -0,0 +1,2 @@
[mappings]
"INI" = ["**/.aws/credentials", "**/.aws/config"]

View File

@ -1,3 +1,3 @@
# JSON Lines is a simple variation of JSON #2535 # JSON Lines is a simple variation of JSON #2535
[mappings] [mappings]
"JSON" = ["*.jsonl"] "JSON" = ["*.jsonl", "*.jsonc"]