mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(lang): add json highlights
This commit is contained in:
parent
dd7e67ddb4
commit
7bc746f3f0
2 changed files with 14 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ List of currently supported languages:
|
||||||
- [x] javascript (maintained by @steelsojka)
|
- [x] javascript (maintained by @steelsojka)
|
||||||
- [x] typescript (maintained by @steelsojka)
|
- [x] typescript (maintained by @steelsojka)
|
||||||
- [ ] tsx
|
- [ ] tsx
|
||||||
- [ ] json
|
- [x] json (maintained by @steelsojka)
|
||||||
- [x] html (maintained by @TravonteD)
|
- [x] html (maintained by @TravonteD)
|
||||||
- [ ] csharp
|
- [ ] csharp
|
||||||
- [ ] swift
|
- [ ] swift
|
||||||
|
|
|
||||||
13
queries/json/highlights.scm
Normal file
13
queries/json/highlights.scm
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue