Skip to content

Commit

Permalink
Improve JSON syntax highlighting (#25329)
Browse files Browse the repository at this point in the history
Release Notes:

  - Improved JSON syntax highlighting.

| Zed 0.174.6 | With this PR |
| --- | --- |
|
![Image](https://github.com/user-attachments/assets/46c8ae89-aca1-4756-b66c-78ccd8f3778d)
|
![Image](https://github.com/user-attachments/assets/3ba5e5db-1467-40d7-a502-2790feec8ad3)
|

- `null`: `constant` -> `constant.builtin`
- `,`, `:`: `punctuation.delimiter`

```json
{
  "property": null,
  "boolean": true
}
```
  • Loading branch information
chbk authored Feb 21, 2025
1 parent d0a0303 commit 5e4bdbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions crates/languages/src/json/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
(false)
] @boolean

(null) @constant.builtin

[
(null)
] @constant
","
":"
] @punctuation.delimiter

[
"{"
Expand Down
7 changes: 5 additions & 2 deletions crates/languages/src/jsonc/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
(false)
] @boolean

(null) @constant.builtin

[
(null)
] @constant
","
":"
] @punctuation.delimiter

[
"{"
Expand Down

0 comments on commit 5e4bdbb

Please sign in to comment.