Skip to content

Commit

Permalink
enh(json) add jsonc alias (#4028)
Browse files Browse the repository at this point in the history
* feat: add jsonc as a json alias

* chore: updated changelog

* chore: update supported languages
  • Loading branch information
BackupMiles committed Mar 30, 2024
1 parent 0d7061c commit f5a2f11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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][]
Expand Down Expand Up @@ -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



Expand Down
2 changes: 1 addition & 1 deletion SUPPORTED_LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
1 change: 1 addition & 0 deletions src/languages/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function(hljs) {

return {
name: 'JSON',
aliases: ['jsonc'],
keywords:{
literal: LITERALS,
},
Expand Down

0 comments on commit f5a2f11

Please sign in to comment.