Skip to content

Commit e93ae9b

Browse files
committed
Fix issue#9
1 parent 212919b commit e93ae9b

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 0.0.4
2+
-------------
3+
Released on September 14th 2015
4+
5+
- Enable to use ``async`` keyword
6+
7+
18
Version 0.0.3
29
-------------
310

autoload/pydocstring.vim

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
" Insert Docstring.
2-
" Last Change: 2013-12-14
3-
" Maintainer: Shinya Ohyanagi <sohyanagi@gmail.com>
4-
" License: This file is placed in the public domain.
5-
" NOTE: This module is heavily inspired by php-doc.vim and
6-
" sonictemplate.vim
2+
" Author: Shinya Ohyanagi <sohyanagi@gmail.com>
3+
" Version: 0.0.4
4+
" License: This file is placed in the public domain.
5+
" WebPage: http://github.com/heavenshell/vim-pydocstriong/
6+
" Description: Generate Python docstring to your Python script file.
7+
" License: BSD, see LICENSE for more details.
8+
" NOTE: This module is heavily inspired by php-doc.vim and
9+
" sonictemplate.vim
710
let s:save_cpo = &cpo
811
set cpo&vim
912

@@ -36,6 +39,9 @@ function! s:parse(line)
3639
if str =~ '^def\s\|^\s*def\s'
3740
let str = substitute(str, '^def\s\|^\s*def\s', '', '')
3841
let type = 'def'
42+
elseif str =~ '^async\s*def\s\|^\s*async\sdef\s'
43+
let str = substitute(str, '^async\sdef\s\|^\s*async\sdef\s', '', '')
44+
let type = 'def'
3945
elseif str =~ '^class\s\|^\s*class\s'
4046
let str = substitute(str, '^class\s\|^\s*class\s', '', '')
4147
let type = 'class'

doc/pydocstring.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*pydocstring.txt* Generate Python docstring to your Python code.
22

3-
Version: 0.0.3
3+
Version: 0.0.4
44
Author: Shinya Ohynagi <sohyanagi@gmail.com>
55
Repository: http://github.com/heavenshell/vim-pydocstring/
66
License: BSD, see LICENSE for more details.

ftplugin/python/pydocstring.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" File: pydocstring.vim
22
" Author: Shinya Ohyanagi <sohyanagi@gmail.com>
3-
" Version: 0.0.3
3+
" Version: 0.0.4
44
" WebPage: http://github.com/heavenshell/vim-pydocstriong/
55
" Description: Generate Python docstring to your Python script file.
66
" License: BSD, see LICENSE for more details.

0 commit comments

Comments
 (0)