From b26903cd13fdf8976bda43abbc5e85a50130d12f Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sat, 11 Jan 2025 08:42:17 -0500 Subject: [PATCH] Add comment tokens for JSONC Fixes #12491 --- languages.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/languages.toml b/languages.toml index 504613a1..e593b2ed 100644 --- a/languages.toml +++ b/languages.toml @@ -488,6 +488,8 @@ name = "jsonc" scope = "source.json" injection-regex = "jsonc" file-types = ["jsonc", { glob = "tsconfig.json" }] +comment-token = "//" +block-comment-tokens = { start = "/*", end = "*/" } grammar = "json" language-servers = [ "vscode-json-language-server" ] auto-format = true