Files
openide/python/testData/completion/overrideParamNameInGoogleDocstring.py
Mikhail Golubev 29a93d9145 PY-16870 Use TRIMMED_DUMMY_IDENTIFIER to complete references in docstrings
Otherwise if caret is in the middle of reference, standard dummy identifier
will break docstring format and existing references used for completion
will be lost.
For example previously line "param (int) : foo" became
"paraIntellijIdeaRulezzz m (int) : foo" and Google code style docstring
parser wasn't able to reparse it and extract necessary parameter
reference.

To use alternative dummy identifier I moved populating completion
variants from DocString*Reference classes to PyDocstringCompletionContributor.
2015-09-15 11:18:26 +03:00

5 lines
83 B
Python

def f(param1, param2):
"""
Args:
par<caret>am1: description
"""