From 586141cb1450209b9a802ab37e3e549925616be7 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 27 Jul 2023 17:51:49 +0100 Subject: [PATCH] Fix todo (and other) snippets coc-snippets stopped accepting the multiline python code in the todo (and other) snippets, this fixes an `UnexpectedIndentation` exception. --- UltiSnips/all.snippets | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/UltiSnips/all.snippets b/UltiSnips/all.snippets index 31665b8..687541a 100644 --- a/UltiSnips/all.snippets +++ b/UltiSnips/all.snippets @@ -27,18 +27,15 @@ class Comment(object): endglobal snippet todo "TODO commment" -`!p comment=Comment() -snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()` +`!p comment=Comment();snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()` endsnippet snippet fixme "FIXME comment" -`!p comment=Comment() -snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()` +`!p comment=Comment();snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()` endsnippet snippet note "NOTE comment" -`!p comment=Comment() -snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()` +`!p comment=Comment();snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()` endsnippet global !p