mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(json): add support for jsonc files
This commit is contained in:
parent
d2350758b3
commit
9d47b2558b
5 changed files with 8 additions and 1 deletions
|
|
@ -36,3 +36,5 @@
|
|||
((escape_sequence) @conceal
|
||||
(#eq? @conceal "\\\"")
|
||||
(#set! conceal "\""))
|
||||
|
||||
(comment) @comment @spell
|
||||
|
|
|
|||
|
|
@ -7,3 +7,5 @@
|
|||
"}"
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
(comment) @indent.ignore
|
||||
|
|
|
|||
2
runtime/queries/json/injections.scm
Normal file
2
runtime/queries/json/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue