1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-21 20:38:44 +00:00

Add mapping for ndjson file extension to JSON syntax

This commit is contained in:
Keith Hall 2025-02-15 08:46:22 +02:00
parent 94d3dc254e
commit 2843a2c0e8
4 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,7 @@
- Add syntax mapping for `nix`'s '`flake.lock` lockfiles #3196 (@odilf)
- Improvements to CSV/TSV highlighting, with autodetection of delimiter and support for TSV files, see #3186 (@keith-
- Improve (Sys)log error highlighting, see #3205 (@keith-hall)
- Map `ndjson` extension to JSON syntax, see #3209 (@keith-hall)
## Themes

View File

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

View File

@ -0,0 +1,3 @@
{"some":"thing"}
{"foo":17,"bar":false,"quux":true}
{"may":{"include":"nested","objects":["and","arrays"]}}

View File

@ -0,0 +1,3 @@
{"some":"thing"}
{"foo":17,"bar":false,"quux":true}
{"may":{"include":"nested","objects":["and","arrays"]}}