aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorGeorge "Riye" Hollister2024-03-17 22:54:05 +0000
committerGitHub2024-03-17 22:54:05 +0000
commite36774c2c8f967c16ce2e10f2ba074838b324ec6 (patch)
tree7e7c3d70dc8ada6ef6f878e0b7b3c32c202b6ccf /languages.toml
parent9ec0271873ed484f96342489b4117391e88abcd3 (diff)
Add Support for JSONC (#9906)
* Added `jsonc` language with support for comments The `vscode-json-language-server` accepts `jsonc` as a language id. Allowing the use of comments within JSON files. * fix: Update `injdection-rejex` to be unique * fix: use includes to remove redundant queries * ci: Generate language-support docs
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml10
1 files changed, 9 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index b01da144..4018fbe0 100644
--- a/languages.toml
+++ b/languages.toml
@@ -367,7 +367,6 @@ scope = "source.json"
injection-regex = "json"
file-types = [
"json",
- "jsonc",
"arb",
"ipynb",
"geojson",
@@ -396,6 +395,15 @@ indent = { tab-width = 2, unit = " " }
name = "json"
source = { git = "https://github.com/tree-sitter/tree-sitter-json", rev = "73076754005a460947cafe8e03a8cf5fa4fa2938" }
+[[language]]
+name = "jsonc"
+scope = "source.json"
+injection-regex = "jsonc"
+file-types = ["jsonc"]
+grammar = "json"
+language-servers = [ "vscode-json-language-server" ]
+auto-format = true
+indent = { tab-width = 2, unit = " " }
[[language]]
name = "json5"