Fix todo (and other) snippets
coc-snippets stopped accepting the multiline python code in the todo (and other) snippets, this fixes an `UnexpectedIndentation` exception.
This commit is contained in:
parent
f8407f959f
commit
586141cb14
@ -27,18 +27,15 @@ class Comment(object):
|
|||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
snippet todo "TODO commment"
|
snippet todo "TODO commment"
|
||||||
`!p comment=Comment()
|
`!p comment=Comment();snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||||
snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet fixme "FIXME comment"
|
snippet fixme "FIXME comment"
|
||||||
`!p comment=Comment()
|
`!p comment=Comment();snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||||
snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet note "NOTE comment"
|
snippet note "NOTE comment"
|
||||||
`!p comment=Comment()
|
`!p comment=Comment();snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()`
|
||||||
snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()`
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
global !p
|
global !p
|
||||||
|
Loading…
x
Reference in New Issue
Block a user