From 7bc746f3f0f2e8195c39c3ff3029379ad39d9f33 Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Mon, 15 Jun 2020 13:13:26 -0500 Subject: [PATCH] feat(lang): add json highlights --- README.md | 2 +- queries/json/highlights.scm | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 queries/json/highlights.scm diff --git a/README.md b/README.md index 6a45ebee9..3df340334 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ List of currently supported languages: - [x] javascript (maintained by @steelsojka) - [x] typescript (maintained by @steelsojka) - [ ] tsx -- [ ] json +- [x] json (maintained by @steelsojka) - [x] html (maintained by @TravonteD) - [ ] csharp - [ ] swift diff --git a/queries/json/highlights.scm b/queries/json/highlights.scm new file mode 100644 index 000000000..bdc35ad98 --- /dev/null +++ b/queries/json/highlights.scm @@ -0,0 +1,13 @@ +(true) @boolean +(false) @boolean +(null) @constant.builtin +(number) @number +(pair key: (string) @label) +(pair value: (string) @string) +(string_content (escape_sequence) @string.escape) +(ERROR) @error +"," @punctuation.delimiter +"[" @punctuation.bracket +"]" @punctuation.bracket +"{" @punctuation.bracket +"}" @punctuation.bracket