Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jsonc alias to json #4028

Merged
merged 3 commits into from
Mar 30, 2024
Merged

Conversation

BackupMiles
Copy link
Contributor

Added jsonc as an alias to the json language.

Resolves #4018

Changes

  • added jsonc alias
  • updated changelog and supported languages

The object returned from the exported function inside json.js now provides 'jsonc' as an alias.

Checklist

  • No test was added, since the json language already supports comments
  • Updated the changelog at CHANGES.md

Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +27 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +2 B
es/highlight.min.js 8.2 KB 8.2 KB +2 B
es/languages/json.min.js 374 B 384 B +10 B
highlight.min.js 8.23 KB 8.23 KB +1 B
languages/json.min.js 377 B 389 B +12 B

@joshgoebel joshgoebel merged commit f5a2f11 into highlightjs:main Mar 30, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "jsonc" alias
2 participants