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 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) | 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, },