mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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] typescript (maintained by @steelsojka)
|
||||
- [ ] tsx
|
||||
- [ ] json
|
||||
- [x] json (maintained by @steelsojka)
|
||||
- [x] html (maintained by @TravonteD)
|
||||
- [ ] csharp
|
||||
- [ ] 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