Show More
@@ -682,8 +682,9 b' class IPCompleter(Completer):' | |||
|
682 | 682 | \S # other characters |
|
683 | 683 | ''', re.VERBOSE | re.DOTALL) |
|
684 | 684 | # 1. find the nearest identifier that comes before an unclosed |
|
685 |
# parenthesis |
|
|
686 | tokens = regexp.findall(self.line_buffer) | |
|
685 | # parenthesis before the cursor | |
|
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 | 688 | tokens.reverse() |
|
688 | 689 | iterTokens = iter(tokens); openPar = 0 |
|
689 | 690 | for token in iterTokens: |
General Comments 0
You need to be logged in to leave comments.
Login now