Repository: sharkdp/bat (language: rust)

Issue:
JSON-LD (`*.jsonld`, identical to `*.json`)
It would be neat if `bat` would _syntax highlight_ `*.jsonld`.

[JSON-LD](https://json-ld.org) is really just JSON, and e.g. `bat --map-syntax='*.jsonld:JSON' test/picasso.jsonld` already works great.

JSON LD's _Media Type_ is [`application/ld+json`](https://www.iana.org/assignments/media-types/application/ld+json) (and IANA extension `*.jsonld`).

I guess technically this isn't even a "real" (full-blown) new _syntax-request..._
JSON-LD (`*.jsonld`, identical to `*.json`)
It would be neat if `bat` would _syntax highlight_ `*.jsonld`.

[JSON-LD](https://json-ld.org) is really just JSON, and e.g. `bat --map-syntax='*.jsonld:JSON' test/picasso.jsonld` already works great.

JSON LD's _Media Type_ is [`application/ld+json`](https://www.iana.org/assignments/media-types/application/ld+json) (and IANA extension `*.jsonld`).

I guess technically this isn't even a "real" (full-blown) new _syntax-request..._


Discussion / hints:
> I guess technically this isn't even a "real" (full-blown) new syntax-request...

Finding #2535 and #2539 made me think this may be easy enough for my to propose a PR myself... I'll try.
> I guess technically this isn't even a "real" (full-blown) new syntax-request...

Finding #2535 and #2539 made me think this may be easy enough for my to propose a PR myself... I'll try.

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36dd079b61..aa4c8de065 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -49,11 +49,12 @@
 - Upgrade JQ syntax, see #2820 (@dependabot[bot])
 - Add syntax mapping for quadman quadlets #2866 (@cyqsimon)
 - Map containers .conf files to TOML syntax #2867 (@cyqsimon)
-- Associate `xsh` files with `xonsh` syntax that is Python, see #2840 (@anki-code).
-- Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
-- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)
-- Add syntax mapping for Wireguard config #2874 (@cyqsimon)
-- Associate `.textproto` files with `ProtoBuf` syntax, see #3038 (@vorburger).
+- Associate `.xsh` files with `xonsh` syntax that is Python, see #2840 (@anki-code)
+- Associate JSON with Comments `.jsonc` with `json` syntax, see #2795 (@mxaddict)
+- Associate JSON-LD `.jsonld` files with `json` syntax, see #3037 (@vorburger)
+- Associate `.textproto` files with `ProtoBuf` syntax, see #3038 (@vorburger)
+- Associate `.aws/{config,credentials}`, see #2795 (@mxaddict)
+- Associate Wireguard config `/etc/wireguard/*.conf`, see #2874 (@cyqsimon)
 - Add support for [CFML](https://www.adobe.com/products/coldfusion-family.html), see #3031 (@brenton-at-pieces)
 
 ## Themes
diff --git a/src/syntax_mapping/builtins/common/50-json.toml b/src/syntax_mapping/builtins/common/50-json.toml
index e604868a54..7d33b6febb 100644
--- a/src/syntax_mapping/builtins/common/50-json.toml
+++ b/src/syntax_mapping/builtins/common/50-json.toml
@@ -1,3 +1,3 @@
 # JSON Lines is a simple variation of JSON #2535
 [mappings]
-"JSON" = ["*.jsonl", "*.jsonc"]
+"JSON" = ["*.jsonl", "*.jsonc", "*.jsonld"]


Test patch: