From 45a1b96e46efe5fce8af325d4bed45feb9d29d0f Mon Sep 17 00:00:00 2001 From: REmerald <55359236+REmerald@users.noreply.github.com> Date: Mon, 8 Jul 2024 03:50:20 +0000 Subject: [PATCH] Remove newline from `main` snippets (#451) Revert commit 7a57697 --- snippets/c/c.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/snippets/c/c.json b/snippets/c/c.json index abac8bdc..b67b5d79 100644 --- a/snippets/c/c.json +++ b/snippets/c/c.json @@ -17,8 +17,7 @@ "#include ", "", "int main(int argc, char *argv[])", - "{", - "\t$0", + "{$0", "\treturn EXIT_SUCCESS;", "}" ], @@ -41,8 +40,7 @@ "prefix": "main", "body": [ "int main(int argc, char *argv[])", - "{", - "\t$0", + "{$0", "\treturn EXIT_SUCCESS;", "}" ], @@ -50,7 +48,7 @@ }, "main(void) template": { "prefix": "mainn", - "body": ["int main(void)", "{$0", "", "\treturn EXIT_SUCCESS;", "}"], + "body": ["int main(void)", "{$0", "\treturn EXIT_SUCCESS;", "}"], "description": "No-args main() snippet" }, "#include <...>": {