Skip to content

Enabled syntax highlighting on jsonc and josn5#4106

Open
upcz wants to merge 1 commit into
micro-editor:masterfrom
upcz:master
Open

Enabled syntax highlighting on jsonc and josn5#4106
upcz wants to merge 1 commit into
micro-editor:masterfrom
upcz:master

Conversation

@upcz
Copy link
Copy Markdown

@upcz upcz commented May 27, 2026

The default json.yaml already allows for comments, but for whatever reason the .jsonc and .json5 extensions weren't associated with it.

… already allows for comments, but for whatever reason the .jsonc and .json5 extensions weren't associated with it.
Comment thread runtime/syntax/json.yaml

detect:
filename: "\\.json$"
filename: "\\.json(c|5)?$"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But for real JSON5 the current syntax definition is quite limited. 🤔

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.

2 participants