1
0
forked from VimPlug/jedi

Remove google docstrings support. Updates #40

This commit is contained in:
Yakov Borevich
2012-12-28 10:08:16 +04:00
parent c7cf7b6dc7
commit 3b412c72e9
3 changed files with 4 additions and 23 deletions

View File

@@ -8,17 +8,11 @@ import parsing
DOCSTRING_PARAM_PATTERNS = [
r'\s*:type\s+%s:\s*([^\n]+)', # Sphinx
r'\s*@type\s+%s:\s*([^\n]+)', # Epidoc
r'\s*%s\s+\(([^()]+)\)' # googley
]
DOCSTRING_RETURN_PATTERNS = [
re.compile(r'\s*:rtype:\s*([^\n]+)', re.M), # Sphinx
re.compile(r'\s*@rtype:\s*([^\n]+)', re.M), # Epidoc
# Googley is the most undocumented format for
# return types, so we try to analyze the first
# line or line after `Returns:` keyword
re.compile(r'returns\s*:[\s\n]*([^\n]+)', re.M|re.I),
]
#@cache.memoize_default() # TODO add