mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
highlights(json): conceal escaped quote
This commit is contained in:
parent
6d4869e59d
commit
da6dc214dd
1 changed files with 32 additions and 16 deletions
|
|
@ -1,17 +1,33 @@
|
||||||
(true) @boolean
|
[
|
||||||
(false) @boolean
|
(true)
|
||||||
(null) @constant.builtin
|
(false)
|
||||||
(number) @number
|
] @boolean
|
||||||
(pair key: (string) @label)
|
|
||||||
(pair value: (string) @string)
|
|
||||||
(array (string) @string)
|
|
||||||
(string_content (escape_sequence) @string.escape)
|
|
||||||
(string_content) @spell
|
|
||||||
(ERROR) @error
|
|
||||||
["," ":"] @punctuation.delimiter
|
|
||||||
"[" @punctuation.bracket
|
|
||||||
"]" @punctuation.bracket
|
|
||||||
"{" @punctuation.bracket
|
|
||||||
"}" @punctuation.bracket
|
|
||||||
|
|
||||||
(("\"" @conceal) (#set! conceal ""))
|
(null) @constant.builtin
|
||||||
|
|
||||||
|
(number) @number
|
||||||
|
|
||||||
|
(pair
|
||||||
|
key: (string) @label
|
||||||
|
value: (string) @string)
|
||||||
|
|
||||||
|
(array (string) @string)
|
||||||
|
|
||||||
|
(string_content) @spell
|
||||||
|
|
||||||
|
(ERROR) @error
|
||||||
|
|
||||||
|
["," ":"] @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"[" "]"
|
||||||
|
"{" "}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(("\"" @conceal)
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
(escape_sequence) @string.escape
|
||||||
|
((escape_sequence) @conceal
|
||||||
|
(#eq? @conceal "\\\"")
|
||||||
|
(#set! conceal "\""))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue