snippet pmdoc: fix year generate error and make variables more readable

This commit is contained in:
protream 2016-04-19 17:30:04 +08:00
parent 3532786cd0
commit 42c2b78470

View File

@ -690,16 +690,16 @@ ${1:${VISUAL:doc}}
`!p snip.rv = triple_quotes(snip)` `!p snip.rv = triple_quotes(snip)`
endsnippet endsnippet
snippet pmdoc "pocoo style module doc sting" b snippet pmdoc "pocoo style module doc string" b
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
`!p snip.rv = get_dir_and_file_name(snip)` `!p snip.rv = get_dir_and_file_name(snip)`
`!p snip.rv = '~' * len(get_dir_and_file_name(snip))` `!p snip.rv = '~' * len(get_dir_and_file_name(snip))`
${1:YOURDOCSTRING} ${1:DESCRIPTION}
:copyright: (c) `date +Y%` by ${2:YOURNAME}. :copyright: (c) `date +%Y` by ${2:YOUR_NAME}.
:license: ${3:YOURLICENSE}, see LICENSE for more details. :license: ${3:LICENSE_NAME}, see LICENSE for more details.
""" """
$0 $0
endsnippet endsnippet