diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2023-01-21 23:10:32 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-01-21 23:06:10 +0100 |
| commit | da6dc214ddde3fac867bd4a6f4ea51a794b01e18 (patch) | |
| tree | 6e8d9b2a6bca7e99db4be41160f653e228447669 /queries/json | |
| parent | injections(html): update injection queries (diff) | |
| download | nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.tar nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.tar.gz nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.tar.bz2 nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.tar.lz nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.tar.xz nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.tar.zst nvim-treesitter-da6dc214ddde3fac867bd4a6f4ea51a794b01e18.zip | |
highlights(json): conceal escaped quote
Diffstat (limited to 'queries/json')
| -rw-r--r-- | queries/json/highlights.scm | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/queries/json/highlights.scm b/queries/json/highlights.scm index f41b44a5a..c91e71f29 100644 --- a/queries/json/highlights.scm +++ b/queries/json/highlights.scm @@ -1,17 +1,33 @@ -(true) @boolean -(false) @boolean +[ + (true) + (false) +] @boolean + (null) @constant.builtin + (number) @number -(pair key: (string) @label) -(pair value: (string) @string) + +(pair + key: (string) @label + 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 "")) +[ + "[" "]" + "{" "}" +] @punctuation.bracket + +(("\"" @conceal) + (#set! conceal "")) + +(escape_sequence) @string.escape +((escape_sequence) @conceal + (#eq? @conceal "\\\"") + (#set! conceal "\"")) |
