We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16a248 commit b286770Copy full SHA for b286770
bpython/line.py
@@ -229,7 +229,7 @@ def current_string_literal_attr(cursor_offset, line):
229
230
231
current_array_with_indexer_re = LazyReCompile(
232
- r'''([\w_][\w0-9._]*\[[a-zA-Z0-9_"']+\])\.(.*)''')
+ r'''([\w_][\w0-9._]*(?:\[[a-zA-Z0-9_"']+\])+)\.(.*)''')
233
234
235
def current_array_with_indexer(cursor_offset, line):
@@ -241,7 +241,7 @@ def current_array_with_indexer(cursor_offset, line):
241
242
243
current_array_item_member_name_re = LazyReCompile(
244
- r'''([\w_][\w0-9._]*\[[a-zA-Z0-9_"']+\]\.)(.*)''')
+ r'''([\w_][\w0-9._]*(?:\[[a-zA-Z0-9_"']+\])+\.)(.*)''')
245
246
247
def current_array_item_member_name(cursor_offset, line):
0 commit comments