aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorGeorge "Riye" Hollister2024-03-17 22:54:05 +0000
committerGitHub2024-03-17 22:54:05 +0000
commite36774c2c8f967c16ce2e10f2ba074838b324ec6 (patch)
tree7e7c3d70dc8ada6ef6f878e0b7b3c32c202b6ccf /runtime/queries
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 'runtime/queries')
-rw-r--r--runtime/queries/jsonc/highlights.scm2
-rw-r--r--runtime/queries/jsonc/indents.scm1
2 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/jsonc/highlights.scm b/runtime/queries/jsonc/highlights.scm
new file mode 100644
index 00000000..0164321b
--- /dev/null
+++ b/runtime/queries/jsonc/highlights.scm
@@ -0,0 +1,2 @@
+; inherits: json
+(comment) @comment
diff --git a/runtime/queries/jsonc/indents.scm b/runtime/queries/jsonc/indents.scm
new file mode 100644
index 00000000..41269219
--- /dev/null
+++ b/runtime/queries/jsonc/indents.scm
@@ -0,0 +1 @@
+; inherits: json