Skip to content

Type to search extensions

JSON5

v0.1.1

JSON5 language support for Zed using Joakker's Tree-sitter grammar.

Updated 3 months ago
83k downloads 6 stars Repository ↗

JSON5 Language Support for Zed

Adds JSON5 language support to the Zed code editor using tree-sitter-json5.

Features

  • Syntax highlighting for comments, trailing commas, single-quoted strings, unquoted keys, hexadecimal numbers, Infinity, NaN, and other JSON5 syntax
  • Bracket matching and automatic indentation
  • Document outline entries for object properties
  • Comment text objects in Vim mode
  • Automatic activation for .json5 files

Installation

Install JSON5 from Zed's Extensions view (zed: extensions).

To test a development checkout, run zed: install dev extension from the command palette and select this repository.

Development

After changing the grammar revision or Tree-sitter query files, install the repository as a dev extension and open testdata/sample.json5. Check zed: open log if the extension or a query fails to load.

Published releases must increment version in extension.toml. The matching version and submodule commit must then be updated in zed-industries/extensions.

See CHANGELOG.md for release notes.

Credits

This extension uses the tree-sitter-json5 grammar by @Joakker.
All grammar-level credit goes to the original author — this project only integrates it into Zed.

License

MIT

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated