Improve JSON syntax highlighting (#25329)

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
}
```
This commit is contained in:
chbk 2025-02-21 16:59:32 +01:00 committed by GitHub
parent d0a0303428
commit 5e4bdbbcde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -13,9 +13,12 @@
(false)
] @boolean
(null) @constant.builtin
[
(null)
] @constant
","
":"
] @punctuation.delimiter
[
"{"

View file

@ -13,9 +13,12 @@
(false)
] @boolean
(null) @constant.builtin
[
(null)
] @constant
","
":"
] @punctuation.delimiter
[
"{"