From 91311a3fcf3907aa23e4b7a73e06d05b9e73bdca Mon Sep 17 00:00:00 2001 From: BackupMiles Date: Fri, 29 Mar 2024 21:10:51 +0100 Subject: [PATCH 1/3] feat: add jsonc as a json alias --- src/languages/json.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/languages/json.js b/src/languages/json.js index 41242f6888..4c2a86d662 100644 --- a/src/languages/json.js +++ b/src/languages/json.js @@ -34,6 +34,7 @@ export default function(hljs) { return { name: 'JSON', + aliases: ['jsonc'], keywords:{ literal: LITERALS, }, From bcb0813b2dd271c23f38a99bea7ce4e8fac0b105 Mon Sep 17 00:00:00 2001 From: BackupMiles Date: Fri, 29 Mar 2024 21:10:59 +0100 Subject: [PATCH 2/3] chore: updated changelog --- CHANGES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 7f5a0fff36..794f4f4747 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ CAVEATS / POTENTIALLY BREAKING CHANGES Core Grammars: +- enh(json) added jsonc as an alias [BackupMiles][] - enh(gml) updated to latest language version (GML v2024.2) [gnysek][] - enh(c) added more C23 keywords and preprcoessor directives [Eisenwave][] - enh(js/ts) support namespaced tagged template strings [Aral Balkan][] @@ -86,6 +87,7 @@ Themes: [Arman Uguray]: https://github.com/armansito [RĂșnar Bjarnason]: https://github.com/runarorama [Carl RĂ€fting]: https://github.com/carlrafting +[BackupMiles]: https://github.com/BackupMiles From e2b8dd31e2c5637fc6eb2b253248151b283763bd Mon Sep 17 00:00:00 2001 From: BackupMiles Date: Fri, 29 Mar 2024 21:11:09 +0100 Subject: [PATCH 3/3] chore: update supported languages --- SUPPORTED_LANGUAGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index bac1ff419c..b7fc1f7366 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -111,7 +111,7 @@ The table below shows the full list of languages (and corresponding classes/alia | Inform7 | inform7, i7 | | | IRPF90 | irpf90 | | | Iptables | iptables | [highlightjs-iptables](https://github.com/highlightjs/highlightjs-iptables) | -| JSON | json | | +| JSON | json, jsonc | | | Java | java, jsp | | | JavaScript | javascript, js, jsx | | | Jolie | jolie, iol, ol | [highlightjs-jolie](https://github.com/xiroV/highlightjs-jolie) |