mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
Update tree-sitter-json, add jsonc as file-type for json (#5509)
New git revision of tree-sitter-json that supports comments. Jsonc is alias for json. Both formats doesn't mark comments as errors now.
This commit is contained in:
parent
2412f7c837
commit
4e9a0700db
@ -138,7 +138,7 @@ indent = { tab-width = 2, unit = " " }
|
|||||||
name = "json"
|
name = "json"
|
||||||
scope = "source.json"
|
scope = "source.json"
|
||||||
injection-regex = "json"
|
injection-regex = "json"
|
||||||
file-types = ["json"]
|
file-types = ["json", "jsonc"]
|
||||||
roots = []
|
roots = []
|
||||||
language-server = { command = "vscode-json-language-server", args = ["--stdio"] }
|
language-server = { command = "vscode-json-language-server", args = ["--stdio"] }
|
||||||
auto-format = true
|
auto-format = true
|
||||||
@ -147,7 +147,7 @@ indent = { tab-width = 2, unit = " " }
|
|||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "json"
|
name = "json"
|
||||||
source = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "65bceef69c3b0f24c0b19ce67d79f57c96e90fcb" }
|
source = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "73076754005a460947cafe8e03a8cf5fa4fa2938" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "c"
|
name = "c"
|
||||||
|
Loading…
Reference in New Issue
Block a user