Skip to content

Commit ba318fd

Browse files
add Maja's dictionary autocomplete to bpython-curtsies
1 parent c1e1b78 commit ba318fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def current_word(self):
651651
def _get_current_word(self):
652652
pos = self.cursor_offset_in_line
653653

654-
matches = list(re.finditer(r'[\w_][\w0-9._]*[(]?', self._current_line))
654+
matches = list(re.finditer(r'''[\w_][\w0-9._\[\]']*[(]?''', self._current_line))
655655
start = pos
656656
end = pos
657657
word = None

0 commit comments

Comments
 (0)