diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-06 15:05:50 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch) | |
| tree | 70bf645539882b88e6fa129cefd30986b89bbac3 /queries/json | |
| parent | ci: add query lint job (diff) | |
| download | nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2 nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip | |
chore: query formatting
Diffstat (limited to 'queries/json')
| -rw-r--r-- | queries/json/highlights.scm | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/queries/json/highlights.scm b/queries/json/highlights.scm index 36c8f7a10..17365ed34 100644 --- a/queries/json/highlights.scm +++ b/queries/json/highlights.scm @@ -1,28 +1,38 @@ [ - (true) - (false) + (true) + (false) ] @boolean (null) @constant.builtin (number) @number -(pair key: (string) @label) -(pair value: (string) @string) +(pair + key: (string) @label) -(array (string) @string) +(pair + value: (string) @string) -["," ":"] @punctuation.delimiter +(array + (string) @string) [ - "[" "]" - "{" "}" + "," + ":" +] @punctuation.delimiter + +[ + "[" + "]" + "{" + "}" ] @punctuation.bracket (("\"" @conceal) - (#set! conceal "")) + (#set! conceal "")) (escape_sequence) @string.escape + ((escape_sequence) @conceal - (#eq? @conceal "\\\"") - (#set! conceal "\"")) + (#eq? @conceal "\\\"") + (#set! conceal "\"")) |
