Files
oak-gpui/crates/languages/src/json/highlights.scm
T
chbk 5e4bdbbcde 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
}
```
2025-02-21 15:59:32 +00:00

29 lines
280 B
Scheme

(comment) @comment
(string) @string
(escape_sequence) @string.escape
(pair
key: (string) @property.json_key)
(number) @number
[
(true)
(false)
] @boolean
(null) @constant.builtin
[
","
":"
] @punctuation.delimiter
[
"{"
"}"
"["
"]"
] @punctuation.bracket