1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-06-13 21:16:48 +02:00

lang(json): make field key highlighting consistent with toml and yaml (#10676)

This commit is contained in:
Vladyslav Karasov 2024-05-06 18:11:09 +03:00 committed by GitHub
parent 50b13d1aea
commit 6876f923d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 8 deletions

View File

@ -4,8 +4,9 @@
] @constant.builtin.boolean
(null) @constant.builtin
(number) @constant.numeric
(pair
key: (_) @keyword)
key: (_) @variable.other.member)
(string) @string
(escape_sequence) @constant.character.escape

View File

@ -1,11 +1,20 @@
(string) @string
(identifier) @constant
[
(true)
(false)
] @constant.builtin.boolean
(null) @constant.builtin
(number) @constant.numeric
(null) @constant.builtin
[(true) (false)] @constant.builtin.boolean
(member
name: (_) @variable.other.member)
(string) @string
(comment) @comment
"," @punctuation.delimiter
[
"["
"]"
"{"
"}"
] @punctuation.bracket