From 1bd8bd7851322c141f913ccd4c12e4e9e3ed48c4 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sun, 14 Jul 2024 15:24:06 -0400 Subject: [PATCH 1/2] Use `//` comments for `.json` --- runtime/plugins/comment/comment.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/plugins/comment/comment.lua b/runtime/plugins/comment/comment.lua index 213d2bff9..034c49049 100644 --- a/runtime/plugins/comment/comment.lua +++ b/runtime/plugins/comment/comment.lua @@ -28,6 +28,7 @@ ft["ini"] = "; %s" ft["java"] = "// %s" ft["javascript"] = "// %s" ft["jinja2"] = "{# %s #}" +ft["json"] = "// %s" ft["julia"] = "# %s" ft["kotlin"] = "// %s" ft["lua"] = "-- %s" From b07ebb24665945d9c78df86ac4ac2ae312fd5429 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sun, 14 Jul 2024 15:36:42 -0400 Subject: [PATCH 2/2] Update the docs --- runtime/plugins/comment/help/comment.md | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/plugins/comment/help/comment.md b/runtime/plugins/comment/help/comment.md index cf1847b9b..74054cd15 100644 --- a/runtime/plugins/comment/help/comment.md +++ b/runtime/plugins/comment/help/comment.md @@ -47,6 +47,7 @@ but it is only available for certain filetypes: * java: `// %s` * javascript: `// %s` * jinja2: `{# %s #}` +* json: `// %s` * julia: `# %s` * kotlin: `// %s` * lua: `-- %s`