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
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user