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

pull/10667/merge
Vladyslav Karasov 7 months ago committed by GitHub
parent 50b13d1aea
commit 6876f923d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

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

Loading…
Cancel
Save