Skip to content

Commit b286770

Browse files
Shawn Axsomthomasballinger
authored andcommitted
Able to handle nested arrays now when autocompleting for array items
1 parent f16a248 commit b286770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def current_string_literal_attr(cursor_offset, line):
229229

230230

231231
current_array_with_indexer_re = LazyReCompile(
232-
r'''([\w_][\w0-9._]*\[[a-zA-Z0-9_"']+\])\.(.*)''')
232+
r'''([\w_][\w0-9._]*(?:\[[a-zA-Z0-9_"']+\])+)\.(.*)''')
233233

234234

235235
def current_array_with_indexer(cursor_offset, line):
@@ -241,7 +241,7 @@ def current_array_with_indexer(cursor_offset, line):
241241

242242

243243
current_array_item_member_name_re = LazyReCompile(
244-
r'''([\w_][\w0-9._]*\[[a-zA-Z0-9_"']+\]\.)(.*)''')
244+
r'''([\w_][\w0-9._]*(?:\[[a-zA-Z0-9_"']+\])+\.)(.*)''')
245245

246246

247247
def current_array_item_member_name(cursor_offset, line):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy