mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
add spaces to additional get_definition quotes, fixes #63
This commit is contained in:
@@ -218,6 +218,7 @@ def show_func_def(call_def=None, completion_lines=0):
|
|||||||
# (don't want to break the syntax)
|
# (don't want to break the syntax)
|
||||||
regex_quotes = r'''\\*["']+'''
|
regex_quotes = r'''\\*["']+'''
|
||||||
# `add` are all the quotation marks.
|
# `add` are all the quotation marks.
|
||||||
|
# join them with a space to avoid producing '''
|
||||||
add = ' '.join(re.findall(regex_quotes, replace))
|
add = ' '.join(re.findall(regex_quotes, replace))
|
||||||
# search backwards
|
# search backwards
|
||||||
if add and replace[0] in ['"', "'"]:
|
if add and replace[0] in ['"', "'"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user