mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 10:55:45 +03:00
lang(json): make field key highlighting consistent with toml and yaml (#10676)
This commit is contained in:
parent
50b13d1aea
commit
6876f923d5
@ -4,8 +4,9 @@
|
|||||||
] @constant.builtin.boolean
|
] @constant.builtin.boolean
|
||||||
(null) @constant.builtin
|
(null) @constant.builtin
|
||||||
(number) @constant.numeric
|
(number) @constant.numeric
|
||||||
|
|
||||||
(pair
|
(pair
|
||||||
key: (_) @keyword)
|
key: (_) @variable.other.member)
|
||||||
|
|
||||||
(string) @string
|
(string) @string
|
||||||
(escape_sequence) @constant.character.escape
|
(escape_sequence) @constant.character.escape
|
||||||
|
@ -1,11 +1,20 @@
|
|||||||
(string) @string
|
[
|
||||||
|
(true)
|
||||||
(identifier) @constant
|
(false)
|
||||||
|
] @constant.builtin.boolean
|
||||||
|
(null) @constant.builtin
|
||||||
(number) @constant.numeric
|
(number) @constant.numeric
|
||||||
|
|
||||||
(null) @constant.builtin
|
(member
|
||||||
|
name: (_) @variable.other.member)
|
||||||
[(true) (false)] @constant.builtin.boolean
|
|
||||||
|
|
||||||
|
(string) @string
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
|
"," @punctuation.delimiter
|
||||||
|
[
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
Loading…
Reference in New Issue
Block a user