From 2c097ef09e9cabdceb07d99f25670ff1c0719cc3 Mon Sep 17 00:00:00 2001 From: Matt Riggott Date: Mon, 16 Feb 2026 13:30:22 +0000 Subject: [PATCH] Add automatic syntax highlighting for GeoJSON files (#49261) GeoJSON is a popular geospatial data interchange format, standardised as [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946). Because all GeoJSON files are valid JSON files, they can be highlighted using Zed's existing JSON language support. This change adds `geojson` as a recognised path suffix, so GeoJSON files automatically open as JSON and get the standard JSON syntax highlighting. Before and after screenshots: geojson Release notes: - Added automatic syntax highlighting for GeoJSON files --- crates/languages/src/json/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/languages/src/json/config.toml b/crates/languages/src/json/config.toml index 18aca7d222d58fb5418c5192eaea61c2f04eaacd..fa74f0d8f3eddcbe5086d3e14ab3eba19751235c 100644 --- a/crates/languages/src/json/config.toml +++ b/crates/languages/src/json/config.toml @@ -1,6 +1,6 @@ name = "JSON" grammar = "json" -path_suffixes = ["json", "flake.lock"] +path_suffixes = ["json", "flake.lock", "geojson"] line_comments = ["// "] autoclose_before = ",]}" brackets = [