##// END OF EJS Templates
FIX: python_func_kw_matches fails when the cursor is in the middle of complete parentheses
piti118 -
Show More
@@ -682,8 +682,9 b' class IPCompleter(Completer):'
682 \S # other characters
682 \S # other characters
683 ''', re.VERBOSE | re.DOTALL)
683 ''', re.VERBOSE | re.DOTALL)
684 # 1. find the nearest identifier that comes before an unclosed
684 # 1. find the nearest identifier that comes before an unclosed
685 # parenthesis e.g. for "foo (1+bar(x), pa", the candidate is "foo"
685 # parenthesis before the cursor
686 tokens = regexp.findall(self.line_buffer)
686 # e.g. for "foo (1+bar(x), pa<cursor>,a=1)", the candidate is "foo"
687 tokens = regexp.findall(self.text_until_cursor)
687 tokens.reverse()
688 tokens.reverse()
688 iterTokens = iter(tokens); openPar = 0
689 iterTokens = iter(tokens); openPar = 0
689 for token in iterTokens:
690 for token in iterTokens:
General Comments 0
You need to be logged in to leave comments. Login now